在配置ADC采样时,设置相应的GPIO为ADC采样
GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
就这一条语句就可以吗?
为什么不要像PWM模块设置一样,还要指定那个pwm模块的那一路pwm信号呢?
GPIOPinTypePWM(GPIO_PORTE_BASE, GPIO_PIN_5);
GPIOPinConfigure(GPIO_PE5_M0PWM5);
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
在配置ADC采样时,设置相应的GPIO为ADC采样
GPIOPinTypeADC(GPIO_PORTE_BASE, GPIO_PIN_1|GPIO_PIN_2|GPIO_PIN_3);
就这一条语句就可以吗?
为什么不要像PWM模块设置一样,还要指定那个pwm模块的那一路pwm信号呢?
GPIOPinTypePWM(GPIO_PORTE_BASE, GPIO_PIN_5);
GPIOPinConfigure(GPIO_PE5_M0PWM5);