1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #20279 from keestux/add-sara-sff-status

boards/sodaq-sara-sff: add status pin for SARA
This commit is contained in:
Dylan Laduranty 2024-06-01 20:47:45 +00:00 committed by GitHub
commit a67793d601
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View File

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

View File

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