WS63 SDK 文档 7021f4f@fbb_ws63
ws63 和 ws63e 解决方案的 SDK 文档
载入中...
搜索中...
未找到
pwm_porting.h
浏览该文件的文档.
1
10#ifndef PWM_PORTING_H
11#define PWM_PORTING_H
12
13#include <stdint.h>
14#include <stdbool.h>
15#include "pwm.h"
16
17
18#ifdef __cplusplus
19#if __cplusplus
20extern "C" {
21#endif /* __cplusplus */
22#endif /* __cplusplus */
23
30
31
32#define PWM_MAX_NUMBER 6 /* < Max number of PWM available */
33
37typedef enum {
38 PWM_0, /* < PWM Peripheral 0. */
39 PWM_1, /* < PWM Peripheral 1. */
40 PWM_2, /* < PWM Peripheral 2. */
41 PWM_3, /* < PWM Peripheral 3. */
42 PWM_4, /* < PWM Peripheral 4. */
43 PWM_5, /* < PWM Peripheral 5. */
44 PWM_6, /* < PWM Peripheral 6. */
45 PWM_7, /* < PWM Peripheral 7. */
46 PWM_8, /* < PWM Peripheral 8. */
47 PWM_9, /* < PWM Peripheral 9. */
48 PWM_10, /* < PWM Peripheral 10. */
49 PWM_11, /* < PWM Peripheral 11. */
50 PWM_12, /* < PWM Peripheral 12. */
51 PWM_13, /* < PWM Peripheral 13. */
52 PWM_14, /* < PWM Peripheral 14. */
53 PWM_15, /* < PWM Peripheral 15. */
56
78
84
89
94
100
106
111void pwm_port_clock_enable(bool on);
112
117void pwm_irq_lock(uint8_t channel);
118
123void pwm_irq_unlock(uint8_t channel);
124
130
132
137#ifdef __cplusplus
138#if __cplusplus
139}
140#endif /* __cplusplus */
141#endif /* __cplusplus */
142
143#endif
uint32_t errcode_t
Definition of error code.
Definition errcode.h:30
void pwm_port_clock_enable(bool on)
Set the divider number of the peripheral device clock.
Definition pwm_porting.c:48
pwm_channel_t
PWM v150 channel ID.
Definition pwm_porting.h:37
void pwm_port_register_irq(pwm_channel_t channel)
Register the interrupt of pwm.
Definition pwm_porting.c:55
void pwm_port_unregister_irq(pwm_channel_t channel)
Unregister the interrupt of pwm.
Definition pwm_porting.c:63
errcode_t pwm_port_param_check(const pwm_config_t *cfg)
Definition pwm_porting.c:92
pwm_v151_group_t
PWM v150 group ID.
Definition pwm_porting.h:60
#define PWM_MAX_NUMBER
Definition pwm_porting.h:32
void pwm_irq_unlock(uint8_t channel)
Unlock of pwm interrupt.
Definition pwm_porting.c:78
void pwm_port_unregister_hal_funcs(void)
Unregister hal funcs objects from hal_pwm module.
Definition pwm_porting.c:43
uintptr_t pwm_porting_base_addr_get(void)
Get the base address of a specified PWM.
Definition pwm_porting.c:24
void pwm_irq_lock(uint8_t channel)
Lock of pwm interrupt.
Definition pwm_porting.c:72
void pwm_port_register_hal_funcs(void)
Register hal funcs objects into hal_pwm module.
Definition pwm_porting.c:38
uint32_t pwm_port_get_clock_value(pwm_channel_t channel)
Get pwm clock value.
Definition pwm_porting.c:84
@ PWM_13
Definition pwm_porting.h:51
@ PWM_9
Definition pwm_porting.h:47
@ PWM_3
Definition pwm_porting.h:41
@ PWM_12
Definition pwm_porting.h:50
@ PWM_NONE
Definition pwm_porting.h:54
@ PWM_10
Definition pwm_porting.h:48
@ PWM_6
Definition pwm_porting.h:44
@ PWM_0
Definition pwm_porting.h:38
@ PWM_15
Definition pwm_porting.h:53
@ PWM_7
Definition pwm_porting.h:45
@ PWM_11
Definition pwm_porting.h:49
@ PWM_2
Definition pwm_porting.h:40
@ PWM_14
Definition pwm_porting.h:52
@ PWM_8
Definition pwm_porting.h:46
@ PWM_4
Definition pwm_porting.h:42
@ PWM_1
Definition pwm_porting.h:39
@ PWM_5
Definition pwm_porting.h:43
@ PWM_GROUP_8
Definition pwm_porting.h:69
@ PWM_GROUP_2
Definition pwm_porting.h:63
@ PWM_GROUP_6
Definition pwm_porting.h:67
@ PWM_GROUP_15
Definition pwm_porting.h:76
@ PWM_GROUP_11
Definition pwm_porting.h:72
@ PWM_GROUP_0
Definition pwm_porting.h:61
@ PWM_GROUP_14
Definition pwm_porting.h:75
@ PWM_GROUP_9
Definition pwm_porting.h:70
@ PWM_GROUP_13
Definition pwm_porting.h:74
@ PWM_GROUP_4
Definition pwm_porting.h:65
@ PWM_GROUP_12
Definition pwm_porting.h:73
@ PWM_GROUP_7
Definition pwm_porting.h:68
@ PWM_GROUP_3
Definition pwm_porting.h:64
@ PWM_GROUP_5
Definition pwm_porting.h:66
@ PWM_GROUP_1
Definition pwm_porting.h:62
@ PWM_GROUP_10
Definition pwm_porting.h:71
PWM配置类型定义。
Definition pwm.h:36
unsigned int uintptr_t
Definition td_type.h:65