Skip to content

Commit 77092f2

Browse files
authored
Merge pull request #772 from tannewt/rtc51
atmel-samd: Fix M4 RTC and ItsyBitsy M4 definition
2 parents 321fa20 + 898a7d9 commit 77092f2

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

ports/atmel-samd/asf4_conf/samd51/hpl_osc32kctrl_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// <i> This defines the clock source for RTC
1818
// <id> rtc_source_oscillator
1919
#ifndef CONF_RTCCTRL_SRC
20-
#define CONF_RTCCTRL_SRC GCLK_GENCTRL_SRC_XOSC32K
20+
#define CONF_RTCCTRL_SRC GCLK_GENCTRL_SRC_OSCULP32K
2121
#endif
2222

2323
// <q> Use 1 kHz output

ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.h

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77
#define MICROPY_HW_APA102_MOSI (&pin_PB03)
88
#define MICROPY_HW_APA102_SCK (&pin_PB02)
99

10+
#define CIRCUITPY_BITBANG_APA102
11+
1012
// These are pins not to reset.
11-
// QSPI Data pins and TX LED
13+
// QSPI Data pins
1214
#define MICROPY_PORT_A (PORT_PA08 | PORT_PA09 | PORT_PA10 | PORT_PA11)
13-
// RX LED, QSPI CS, QSPI SCK and NeoPixel pin
15+
// DotStar pins, QSPI CS, and QSPI SCK
1416
#define MICROPY_PORT_B (PORT_PB02 | PORT_PB03 | PORT_PB10 | PORT_PB11)
1517
#define MICROPY_PORT_C (0)
1618
#define MICROPY_PORT_D (0)
@@ -25,7 +27,7 @@
2527

2628
#include "external_flash/devices.h"
2729

28-
#define EXTERNAL_FLASH_DEVICE_COUNT 3
29-
#define EXTERNAL_FLASH_DEVICES S25FL116K, S25FL216K, GD25Q16C
30+
#define EXTERNAL_FLASH_DEVICE_COUNT 1
31+
#define EXTERNAL_FLASH_DEVICES GD25Q16C
3032

3133
#include "external_flash/external_flash.h"

0 commit comments

Comments
 (0)