Skip to content

Commit 5154e05

Browse files
committed
WIP: atmel-samd trinket build works
1 parent 3792581 commit 5154e05

48 files changed

Lines changed: 1074 additions & 624 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

main.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
#include "supervisor/shared/stack.h"
5959
#include "supervisor/serial.h"
6060

61-
#ifdef MICROPY_PY_NETWORK
61+
#if CIRCUITPY_NETWORK
6262
#include "shared-module/network/__init__.h"
6363
#endif
6464

@@ -118,13 +118,13 @@ void start_mp(supervisor_allocation* heap) {
118118

119119
mp_obj_list_init(mp_sys_argv, 0);
120120

121-
#if MICROPY_PY_NETWORK
121+
#if CIRCUITPY_NETWORK
122122
network_module_init();
123123
#endif
124124
}
125125

126126
void stop_mp(void) {
127-
#if MICROPY_PY_NETWORK
127+
#if CIRCUITPY_NETWORK
128128
network_module_deinit();
129129
#endif
130130
}
@@ -201,7 +201,9 @@ bool run_code_py(safe_mode_t safe_mode) {
201201
}
202202
}
203203
// Turn off the display before the heap disappears.
204+
#if CIRCUITPY_DISPLAYIO
204205
reset_displays();
206+
#endif
205207
stop_mp();
206208
free_memory(heap);
207209
supervisor_move_memory();

0 commit comments

Comments
 (0)