can-gps-v1:canbootloader SAFETY is GETNODEINFO_JUMPER

This commit is contained in:
David Sidrane 2021-01-12 16:03:51 -08:00 committed by Daniel Agar
parent 2deef30d12
commit 618bd5978a
2 changed files with 2 additions and 7 deletions

View File

@ -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

View File

@ -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)