File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change 4
4
5
5
This is a CDC/DFU/UF2 bootloader for nRF52 boards.
6
6
7
+ - [ Adafruit CLUE] ( https://www.adafruit.com/product/4500 )
8
+ - [ Adafruit Circuit Playground Bluefruit] ( https://www.adafruit.com/product/4333 )
7
9
- [ Adafruit Feather nRF52832] ( https://www.adafruit.com/product/3406 )
8
10
- [ 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 )
10
13
- Adafruit Metro nRF52840 Express
11
14
- [ Electronut Labs Papyr] ( https://docs.electronut.in/papyr/ )
12
15
- MakerDiary MDK nRF52840 USB Dongle
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ void board_teardown(void)
104
104
#if defined(LED_NEOPIXEL ) || defined(LED_RGB_RED_PIN )
105
105
neopixel_teardown ();
106
106
#endif
107
- // Button
108
107
109
108
// Stop RTC1 used by app_timer
110
109
NVIC_DisableIRQ (RTC1_IRQn );
@@ -117,12 +116,10 @@ void board_teardown(void)
117
116
NRF_CLOCK -> TASKS_LFCLKSTOP = 1UL ;
118
117
119
118
// 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 )
121
121
{
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 );
126
123
}
127
124
}
128
125
Original file line number Diff line number Diff line change 28
28
#include <stdbool.h>
29
29
#include <stdint.h>
30
30
#include <string.h>
31
+ #include "nrf.h"
31
32
#include "nrf_gpio.h"
32
33
33
34
#include "board.h"
Original file line number Diff line number Diff line change 57
57
58
58
// Used as model string in OTA mode
59
59
#define BLEDIS_MANUFACTURER "Adafruit Industries"
60
- #define BLEDIS_MODEL "Clue nRF52840"
60
+ #define BLEDIS_MODEL "CLUE nRF52840"
61
61
62
62
//--------------------------------------------------------------------+
63
63
// USB
67
67
#define USB_DESC_CDC_ONLY_PID 0x0071
68
68
69
69
//------------- UF2 -------------//
70
- #define UF2_PRODUCT_NAME "Adafruit Clue nRF52840"
70
+ #define UF2_PRODUCT_NAME "Adafruit CLUE nRF52840"
71
71
#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 "
74
74
75
75
#endif // _CLUE_NRF52840_H
You can’t perform that action at this time.
0 commit comments