From 08862b2e65760f729486faf02db84c8ea9ae31ee Mon Sep 17 00:00:00 2001 From: Kees Bakker Date: Sat, 20 Jan 2024 20:46:33 +0100 Subject: [PATCH] boards/sodaq-sara-sff: add status pin for SARA --- boards/sodaq-sara-sff/board.c | 4 ++++ boards/sodaq-sara-sff/include/board.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/boards/sodaq-sara-sff/board.c b/boards/sodaq-sara-sff/board.c index 351730c95320..3636d7ec9369 100644 --- a/boards/sodaq-sara-sff/board.c +++ b/boards/sodaq-sara-sff/board.c @@ -38,6 +38,10 @@ void board_init(void) SARA_R4XX_PWR_ON_ON; gpio_init(SARA_R4XX_PWR_ON_PIN, GPIO_IN); + /* The SARA pin V_INT is available as SARA_STATUS_PIN. + */ + gpio_init(SARA_STATUS_PIN, GPIO_IN); + /* Disable GPS by default */ GPS_ENABLE_OFF; gpio_init(GPS_ENABLE_PIN, GPIO_OUT); diff --git a/boards/sodaq-sara-sff/include/board.h b/boards/sodaq-sara-sff/include/board.h index 626f83d633c2..9504ec6de4b4 100644 --- a/boards/sodaq-sara-sff/include/board.h +++ b/boards/sodaq-sara-sff/include/board.h @@ -146,6 +146,8 @@ extern "C" { #define SARA_R4XX_PWR_ON_OFF (SARA_R4XX_PWR_ON_PORT.OUTCLR.reg = SARA_R4XX_PWR_ON_MASK) /** @} */ +#define SARA_STATUS_PIN GPIO_PIN(PA, 28) /**< This is the V_INT of the board */ + /** * @name INT_MAG *