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 44
55This 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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"
Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments