Home
last modified time | relevance | path

Searched refs:u32PWMClockSrc (Results 1 – 4 of 4) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2354/bsp/Library/StdDriver/src/
Dbpwm.c37 uint32_t u32PWMClockSrc; in BPWM_ConfigCaptureChannel() local
48 u32PWMClockSrc = CLK_GetPCLK0Freq(); in BPWM_ConfigCaptureChannel()
52 u32PWMClockSrc = CLK_GetPCLK1Freq(); in BPWM_ConfigCaptureChannel()
55 u32PWMClockSrc /= 1000UL; in BPWM_ConfigCaptureChannel()
58 u32NearestUnitTimeNsec = (1000000UL * u32Prescale) / u32PWMClockSrc; in BPWM_ConfigCaptureChannel()
66 if(!((1000000UL * (u32Prescale + 1UL) > (u32NearestUnitTimeNsec * u32PWMClockSrc)))) in BPWM_ConfigCaptureChannel()
110 uint32_t u32PWMClockSrc; in BPWM_ConfigOutputChannel() local
117 u32PWMClockSrc = CLK_GetPCLK0Freq(); in BPWM_ConfigOutputChannel()
121 u32PWMClockSrc = CLK_GetPCLK1Freq(); in BPWM_ConfigOutputChannel()
126 i = (u32PWMClockSrc / u32Frequency) / u32Prescale; in BPWM_ConfigOutputChannel()
[all …]
Depwm.c37 uint32_t u32PWMClockSrc; in EPWM_ConfigCaptureChannel() local
47 u32PWMClockSrc = CLK_GetPCLK0Freq(); in EPWM_ConfigCaptureChannel()
51 u32PWMClockSrc = CLK_GetPCLK1Freq(); in EPWM_ConfigCaptureChannel()
54 u32PWMClockSrc /= 1000UL; in EPWM_ConfigCaptureChannel()
57 u32NearestUnitTimeNsec = (1000000UL * u32Prescale) / u32PWMClockSrc; in EPWM_ConfigCaptureChannel()
64 if(!((1000000UL * (u32Prescale + 1UL) > (u32NearestUnitTimeNsec * u32PWMClockSrc)))) in EPWM_ConfigCaptureChannel()
109 uint32_t u32PWMClockSrc; in EPWM_ConfigOutputChannel() local
116 u32PWMClockSrc = CLK_GetPCLK0Freq(); in EPWM_ConfigOutputChannel()
120 u32PWMClockSrc = CLK_GetPCLK1Freq(); in EPWM_ConfigOutputChannel()
125 i = (u32PWMClockSrc / u32Frequency) / u32Prescale; in EPWM_ConfigOutputChannel()
[all …]
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/m2351/bsp/Library/StdDriver/src/
Dbpwm.c37 uint32_t u32PWMClockSrc; in BPWM_ConfigCaptureChannel() local
47 u32PWMClockSrc = CLK_GetPCLK0Freq(); in BPWM_ConfigCaptureChannel()
51 u32PWMClockSrc = CLK_GetPCLK1Freq(); in BPWM_ConfigCaptureChannel()
54 u32PWMClockSrc /= 1000UL; in BPWM_ConfigCaptureChannel()
57 u32NearestUnitTimeNsec = (1000000UL * u32Prescale) / u32PWMClockSrc; in BPWM_ConfigCaptureChannel()
65 if(!((1000000UL * (u32Prescale + 1UL) > (u32NearestUnitTimeNsec * u32PWMClockSrc)))) in BPWM_ConfigCaptureChannel()
109 uint32_t u32PWMClockSrc; in BPWM_ConfigOutputChannel() local
116 u32PWMClockSrc = CLK_GetPCLK0Freq(); in BPWM_ConfigOutputChannel()
120 u32PWMClockSrc = CLK_GetPCLK1Freq(); in BPWM_ConfigOutputChannel()
125 i = (u32PWMClockSrc / u32Frequency) / u32Prescale; in BPWM_ConfigOutputChannel()
[all …]
Depwm.c37 uint32_t u32PWMClockSrc; in EPWM_ConfigCaptureChannel() local
46 u32PWMClockSrc = CLK_GetPCLK0Freq(); in EPWM_ConfigCaptureChannel()
50 u32PWMClockSrc = CLK_GetPCLK1Freq(); in EPWM_ConfigCaptureChannel()
53 u32PWMClockSrc /= 1000UL; in EPWM_ConfigCaptureChannel()
56 u32NearestUnitTimeNsec = (1000000UL * u32Prescale) / u32PWMClockSrc; in EPWM_ConfigCaptureChannel()
63 if(!((1000000UL * (u32Prescale + 1UL) > (u32NearestUnitTimeNsec * u32PWMClockSrc)))) in EPWM_ConfigCaptureChannel()
108 uint32_t u32PWMClockSrc; in EPWM_ConfigOutputChannel() local
115 u32PWMClockSrc = CLK_GetPCLK0Freq(); in EPWM_ConfigOutputChannel()
119 u32PWMClockSrc = CLK_GetPCLK1Freq(); in EPWM_ConfigOutputChannel()
124 i = (u32PWMClockSrc / u32Frequency) / u32Prescale; in EPWM_ConfigOutputChannel()
[all …]