Skip to content
Snippets Groups Projects
  • Mark Frost's avatar
    2ddc2fea
    Add #ifdef support for CH3/CH4 in tim2_pwm example · 2ddc2fea
    Mark Frost authored
    -Implement CH3 and CH4 optionally via #define
    -By default only CH1 and CH2 are enabled.
    -Channels 3 and 4 can be enabled by uncommenting the appropriate line
    -Choose whether default of PWM pins is HIGH (0xff) or LOW (0x00)
    
    NOTES:
    -Channel 3 is on a different port (GPIOC) which will be enabled if
    needed.
    
    -Channel 4 is on the NRST pin so not usable unless you use `minichlink -d`
    to disable the NRST function so the pin can be used as a GPIO
    
    -If your board has a bypass capacitor on PD7 for a reset button the
    waveforms observed on CH4 will not be nice square waves.
    2ddc2fea
    History
    Add #ifdef support for CH3/CH4 in tim2_pwm example
    Mark Frost authored
    -Implement CH3 and CH4 optionally via #define
    -By default only CH1 and CH2 are enabled.
    -Channels 3 and 4 can be enabled by uncommenting the appropriate line
    -Choose whether default of PWM pins is HIGH (0xff) or LOW (0x00)
    
    NOTES:
    -Channel 3 is on a different port (GPIOC) which will be enabled if
    needed.
    
    -Channel 4 is on the NRST pin so not usable unless you use `minichlink -d`
    to disable the NRST function so the pin can be used as a GPIO
    
    -If your board has a bypass capacitor on PD7 for a reset button the
    waveforms observed on CH4 will not be nice square waves.