-
Notifications
You must be signed in to change notification settings - Fork 0
/
board.h
58 lines (48 loc) · 1.89 KB
/
board.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
// based on the ble_peripheral example in RTL8762C-sdk-gcc-v0.0.5.zip
// <https://www.realmcu.com/en/Home/Product/93cc0582-3a3f-4ea8-82ea-76c6504e478a>
// modified by wuwbobo2021 <https://github.com/wuwbobo2021>, <[email protected]>
#ifndef _BOARD_H_
#define _BOARD_H_
#ifdef __cplusplus
extern "C" {
#endif
#define UART_TX_PIN P3_0
#define UART_RX_PIN P3_1
#if BT_CTRL_SWITCH_EN
#define BT_CTRL_SWITCH_PIN P2_5
#define BT_CTRL_SWITCH_CONN PAD_OUT_LOW
#define BT_CTRL_SWITCH_DISC PAD_OUT_HIGH
#endif
/* if use user define dlps enter/dlps exit callback function */
#define USE_USER_DEFINE_DLPS_EXIT_CB 1
#define USE_USER_DEFINE_DLPS_ENTER_CB 1
/* if use any peripherals below, #define it 1 */
#define USE_I2C0_DLPS 0
#define USE_I2C1_DLPS 0
#define USE_TIM_DLPS 0
#define USE_QDECODER_DLPS 0
#define USE_IR_DLPS 0
#define USE_RTC_DLPS 0
#define USE_UART_DLPS 1
#define USE_ADC_DLPS 0
#define USE_SPI0_DLPS 0
#define USE_SPI1_DLPS 0
#define USE_SPI2W_DLPS 0
#define USE_KEYSCAN_DLPS 0
#define USE_DMIC_DLPS 0
#define USE_GPIO_DLPS 1
#define USE_PWM0_DLPS 0
#define USE_PWM1_DLPS 0
#define USE_PWM2_DLPS 0
#define USE_PWM3_DLPS 0
/* do not modify USE_IO_DRIVER_DLPS macro */
#define USE_IO_DRIVER_DLPS (USE_I2C0_DLPS | USE_I2C1_DLPS | USE_TIM_DLPS | USE_QDECODER_DLPS\
| USE_IR_DLPS | USE_RTC_DLPS | USE_UART_DLPS | USE_SPI0_DLPS\
| USE_SPI1_DLPS | USE_SPI2W_DLPS | USE_KEYSCAN_DLPS | USE_DMIC_DLPS\
| USE_GPIO_DLPS | USE_USER_DEFINE_DLPS_EXIT_CB\
| USE_RTC_DLPS | USE_PWM0_DLPS | USE_PWM1_DLPS | USE_PWM2_DLPS\
| USE_PWM3_DLPS | USE_USER_DEFINE_DLPS_ENTER_CB)
#ifdef __cplusplus
}
#endif
#endif