mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/openmote-b: Set boot pin to input
Some boards seem to lock the bootloader if the boot pin is high It must be set to input to prevent contention from the msp430 line controller
This commit is contained in:
parent
5b79d41922
commit
08ef6a7e22
@ -29,6 +29,9 @@ void board_init(void)
|
||||
gpio_init(LED1_PIN, GPIO_OUT);
|
||||
gpio_init(LED2_PIN, GPIO_OUT);
|
||||
gpio_init(LED3_PIN, GPIO_OUT);
|
||||
/* The boot pin must be set to input otherwise it may lock the bootloader */
|
||||
gpio_init(BOOT_PIN, GPIO_IN);
|
||||
|
||||
gpio_init(USER_BUTTON_PIN, GPIO_IN);
|
||||
gpio_init(RF_SWITCH_2_4_GHZ_PIN, GPIO_OUT);
|
||||
gpio_init(RF_SWITCH_SUB_GHZ_PIN, GPIO_OUT);
|
||||
|
@ -96,6 +96,8 @@
|
||||
#define CCA_BACKDOOR_ENABLE (1)
|
||||
#define CCA_BACKDOOR_PORT_A_PIN (6) /**< BSL_BOOT Pin */
|
||||
#define CCA_BACKDOOR_ACTIVE_LEVEL (0) /**< Active low */
|
||||
|
||||
#define BOOT_PIN GPIO_PIN(0, CCA_BACKDOOR_PORT_A_PIN) /**< BSL_BOOT Pin */
|
||||
/** @} */
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user