File tree Expand file tree Collapse file tree 4 files changed +8
-10
lines changed
boards/circuitplayground_bluefruit Expand file tree Collapse file tree 4 files changed +8
-10
lines changed Original file line number Diff line number Diff line change 61
61
62
62
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)
63
63
64
- #define BOARD_HAS_CRYSTAL 1
65
-
66
64
#define DEFAULT_I2C_BUS_SCL (&pin_P0_04)
67
65
#define DEFAULT_I2C_BUS_SDA (&pin_P0_05)
68
66
Original file line number Diff line number Diff line change @@ -51,12 +51,12 @@ STATIC uint32_t ble_stack_enable(void) {
51
51
.source = NRF_CLOCK_LF_SRC_XTAL ,
52
52
.rc_ctiv = 0 ,
53
53
.rc_temp_ctiv = 0 ,
54
- .accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM
54
+ .accuracy = NRF_CLOCK_LF_ACCURACY_20_PPM ,
55
55
#else
56
56
.source = NRF_CLOCK_LF_SRC_RC ,
57
57
.rc_ctiv = 16 ,
58
58
.rc_temp_ctiv = 2 ,
59
- .accuracy = NRF_CLOCK_LF_ACCURACY_250_PPM
59
+ .accuracy = NRF_CLOCK_LF_ACCURACY_250_PPM ,
60
60
#endif
61
61
};
62
62
Original file line number Diff line number Diff line change 38
38
#define MICROPY_PY_UBINASCII (1)
39
39
#define MICROPY_PY_UJSON (1)
40
40
41
- #ifndef BOARD_HAS_32KHZ_XTAL
42
- // Assume crystal is present, which is the most common case.
43
- #define BOARD_HAS_32KHZ_XTAL (0)
44
- #endif
45
-
46
41
// TODO this is old BLE stuff
47
42
#if BLUETOOTH_SD
48
43
#define MICROPY_PY_BLEIO (1)
58
53
59
54
#include "py/circuitpy_mpconfig.h"
60
55
56
+ #ifndef BOARD_HAS_32KHZ_XTAL
57
+ // Assume crystal is present, which is the most common case.
58
+ #define BOARD_HAS_32KHZ_XTAL (1)
59
+ #endif
60
+
61
61
#define MICROPY_PORT_ROOT_POINTERS \
62
62
CIRCUITPY_COMMON_ROOT_POINTERS \
63
63
ble_drv_evt_handler_entry_t* ble_drv_evt_handler_entries; \
Original file line number Diff line number Diff line change 26
26
*/
27
27
28
28
#include "nrfx.h"
29
- #include "mpconfigboard .h"
29
+ #include "mpconfigport .h"
30
30
31
31
void nrf_peripherals_clocks_init (void ) {
32
32
You can’t perform that action at this time.
0 commit comments