summaryrefslogtreecommitdiff
path: root/ports/stm
diff options
context:
space:
mode:
authorDan Halbert <halbert@halwitz.org>2020-11-22 19:10:09 -0500
committerDan Halbert <halbert@halwitz.org>2020-11-22 19:10:09 -0500
commita0f1ec3c4a3dd52b11752e10d0dd31202e9c705f (patch)
tree333234f72abc302da7646f87a3c18740170b6bf7 /ports/stm
parent75559f35ccc946dfd292e25671919e5d5b3bd7a6 (diff)
wip
Diffstat (limited to 'ports/stm')
-rw-r--r--ports/stm/common-hal/microcontroller/__init__.c4
-rw-r--r--ports/stm/common-hal/rgbmatrix/RGBMatrix.h4
2 files changed, 6 insertions, 2 deletions
diff --git a/ports/stm/common-hal/microcontroller/__init__.c b/ports/stm/common-hal/microcontroller/__init__.c
index a827399cc..bc81b0e4f 100644
--- a/ports/stm/common-hal/microcontroller/__init__.c
+++ b/ports/stm/common-hal/microcontroller/__init__.c
@@ -81,6 +81,10 @@ void common_hal_mcu_reset(void) {
NVIC_SystemReset();
}
+void common_hal_mcu_deep_sleep(void) {
+ //deep sleep call here
+}
+
// The singleton microcontroller.Processor object, bound to microcontroller.cpu
// It currently only has properties, and no state.
const mcu_processor_obj_t common_hal_mcu_processor_obj = {
diff --git a/ports/stm/common-hal/rgbmatrix/RGBMatrix.h b/ports/stm/common-hal/rgbmatrix/RGBMatrix.h
index 48de4dcb2..323878d20 100644
--- a/ports/stm/common-hal/rgbmatrix/RGBMatrix.h
+++ b/ports/stm/common-hal/rgbmatrix/RGBMatrix.h
@@ -24,8 +24,8 @@
* THE SOFTWARE.
*/
-#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
-#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
+#ifndef MICROPY_INCLUDED_STM_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
+#define MICROPY_INCLUDED_STM_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
void *common_hal_rgbmatrix_timer_allocate(void);
void common_hal_rgbmatrix_timer_enable(void*);