File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 29
29
#include "peripheral_clk_config.h"
30
30
31
31
#include "supervisor/shared/autoreload.h"
32
+ #include "supervisor/filesystem.h"
32
33
#include "shared-bindings/microcontroller/__init__.h"
33
34
#include "shared-bindings/microcontroller/Processor.h"
34
35
@@ -52,10 +53,13 @@ void SysTick_Handler(void) {
52
53
(void ) SysTick -> CTRL ;
53
54
common_hal_mcu_enable_interrupts ();
54
55
55
- #ifdef CIRCUITPY_AUTORELOAD_DELAY_MS
56
+ #if CIRCUITPY_FILESYSTEM_FLUSH_INTERVAL_MS > 0
57
+ filesystem_tick ();
58
+ #endif
59
+ #ifdef CIRCUITPY_AUTORELOAD_DELAY_MS
56
60
autoreload_tick ();
57
- #endif
58
- #ifdef CIRCUITPY_GAMEPAD_TICKS
61
+ #endif
62
+ #ifdef CIRCUITPY_GAMEPAD_TICKS
59
63
if (!(ticks_ms & CIRCUITPY_GAMEPAD_TICKS )) {
60
64
#if CIRCUITPY_GAMEPAD
61
65
gamepad_tick ();
@@ -64,7 +68,7 @@ void SysTick_Handler(void) {
64
68
gamepadshift_tick ();
65
69
#endif
66
70
}
67
- #endif
71
+ #endif
68
72
}
69
73
70
74
void tick_init () {
Original file line number Diff line number Diff line change @@ -428,6 +428,7 @@ static bool flush_ram_cache(bool keep_cache) {
428
428
}
429
429
430
430
// Delegates to the correct flash flush method depending on the existing cache.
431
+ // TODO Don't blink the status indicator if we don't actually do any writing (hard to tell right now).
431
432
static void spi_flash_flush_keep_cache (bool keep_cache ) {
432
433
#ifdef MICROPY_HW_LED_MSC
433
434
port_pin_set_output_level (MICROPY_HW_LED_MSC , true);
Original file line number Diff line number Diff line change @@ -266,9 +266,15 @@ void temp_status_color(uint32_t rgb) {
266
266
267
267
void clear_temp_status () {
268
268
#ifdef MICROPY_HW_NEOPIXEL
269
+ if (neopixel_in_use ) {
270
+ return ;
271
+ }
269
272
common_hal_neopixel_write (& status_neopixel , status_neopixel_color , 3 );
270
273
#endif
271
274
#if defined(MICROPY_HW_APA102_MOSI ) && defined(MICROPY_HW_APA102_SCK )
275
+ if (apa102_mosi_in_use || apa102_sck_in_use ) {
276
+ return ;
277
+ }
272
278
#if CIRCUITPY_BITBANG_APA102
273
279
shared_module_bitbangio_spi_write (& status_apa102 , status_apa102_color , APA102_BUFFER_LENGTH );
274
280
#else
You can’t perform that action at this time.
0 commit comments