From 4ae33c6ec8284c7b3f27d867a1357d32c063bec9 Mon Sep 17 00:00:00 2001 From: duff2013 <5598200+duff2013@users.noreply.github.com> Date: Sat, 10 Oct 2020 22:21:10 -0700 Subject: [PATCH] update - see revision.md --- README.md | 2 +- examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino | 2 +- examples/hibernate/button_hold_wakeup/button_hold_wakeup.ino | 2 +- library.properties | 2 +- revision.md | 5 +++++ src/hal/TEENSY_40/hal.c | 3 ++- 6 files changed, 11 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 29f06bc..c81c293 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Snooze v6.3.8 +# Snooze v6.3.9 --- Low power library for the Teensy LC/3.2/3.5/3.6/4.0 class microcontrollers. diff --git a/examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino b/examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino index 1455b89..71910d4 100644 --- a/examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino +++ b/examples/deepsleep/button_hold_wakeup/button_hold_wakeup.ino @@ -24,7 +24,7 @@ SnoozeDigital digital;// this is the pin wakeup driver Snoozelc5vBuffer lc5vBuffer; #endif -const uint8_t BUTTON = 7; +const uint8_t BUTTON = 6; // debounce of 5ms Bounce button = Bounce(BUTTON, 5); diff --git a/examples/hibernate/button_hold_wakeup/button_hold_wakeup.ino b/examples/hibernate/button_hold_wakeup/button_hold_wakeup.ino index 33d1ca3..d81c5b4 100644 --- a/examples/hibernate/button_hold_wakeup/button_hold_wakeup.ino +++ b/examples/hibernate/button_hold_wakeup/button_hold_wakeup.ino @@ -27,7 +27,7 @@ SnoozeDigital digital;// this is the pin wakeup driver Snoozelc5vBuffer lc5vBuffer; #endif -const uint8_t BUTTON = 7; +const uint8_t BUTTON = 6; // debounce of 5ms Bounce button = Bounce(BUTTON, 5); diff --git a/library.properties b/library.properties index e23ace8..23d6b29 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=Snooze -version=6.3.8 +version=6.3.9 author=Colin Duffy maintainer=Colin Duffy sentence=Low Power for Teensy 4.x/3.x/LC diff --git a/revision.md b/revision.md index faa00d1..033209e 100644 --- a/revision.md +++ b/revision.md @@ -1,3 +1,8 @@ +Updated (10/10/20 v6.3.9) +Updated T4 SPI driver. +Changed Button Hold example pin to 6. +Updated start early hook in T4. + >Updated (4/20/20 v6.3.8)
* Maintenance release.
* Added new examples.
diff --git a/src/hal/TEENSY_40/hal.c b/src/hal/TEENSY_40/hal.c index c5964ca..6dc5415 100644 --- a/src/hal/TEENSY_40/hal.c +++ b/src/hal/TEENSY_40/hal.c @@ -650,7 +650,8 @@ void start_up( void ) { } //---------------------------------------------------------------------------------- void startup_early_hook( void ) { - if ( SRC_SRSR == 0x0 ) { + uint32_t OR_D_GPR = IOMUXC_GPR_GPR4 | IOMUXC_GPR_GPR7 | IOMUXC_GPR_GPR8 | IOMUXC_GPR_GPR12; + if ( OR_D_GPR > 0x0 ) { IOMUXC_GPR_GPR1 &= ~IOMUXC_GPR_GPR1_GINT; /*GPIO1_ISR = 0;//0xFFFFFFFF; GPIO2_ISR = 0;//0xFFFFFFFF;