Nano100 series peripheral access layer header file. This file contains all the peripheral register's ...
#define SYS_PA_H_MFP_PA13_MFP_Msk
#define SYS_PA_L_MFP_PA7_MFP_Msk
#define SYS_PA_H_MFP_PA12_MFP_Msk
NuEdu-Basic01 RGB LED driver header file for NuEdu-SDK-Nano130.
#define CLK_CLKSEL1_PWM0_CH23_S_HCLK
#define CLK_CLKSEL1_PWM0_CH01_S_HCLK
void CLK_EnableModuleClock(uint32_t u32ModuleIdx)
This function enable module clock.
void CLK_SetModuleClock(uint32_t u32ModuleIdx, uint32_t u32ClkSrc, uint32_t u32ClkDiv)
This function set selected module clock source and module clock divider.
#define PWM0
Pointer to PWM0 register structure.
#define SYS
Pointer to SYS register structure.
uint32_t PWM_ConfigOutputChannel(PWM_T *pwm, uint32_t u32ChannelNum, uint32_t u32Frequency, uint32_t u32DutyCycle)
This function config PWM generator and get the nearest frequency in edge aligned auto-reload mode.
void PWM_Start(PWM_T *pwm, uint32_t u32ChannelMask)
This function start PWM module.
void PWM_EnableOutput(PWM_T *pwm, uint32_t u32ChannelMask)
This function enables PWM output generation of selected channels.
#define SYS_PA_H_MFP_PA13_MFP_PWM0_CH1
#define SYS_PA_H_MFP_PA12_MFP_PWM0_CH0
#define SYS_PA_L_MFP_PA7_MFP_PWM0_CH2
void Initial_PWM_LED(void)
Set multi-function pins for PWM0 channel 0,1,2.
void PWM_LED(void)
Set PWM clock enable and HCLK as PWM clock source, PWM frequency is 100Hz, duty 30% and enable output...