30 #ifndef CODEBASE_PERIPHERAL_MODULES_SIMPLE_PWM_H_    31 #define CODEBASE_PERIPHERAL_MODULES_SIMPLE_PWM_H_    35 #if SYS_CFG_PRESENT == 1    36 #include "sys_config.h"    38 #ifndef TIMER_USED_SIMPLE_PWM     39 #define TIMER_USED_SIMPLE_PWM 1    43 #define SIMPLE_PWM_TIMER_USED           TIMER_USED_SIMPLE_PWM    46 #define SIMPLE_PWM_CC_COUNT           CONCAT_3(TIMER, SIMPLE_PWM_TIMER_USED, _CC_NUM)    49 #define SIMPLE_PWM_GPIOTE_START_CH    0    51 #define SIMPLE_PWM_PPI_CHS_USED 6    79     SIMPLE_PWM_MAX_CHANNEL
 PWM timer frequency of 31250 Hz.
 
void simple_pwm_init(simple_pwm_timer_freq_t freq, uint32_t max_count)
Function to initiate PWM module with clock frequency and total time of pulse.
 
simple_pwm_channel_t
Defines for specifying the three PWM channels.
 
PWM timer frequency of 8 MHz.
 
void simple_pwm_stop()
Function to stop PWM signals.
 
PWM timer frequency of 62500 Hz.
 
PWM timer frequency of 250 kHz.
 
PWM timer frequency of 500 kHz.
 
PWM timer frequency of 4 MHz.
 
PWM timer frequency of 16 MHz.
 
PWM timer frequency of 2 MHz.
 
void simple_pwm_start()
Function to start PWM signals.
 
PWM timer frequency of 125 kHz.
 
void simple_pwm_channel_setup(simple_pwm_channel_t channel, uint32_t pwm_out_pin, uint32_t value)
Function to setup a channel.
 
PWM timer frequency of 1 MHz.
 
simple_pwm_timer_freq_t
Defines for the frequency at which the timer should run for the PWM generation.