Skip to content

Commit b5f5bdd

Browse files
authored
Merge pull request #516 from adafruit/minor-cleanup
fix typo
2 parents b03d6e5 + 3af5e6c commit b5f5bdd

File tree

3 files changed

+9
-15
lines changed

3 files changed

+9
-15
lines changed

boards.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ feather52832.build.f_cpu=64000000
4040
feather52832.build.board=NRF52832_FEATHER
4141
feather52832.build.core=nRF5
4242
feather52832.build.variant=feather_nrf52832
43-
feather52840.build.usb_manufacturer="Adafruit LLC"
44-
feather52840.build.usb_product="Feather nRF52832"
43+
feather52832.build.usb_manufacturer="Adafruit LLC"
44+
feather52832.build.usb_product="Feather nRF52832"
4545
feather52832.build.extra_flags=-DNRF52832_XXAA -DNRF52
4646
feather52832.build.ldscript=nrf52832_s132_v6.ld
4747

changelog.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
## 0.20.0 - 2020.04.21
88

9-
- Fixed Wire write ambigou
9+
- Fixed Wire write ambiguous
1010
- Improved debugging with log and sysview, thanks to @henrygab
1111
- Fixed recipe to compute SRAM and ROM of sketch
1212
- Removed the force waiting Serial when debug is enabled

libraries/Bluefruit52Lib/src/services/BLEDfu.cpp

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,18 +164,12 @@ static void bledfu_control_wr_authorize_cb(uint16_t conn_hdl, BLECharacteristic*
164164
VERIFY_STATUS( sd_softdevice_disable(), );
165165

166166
// Disable all interrupts
167-
#if defined(NRF52832_XXAA)
168-
#define MAX_NUMBER_INTERRUPTS 39
169-
#elif defined(NRF52840_XXAA)
170-
#define MAX_NUMBER_INTERRUPTS 48
171-
#endif
172-
173-
NVIC_ClearPendingIRQ(SD_EVT_IRQn);
174-
for(int i=0; i < MAX_NUMBER_INTERRUPTS; i++)
175-
{
176-
NVIC_DisableIRQ( (IRQn_Type) i );
177-
}
178-
167+
NVIC->ICER[0]=0xFFFFFFFF;
168+
NVIC->ICPR[0]=0xFFFFFFFF;
169+
#if defined(__NRF_NVIC_ISER_COUNT) && __NRF_NVIC_ISER_COUNT == 2
170+
NVIC->ICER[1]=0xFFFFFFFF;
171+
NVIC->ICPR[1]=0xFFFFFFFF;
172+
#endif
179173
// Clear RTC1 timer to prevent Interrupt happens after changing vector table
180174
// NRF_RTC1->EVTENCLR = RTC_EVTEN_COMPARE0_Msk;
181175
// NRF_RTC1->INTENCLR = RTC_INTENSET_COMPARE0_Msk;

0 commit comments

Comments
 (0)