RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

boards/sodaq-sara-sff: add status pin for SARA

Open keestux opened this issue 1 year ago • 2 comments

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

keestux avatar Jan 20 '24 21:01 keestux

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.

dylad avatar Jan 23 '24 08:01 dylad

ping @keestux

dylad avatar Feb 27 '24 20:02 dylad

ping @keestux

Sorry about the delay. I've pushed a fixup as you suggested

keestux avatar May 30 '24 18:05 keestux

@keestux I think we're all good now. Please squash :)

dylad avatar May 31 '24 08:05 dylad

@keestux I think we're all good now. Please squash :)

Squashed

keestux avatar Jun 01 '24 12:06 keestux

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

Artifacts

riot-ci avatar Jun 01 '24 20:06 riot-ci