RIOT
RIOT copied to clipboard
boards/sodaq-sara-sff: add status pin for SARA
Contribution description
This adds a pin definition for SARA_STATUS on the sodaq-sara-sff board.
Testing procedure
Testing is only possible with this specific board, of course. Here is a code snippet to see it in operation.
printf("SARA_STATUS: %d\n", gpio_read(SARA_STATUS_PIN));
/* switch on the SARA Ublox */
SARA_ENABLE_ON;
SARA_TX_ENABLE_ON;
/* Switch the PWR_ON pin to output */
gpio_init(SARA_R4XX_PWR_ON_PIN, GPIO_OUT);
SARA_R4XX_PWR_ON_OFF;
xtimer_usleep(2000U * US_PER_MS);
SARA_R4XX_PWR_ON_ON;
/* Switch the PWR_ON pin back to input */
gpio_init(SARA_R4XX_PWR_ON_PIN, GPIO_IN);
printf("SARA_STATUS: %d\n", gpio_read(SARA_STATUS_PIN));
The output should then be:
SARA_STATUS: 0
SARA_STATUS: 1
This looks good to me. @keestux there is only a small static test failure from doccheck that's need a fix. Feel free to squash directly so we can merge this.
ping @keestux
ping @keestux
Sorry about the delay. I've pushed a fixup as you suggested
@keestux I think we're all good now. Please squash :)
@keestux I think we're all good now. Please squash :)
Squashed
Murdock results
:heavy_check_mark: PASSED
08862b2e65760f729486faf02db84c8ea9ae31ee boards/sodaq-sara-sff: add status pin for SARA
| Success | Failures | Total | Runtime |
|---|---|---|---|
| 549 | 0 | 549 | 02m:20s |