summaryrefslogtreecommitdiff
path: root/supervisor
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2020-04-20 18:25:13 -0700
committerScott Shawcroft <scott@tannewt.org>2020-04-20 18:25:13 -0700
commitbebf27e73315386bfd862da46251a5efae56de75 (patch)
tree4bfac7c3b6b0779962cdd637d020a139419a6357 /supervisor
parentabd340a8e465fedd2b5d74989440532c767ccf9e (diff)
parenta4d86b96fd1e60b807258a30cd765b48f0372b6d (diff)
Merge remote-tracking branch 'adafruit/master' into lower_power
This isn't perfect and needs a bit more testing.
Diffstat (limited to 'supervisor')
-rwxr-xr-xsupervisor/linker.h2
-rw-r--r--supervisor/shared/display.c10
2 files changed, 6 insertions, 6 deletions
diff --git a/supervisor/linker.h b/supervisor/linker.h
index d68be2437..74b2dd5a6 100755
--- a/supervisor/linker.h
+++ b/supervisor/linker.h
@@ -29,7 +29,7 @@
#ifndef MICROPY_INCLUDED_SUPERVISOR_LINKER_H
#define MICROPY_INCLUDED_SUPERVISOR_LINKER_H
-#if defined(IMXRT10XX) || defined(FOMU)
+#if defined(IMXRT10XX) || defined(FOMU) || defined(STM32H7)
#define PLACE_IN_DTCM_DATA(name) name __attribute__((section(".dtcm_data." #name )))
#define PLACE_IN_DTCM_BSS(name) name __attribute__((section(".dtcm_bss." #name )))
#define PLACE_IN_ITCM(name) __attribute__((section(".itcm." #name ))) name
diff --git a/supervisor/shared/display.c b/supervisor/shared/display.c
index 95926bc9c..9c074209b 100644
--- a/supervisor/shared/display.c
+++ b/supervisor/shared/display.c
@@ -34,7 +34,7 @@
#include "shared-bindings/displayio/TileGrid.h"
#include "supervisor/memory.h"
-#if CIRCUITPY_PROTOMATTER
+#if CIRCUITPY_RGBMATRIX
#include "shared-module/displayio/__init__.h"
#endif
@@ -116,11 +116,11 @@ void supervisor_display_move_memory(void) {
grid->inline_tiles = false;
}
MP_STATE_VM(terminal_tilegrid_tiles) = NULL;
- #if CIRCUITPY_PROTOMATTER
+ #if CIRCUITPY_RGBMATRIX
for (uint8_t i = 0; i < CIRCUITPY_DISPLAY_LIMIT; i++) {
- if (displays[i].protomatter.base.type == &protomatter_Protomatter_type) {
- protomatter_protomatter_obj_t * pm = &displays[i].protomatter;
- common_hal_protomatter_protomatter_reconstruct(pm, NULL);
+ if (displays[i].rgbmatrix.base.type == &rgbmatrix_RGBMatrix_type) {
+ rgbmatrix_rgbmatrix_obj_t * pm = &displays[i].rgbmatrix;
+ common_hal_rgbmatrix_rgbmatrix_reconstruct(pm, NULL);
}
}
#endif