TARGET_NRF5: Corrected gpio_api to make P0.31 usable on NRF52.

pull/2865/head
Głąbek, Andrzej 2016-09-29 14:16:54 +02:00
parent 1f208f6916
commit 4b8d5e006a
2 changed files with 6 additions and 1 deletions

View File

@ -120,6 +120,7 @@ typedef enum {
P0_28 = p28,
P0_29 = p29,
P0_30 = p30,
P0_31 = p31,
LED1 = p17,
LED2 = p18,

View File

@ -20,7 +20,11 @@
#include "nrf_drv_gpiote.h"
#define GPIO_PIN_COUNT 31
#if defined(TARGET_MCU_NRF51822)
#define GPIO_PIN_COUNT 31
#else
#define GPIO_PIN_COUNT 32
#endif
typedef struct {
bool used_as_gpio : 1;