forked from Archive/PX4-Autopilot
can-gps-v1:canbootloader SAFETY is GETNODEINFO_JUMPER
This commit is contained in:
parent
2deef30d12
commit
618bd5978a
|
@ -48,8 +48,7 @@
|
|||
#include <stdint.h>
|
||||
|
||||
/* BUTTON *************************************************************************** */
|
||||
#define BUTTON_BOOT0n (GPIO_INPUT|GPIO_FLOAT|GPIO_PORTB|GPIO_PIN3|GPIO_EXTI)
|
||||
#define IRQBUTTON BUTTON_BOOT0_BIT
|
||||
#define BUTTON_SAFETY /* PB3 */ (GPIO_INPUT|GPIO_PULLDOWN|GPIO_PORTB|GPIO_PIN3|GPIO_EXTI)
|
||||
|
||||
#define GPIO_RGB_S /* PB0 */ (GPIO_OUTPUT|GPIO_PUSHPULL|GPIO_SPEED_2MHz|GPIO_OUTPUT_CLEAR|GPIO_PORTB|GPIO_PIN0)
|
||||
/* CAN Silence
|
||||
|
|
|
@ -132,9 +132,5 @@
|
|||
|
||||
/* Bootloader Option*****************************************************************
|
||||
*
|
||||
* GPIO Function MPU Board
|
||||
* Pin # Name
|
||||
* -- ----- -------------------------------- ----------------------------
|
||||
* * PC[09] PC9/TIM3_CH4 40 BOOT0
|
||||
*/
|
||||
#define GPIO_GETNODEINFO_JUMPER (BUTTON_BOOT0n&~(GPIO_EXTI))
|
||||
#define GPIO_GETNODEINFO_JUMPER (BUTTON_SAFETY & ~GPIO_EXTI)
|
||||
|
|
Loading…
Reference in New Issue