File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,12 +38,16 @@ int main()
3838 printf ("ERROR: gpio 3 driver not loaded\n" );
3939 } else printf ("PASSED: gpio 3\n" );
4040
41- // pwm 1,2
42- if (access ("/sys/class/pwm/pwmchip2/export" , F_OK ) != 0 ){
41+ // pwm 0, 1, 2
42+ if (access ("/sys/devices/platform/ocp/48300000.epwmss/48300200.pwm/pwm/" , F_OK ) != 0 ){
43+ printf ("ERROR: ti-pwm driver not loaded for hrpwm0\n" );
44+ } else printf ("PASSED: pwm0\n" );
45+
46+ if (access ("/sys/devices/platform/ocp/48302000.epwmss/48302200.pwm/pwm/" , F_OK ) != 0 ){
4347 printf ("ERROR: ti-pwm driver not loaded for hrpwm1\n" );
4448 } else printf ("PASSED: pwm1\n" );
4549
46- if (access ("/sys/class/ pwm/pwmchip4/export " , F_OK ) != 0 ){
50+ if (access ("/sys/devices/platform/ocp/48304000.epwmss/48304200. pwm/pwm/ " , F_OK ) != 0 ){
4751 printf ("ERROR: ti-pwm driver not loaded for hrpwm2\n" );
4852 } else printf ("PASSED: pwm2\n" );
4953
You can’t perform that action at this time.
0 commit comments