Skip to content

Commit 3718aae

Browse files
authored
Merge pull request #117 from adafruit/develop
follow up to #114
2 parents 8ccb638 + 0526a2b commit 3718aae

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,12 @@
44

55
This is a CDC/DFU/UF2 bootloader for nRF52 boards.
66

7+
- [Adafruit CLUE](https://www.adafruit.com/product/4500)
8+
- [Adafruit Circuit Playground Bluefruit](https://www.adafruit.com/product/4333)
79
- [Adafruit Feather nRF52832](https://www.adafruit.com/product/3406)
810
- [Adafruit Feather nRF52840 Express](https://www.adafruit.com/product/4062)
9-
- [Adafruit Circuit Playground Bluefruit](https://www.adafruit.com/product/4333)
11+
- [Adafruit Feather nRF52840 Sense](https://www.adafruit.com/product/4516)
12+
- [Adafruit ItsyBitsy nRF52840 Express](https://www.adafruit.com/product/4481)
1013
- Adafruit Metro nRF52840 Express
1114
- [Electronut Labs Papyr](https://docs.electronut.in/papyr/)
1215
- MakerDiary MDK nRF52840 USB Dongle

src/boards.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ void board_teardown(void)
104104
#if defined(LED_NEOPIXEL) || defined(LED_RGB_RED_PIN)
105105
neopixel_teardown();
106106
#endif
107-
// Button
108107

109108
// Stop RTC1 used by app_timer
110109
NVIC_DisableIRQ(RTC1_IRQn);
@@ -117,12 +116,10 @@ void board_teardown(void)
117116
NRF_CLOCK->TASKS_LFCLKSTOP = 1UL;
118117

119118
// make sure all pins are back in reset state
120-
for (int i = 0; i < 32; ++i)
119+
// NUMBER_OF_PINS is defined in nrf_gpio.h
120+
for (int i = 0; i < NUMBER_OF_PINS; ++i)
121121
{
122-
NRF_P0->PIN_CNF[i] = 2;
123-
#ifdef NRF_P1
124-
NRF_P1->PIN_CNF[i] = 2;
125-
#endif
122+
nrf_gpio_cfg_default(i);
126123
}
127124
}
128125

src/boards.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <stdbool.h>
2929
#include <stdint.h>
3030
#include <string.h>
31+
#include "nrf.h"
3132
#include "nrf_gpio.h"
3233

3334
#include "board.h"

src/boards/clue_nrf52840/board.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858
// Used as model string in OTA mode
5959
#define BLEDIS_MANUFACTURER "Adafruit Industries"
60-
#define BLEDIS_MODEL "Clue nRF52840"
60+
#define BLEDIS_MODEL "CLUE nRF52840"
6161

6262
//--------------------------------------------------------------------+
6363
// USB
@@ -67,9 +67,9 @@
6767
#define USB_DESC_CDC_ONLY_PID 0x0071
6868

6969
//------------- UF2 -------------//
70-
#define UF2_PRODUCT_NAME "Adafruit Clue nRF52840"
70+
#define UF2_PRODUCT_NAME "Adafruit CLUE nRF52840"
7171
#define UF2_VOLUME_LABEL "CLUEBOOT"
72-
#define UF2_BOARD_ID "nRF52840-Clue-revA"
73-
#define UF2_INDEX_URL "https://www.adafruit.com/"
72+
#define UF2_BOARD_ID "nRF52840-CLUE-revA"
73+
#define UF2_INDEX_URL "https://www.adafruit.com/product/4500"
7474

7575
#endif // _CLUE_NRF52840_H

0 commit comments

Comments
 (0)