diff --git a/changelog.md b/changelog.md index 82700ff1..79a7f994 100644 --- a/changelog.md +++ b/changelog.md @@ -14,7 +14,7 @@ - ExternalFS use fatfs to manage external spi flash (nrf52840 only) for usb msc. - Replace cpritnf by std printf - Added HwPWM3 for nRF52840 -- Added ISR_DEFERRED for attachInterrupt() for deferring callback from ISR context +- Added ISR_DEFERRED option for attachInterrupt() to defer callback from ISR context - Added digital_interrupt_deferred sketch for demo ## 0.8.6 diff --git a/cores/nRF5/HardwarePWM.cpp b/cores/nRF5/HardwarePWM.cpp index ef23ae77..243b8371 100644 --- a/cores/nRF5/HardwarePWM.cpp +++ b/cores/nRF5/HardwarePWM.cpp @@ -41,14 +41,14 @@ HardwarePWM HwPWM0(NRF_PWM0); HardwarePWM HwPWM1(NRF_PWM1); HardwarePWM HwPWM2(NRF_PWM2); -#ifdef NRF52840_XXAA +#ifdef NRF_PWM3 HardwarePWM HwPWM3(NRF_PWM3); #endif HardwarePWM* HwPWMx[] = { &HwPWM0, &HwPWM1, &HwPWM2 -#ifdef NRF52840_XXAA +#ifdef NRF_PWM3 ,&HwPWM3 #endif }; diff --git a/cores/nRF5/HardwarePWM.h b/cores/nRF5/HardwarePWM.h index 2ec89c71..e58b3d24 100644 --- a/cores/nRF5/HardwarePWM.h +++ b/cores/nRF5/HardwarePWM.h @@ -100,7 +100,7 @@ extern HardwarePWM HwPWM0; extern HardwarePWM HwPWM1; extern HardwarePWM HwPWM2; -#ifdef NRF52840_XXAA +#ifdef NRF_PWM3 extern HardwarePWM HwPWM3; #endif diff --git a/variants/pca10056/variant.h b/variants/pca10056/variant.h index a97aa209..481a3587 100644 --- a/variants/pca10056/variant.h +++ b/variants/pca10056/variant.h @@ -60,8 +60,8 @@ extern "C" #define PIN_A3 (29) #define PIN_A4 (30) #define PIN_A5 (31) -#define PIN_A6 (26) -#define PIN_A7 (27) +#define PIN_A6 (42) +#define PIN_A7 (43) static const uint8_t A0 = PIN_A0 ; static const uint8_t A1 = PIN_A1 ; @@ -92,9 +92,9 @@ static const uint8_t AREF = PIN_AREF; */ #define SPI_INTERFACES_COUNT 1 -#define PIN_SPI_MISO (47) -#define PIN_SPI_MOSI (46) -#define PIN_SPI_SCK (45) +#define PIN_SPI_MISO (46) +#define PIN_SPI_MOSI (45) +#define PIN_SPI_SCK (47) static const uint8_t SS = 44 ; static const uint8_t MOSI = PIN_SPI_MOSI ; @@ -106,8 +106,8 @@ static const uint8_t SCK = PIN_SPI_SCK ; */ #define WIRE_INTERFACES_COUNT 1 -#define PIN_WIRE_SDA (43) -#define PIN_WIRE_SCL (42) +#define PIN_WIRE_SDA (26) +#define PIN_WIRE_SCL (27) /* * QSPI interface for external flash