We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ca867e8 + 137bcdd commit 825b0caCopy full SHA for 825b0ca
bsp/bluetrum/libraries/hal_drivers/drv_common.h
@@ -15,4 +15,6 @@
15
#include <rthw.h>
16
#include <rtdevice.h>
17
18
+#define GET_PIN(PORTx,PIN) (uint8_t)__AB32_GET_PIN_##PORTx(PIN)
19
+
20
#endif // DRV_COMMON_H__
bsp/bluetrum/libraries/hal_drivers/drv_gpio.h
@@ -15,6 +15,10 @@
#include "board.h"
#define __AB32_PORT(port) GPIO##port
+#define __AB32_GET_PIN_A(PIN) PIN
+#define __AB32_GET_PIN_B(PIN) 8 + PIN
+#define __AB32_GET_PIN_E(PIN) 13 + PIN
21
+#define __AB32_GET_PIN_F(PIN) 21 + PIN
22
23
int rt_hw_pin_init(void);
24
0 commit comments