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.
1 parent 254c9b3 commit b29cdd9Copy full SHA for b29cdd9
device/peripheral/ble/hm1x/hm1x.h
@@ -31,7 +31,16 @@
31
32
33
/** 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)
36
#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
43
+
44
/**
45
* HM1X working role: master or slave
46
*/
0 commit comments