[riot-notifications] [RIOT-OS/RIOT] boards/e104-bt5011a-tb: add support for the E104-BT5011A Test Board (#15388)

benpicco notifications at github.com
Tue Nov 24 22:26:00 CET 2020


With `riotboot` I can now finally flash this board reliably!

Since the `RST` button on this board is entirely software controlled, what do you think of

```patch
--- a/boards/common/e104-bt50xxa-tb/board.c
+++ b/boards/common/e104-bt50xxa-tb/board.c
@@ -20,6 +20,9 @@
 
 #include "cpu.h"
 #include "board.h"
+#include "periph/gpio.h"
+
+extern void pm_reboot(void*);
 
 void board_init(void)
 {
@@ -27,6 +30,9 @@ void board_init(void)
     LED_PORT->DIRSET = (LED_MASK);
     LED_PORT->OUTSET = (LED_MASK);
 
+    gpio_init_int(BTN0_PIN, BTN0_MODE, GPIO_FALLING,
+                  pm_reboot, NULL);
+
     /* initialize the CPU */
     cpu_init();
 }
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/15388#issuecomment-733242524
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20201124/70436247/attachment.htm>


More information about the notifications mailing list