Skip to content

Commit b95325e

Browse files
authored
Merge branch 'samd-sleep' into samd-sleep-v1
2 parents 7a703aa + f748d66 commit b95325e

File tree

7 files changed

+10
-8
lines changed

7 files changed

+10
-8
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,9 +154,6 @@
154154
path = ports/espressif/esp-idf
155155
url = https://github.com/espressif/esp-idf.git
156156
branch = release/v4.3
157-
[submodule "ports/espressif/certificates/nina-fw"]
158-
path = ports/espressif/certificates/nina-fw
159-
url = https://github.com/adafruit/nina-fw.git
160157
[submodule "frozen/Adafruit_CircuitPython_ST7789"]
161158
path = frozen/Adafruit_CircuitPython_ST7789
162159
url = https://github.com/adafruit/Adafruit_CircuitPython_ST7789

locale/circuitpython.pot

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1771,6 +1771,7 @@ msgstr ""
17711771
msgid "Only one TouchAlarm can be set in deep sleep."
17721772
msgstr ""
17731773

1774+
#: ports/atmel-samd/common-hal/alarm/time/TimeAlarm.c
17741775
#: ports/espressif/common-hal/alarm/time/TimeAlarm.c
17751776
#: ports/nrf/common-hal/alarm/time/TimeAlarm.c
17761777
#: ports/raspberrypi/common-hal/alarm/time/TimeAlarm.c
@@ -1881,6 +1882,10 @@ msgstr ""
18811882
msgid "Pin must support hardware interrupts"
18821883
msgstr ""
18831884

1885+
#: ports/atmel-samd/common-hal/alarm/pin/PinAlarm.c
1886+
msgid "PinAlarms not available"
1887+
msgstr ""
1888+
18841889
#: shared-bindings/rgbmatrix/RGBMatrix.c
18851890
#, c-format
18861891
msgid ""
@@ -2091,6 +2096,7 @@ msgstr ""
20912096
msgid "Size not supported"
20922097
msgstr ""
20932098

2099+
#: ports/atmel-samd/common-hal/alarm/SleepMemory.c
20942100
#: ports/raspberrypi/common-hal/alarm/SleepMemory.c
20952101
msgid "Sleep Memory not available"
20962102
msgstr ""
@@ -2245,6 +2251,7 @@ msgstr ""
22452251
msgid "Total data to write is larger than %q"
22462252
msgstr ""
22472253

2254+
#: ports/atmel-samd/common-hal/alarm/touch/TouchAlarm.c
22482255
#: ports/raspberrypi/common-hal/alarm/touch/TouchAlarm.c
22492256
#: ports/stm/common-hal/alarm/touch/TouchAlarm.c
22502257
msgid "Touch alarms not available"

ports/atmel-samd/common-hal/alarm/__init__.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,4 +275,3 @@ MP_NOINLINE void common_hal_alarm_pretending_deep_sleep(void) {
275275
void common_hal_alarm_gc_collect(void) {
276276
gc_collect_ptr(shared_alarm_get_wake_alarm());
277277
}
278-

ports/atmel-samd/common-hal/alarm/pin/PinAlarm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ mp_obj_t alarm_pin_pinalarm_find_triggered_alarm(size_t n_alarms, const mp_obj_t
4242
mp_obj_t alarm_pin_pinalarm_create_wakeup_alarm(void);
4343

4444
void pin_alarm_callback(uint8_t num);
45-
4645
void alarm_pin_pinalarm_reset(void);
4746
void alarm_pin_pinalarm_set_alarms(bool deep_sleep, size_t n_alarms, const mp_obj_t *alarms);
4847
void alarm_pin_pinalarm_prepare_for_deep_sleep(void);

ports/atmel-samd/common-hal/alarm/time/TimeAlarm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
// #include <stdio.h>
3030
// #include "shared-bindings/microcontroller/__init__.h"
3131

32-
3332
#include "shared-bindings/alarm/time/TimeAlarm.h"
3433
#include "shared-bindings/time/__init__.h"
3534
#include "supervisor/port.h"
@@ -44,6 +43,7 @@ void common_hal_alarm_time_timealarm_construct(alarm_time_timealarm_obj_t *self,
4443
//
4544
// UPDATE: for deep sleep at least, it's far more than 3 days since
4645
// prescalar is set to 1024. (2^32)/32 seconds so >1500 days?
46+
4747
self->monotonic_time = monotonic_time;
4848
}
4949

ports/atmel-samd/mpconfigport.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ CIRCUITPY_TOUCHIO_USE_NATIVE = 0
9898

9999
# The ?='s allow overriding in mpconfigboard.mk.
100100

101-
CIRCUITCIRCUITPY_ALARM ?= 0
101+
102+
CIRCUITPY_ALARM ?= 0
102103
PY_PS2IO ?= 1
103104
CIRCUITPY_SAMD ?= 1
104105
CIRCUITPY_RGBMATRIX ?= $(CIRCUITPY_FULL_BUILD)

ports/espressif/certificates/nina-fw

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)