The 27Mhz code is implemented as follows:
static handle_t pwm1;
uint8_t 74Mhz_clock(void)
{
pwm1 = io_open("/dev/pwm1");
pwm_set_frequency(pwm1, 26000000);
pwm_set_active_duty_cycle_percentage(pwm1, 0, 0.5);
pwm_set_enable(pwm1, 0, true);
return 0;
}
Note in project_cfg.h, if it is written according to my above, then the corresponding pin should be set to: FUNC_TIMER1_TOGGLE1
If pwm0 is turned on, and the channel is selected as 0, then the corresponding pin is set to: FUNC_TIMER0_TOGGLE1
Because the document is written in the cloud, and there is no introduction in this area, here is the record