Skip to content

Commit b29cdd9

Browse files
committed
hm1x: fix board support
Signed-off-by: Watson Zeng <[email protected]>
1 parent 254c9b3 commit b29cdd9

File tree

1 file changed

+9
-0
lines changed
  • device/peripheral/ble/hm1x

1 file changed

+9
-0
lines changed

device/peripheral/ble/hm1x/hm1x.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,16 @@
3131

3232

3333
/** uart id which HM-10 BLE uses */
34+
#ifndef HM_1X_UART_ID //you can define this at board header file (e.g. emsk.h)
35+
#if defined(BOARD_EMSK) || defined(BOARD_HSDK)
3436
#define HM_1X_UART_ID DW_UART_0_ID
37+
#elif defined(BOARD_EMSDP)|| defined(BOARD_IOTDK)
38+
#define HM_1X_UART_ID DFSS_UART_1_ID
39+
#else
40+
#warning hm1x is not supported on this board!
41+
#endif
42+
#endif
43+
3544
/**
3645
* HM1X working role: master or slave
3746
*/

0 commit comments

Comments
 (0)