Skip to content

Commit 608cde9

Browse files
committed
update bootloader binaries and multiple clean up
1 parent 5580249 commit 608cde9

File tree

16 files changed

+4380
-7404
lines changed

16 files changed

+4380
-7404
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,10 @@ but enter the `MSDEnable` command.
142142
This core is based on [Arduino-nRF5](https://github.com/sandeepmistry/arduino-nRF5) by Sandeep Mistry,
143143
which in turn is based on the [Arduino SAMD Core](https://github.com/arduino/ArduinoCore-samd).
144144
145-
The following repos are used:
145+
The following libraries are used:
146146
147147
- adafruit-nrfutil is based on Nordic Semiconductor ASA's [pc-nrfutil](https://github.com/NordicSemiconductor/pc-nrfutil)
148148
- [tinyusb](https://github.com/hathach/tinyusb) as usb stack
149-
- [nrfx](https://github.com/NordicSemiconductor/nrfx) for driver
149+
- [nrfx](https://github.com/NordicSemiconductor/nrfx) for peripherals driver
150+
- [littlefs](https://github.com/ARMmbed/littlefs) for internal file system
151+
- [fatfs by elm-chan](http://elm-chan.org/fsw/ff/00index_e.html) for external file system

bootloader/feather_nrf52832/6.1.0r0/feather_nrf52832_bootloader_s132_6.1.0r0.hex

Lines changed: 1226 additions & 1226 deletions
Large diffs are not rendered by default.
Binary file not shown.

bootloader/feather_nrf52840_express/6.1.0r0/feather_nrf52840_express_bootloader_s140_6.1.0r0.hex

Lines changed: 1560 additions & 1560 deletions
Large diffs are not rendered by default.

bootloader/pca10056/6.1.0r0/pca10056_bootloader_s140_6.1.0r0.hex

Lines changed: 1560 additions & 1560 deletions
Large diffs are not rendered by default.
Binary file not shown.

cores/nRF5/common_func.h

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -278,32 +278,6 @@ static inline bool is_within(uint32_t lower, uint32_t value, uint32_t upper)
278278
return (lower <= value) && (value <= upper);
279279
}
280280

281-
static inline uint8_t log2_of(uint32_t value)
282-
{
283-
uint8_t result = 0; // log2 of a value is its MSB's position
284-
while (value >>= 1) result++;
285-
286-
return result;
287-
}
288-
289-
// return the number of set bits in value
290-
static inline uint8_t cardinality_of(uint32_t value)
291-
{
292-
// Brian Kernighan's method goes through as many iterations as there are set bits. So if we have a 32-bit word with only
293-
// the high bit set, then it will only go once through the loop
294-
// Published in 1988, the C Programming Language 2nd Ed. (by Brian W. Kernighan and Dennis M. Ritchie)
295-
// mentions this in exercise 2-9. On April 19, 2006 Don Knuth pointed out to me that this method
296-
// "was first published by Peter Wegner in CACM 3 (1960), 322. (Also discovered independently by Derrick Lehmer and
297-
// published in 1964 in a book edited by Beckenbach.)"
298-
uint8_t count;
299-
for (count = 0; value; count++)
300-
{
301-
value &= value - 1; // clear the least significant bit set
302-
}
303-
304-
return count;
305-
}
306-
307281
#ifdef __cplusplus
308282
}
309283
#endif

0 commit comments

Comments
 (0)