File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed
atmel-samd/common-hal/rotaryio
boards/circuitplayground_bluefruit Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 3535
3636void common_hal_rotaryio_incrementalencoder_construct (rotaryio_incrementalencoder_obj_t * self ,
3737 const mcu_pin_obj_t * pin_a , const mcu_pin_obj_t * pin_b ) {
38- if (!pin_a -> has_extint || !pin_a -> has_extint ) {
38+ if (!pin_a -> has_extint || !pin_b -> has_extint ) {
3939 mp_raise_RuntimeError (translate ("Both pins must support hardware interrupts" ));
4040 }
4141
Original file line number Diff line number Diff line change 3636
3737#define MICROPY_HW_LED_STATUS (&pin_P1_14)
3838
39+ // Unusually, board does not have a 32 kHz xtal. Nearly all boards do.
40+ #define BOARD_HAS_32KHZ_XTAL (0)
41+
3942#if QSPI_FLASH_FILESYSTEM
4043#define MICROPY_QSPI_DATA0 NRF_GPIO_PIN_MAP(0, 21)
4144#define MICROPY_QSPI_DATA1 NRF_GPIO_PIN_MAP(0, 23)
Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ MCU_CHIP = nrf52840
1010SD ?= s140
1111SOFTDEV_VERSION ?= 6.1.0
1212
13- # Unusually, board does not have a 32 kHz xtal.
14- BOARD_HAS_32KHZ_XTAL = 0
15-
1613BOOT_SETTING_ADDR = 0xFF000
1714
1815ifeq ($(SD ) ,)
Original file line number Diff line number Diff line change 3838#define MICROPY_PY_UBINASCII (1)
3939#define MICROPY_PY_UJSON (1)
4040
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+
4146// TODO this is old BLE stuff
4247#if BLUETOOTH_SD
4348 #define MICROPY_PY_BLEIO (1)
Original file line number Diff line number Diff line change @@ -28,11 +28,6 @@ CIRCUITPY_RTC = 1
2828# frequencyio not yet implemented
2929CIRCUITPY_FREQUENCYIO = 0
3030
31- ifndef BOARD_HAS_32KHZ_XTAL
32- # Assume crystal is present, which is the most common case.
33- BOARD_HAS_32KHZ_XTAL = 1
34- endif
35-
3631# CircuitPython doesn't yet support NFC so force the NFC antenna pins to be GPIO.
3732# See https://github.com/adafruit/circuitpython/issues/1300
3833# Defined here because system_nrf52840.c doesn't #include any of our own include files.
Original file line number Diff line number Diff line change 2626 */
2727
2828#include "nrfx.h"
29+ #include "mpconfigboard.h"
2930
3031void nrf_peripherals_clocks_init (void ) {
3132
You can’t perform that action at this time.
0 commit comments