13 #define START 0x44e00000 // see datasheet of AM335x
15 #define OFFSET_1 0xcc // offset of PWM1 clock (see datasheet of AM335x p.1018)
16 #define FREQ 50 //50Hz pwm frequency for pressure regulator
17 #define PWMMuxPath "/sys/kernel/debug/omap_mux/gpmc_a2"
18 #define PWMRunPath "/sys/class/pwm/ehrpwm.1:0/run"
19 #define PWMDutyPath "/sys/class/pwm/ehrpwm.1:0/duty_percent"
20 #define PWMFreqPath "/sys/class/pwm/ehrpwm.1:0/period_freq"
25 void pwm_set_duty(int duty_percent);
26 void pwm_set_period(int freq);