File tree Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Expand file tree Collapse file tree 4 files changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ This is a CDC/DFU/UF2 bootloader for nRF52 boards.
6
6
7
7
- [ Adafruit Feather nRF52832] ( https://www.adafruit.com/product/3406 )
8
8
- [ Adafruit Feather nRF52840 Express] ( https://www.adafruit.com/product/4062 )
9
+ - [ Adafruit Circuit Playground Bluefruit] ( https://www.adafruit.com/product/4333 )
9
10
- Adafruit Metro nRF52840 Express
10
11
- [ Electronut Labs Papyr] ( https://docs.electronut.in/papyr/ )
11
12
- MakerDiary MDK nRF52840 USB Dongle
Original file line number Diff line number Diff line change 1
1
# Adafruit nRF52 Bootloader Changelog
2
2
3
+ ## 0.2.12 - 2019.08.22
4
+
5
+ - Fixed block alignment bug also in dfu_sd_image_validate (single & dual banks), PR #71 thanks to @fanoush
6
+ - Added new board: Adafruit Circuit Playground Bluefruit
7
+ - Added new board: Adafruit ItsyBitsy nRF52840 Express (WIP)
8
+ - Fixed bug in __ DOSTIME__ macro, PR #75 thanks to @henrygab
9
+
3
10
## 0.2.11
4
11
5
12
- Fixed various FAT issues, thanks to @henrygab
Original file line number Diff line number Diff line change 42
42
//------------- IMPLEMENTATION -------------//
43
43
void button_init (uint32_t pin )
44
44
{
45
- nrf_gpio_cfg_sense_input (pin , BUTTON_PULL , NRF_GPIO_PIN_SENSE_LOW );
45
+ if (BUTTON_PULL == NRF_GPIO_PIN_PULLDOWN ) {
46
+ nrf_gpio_cfg_sense_input (pin , BUTTON_PULL , NRF_GPIO_PIN_SENSE_HIGH );
47
+ } else {
48
+ nrf_gpio_cfg_sense_input (pin , BUTTON_PULL , NRF_GPIO_PIN_SENSE_LOW );
49
+ }
46
50
}
47
51
48
52
bool button_pressed (uint32_t pin )
49
53
{
50
- return (nrf_gpio_pin_read (pin ) == 0 ) ? true : false;
54
+ return (nrf_gpio_pin_read (pin ) == BUTTON_DIR ) ? true : false;
51
55
}
52
56
53
57
void board_init (void )
Original file line number Diff line number Diff line change 38
38
#ifndef BUTTON_FRESET
39
39
#define BUTTON_FRESET BUTTON_2
40
40
#endif
41
+ #ifndef BUTTON_DIR
42
+ #if BUTTON_PULL == NRF_GPIO_PIN_PULLDOWN
43
+ #define BUTTON_DIR 1
44
+ #elif BUTTON_PULL == NRF_GPIO_PIN_PULLUP
45
+ #define BUTTON_DIR 0
46
+ #endif
47
+ #endif
41
48
42
49
// The primary LED is usually Red but not in all cases.
43
50
#define LED_PRIMARY 0
You can’t perform that action at this time.
0 commit comments