Snooze icon indicating copy to clipboard operation
Snooze copied to clipboard

Teensey 4.1 Support

Open c172jeff opened this issue 3 years ago • 3 comments

Hi, I was wondering if this is working in Teensey 4.1? The last time I checked, I had problems compiling. I would like to have the Teensey 4.1 sleep at very low power and wake up ever 2 hours or so and perform like a bat out of hell/take pictures and save to the sd card. What little I have read was related to clock scalers and 4.1 having lots of peripherals that needed to be switched off for low power.. For my Teensey 4.1 to be useful, it needs to sleep with extremenly low power current draw until needed...either time or interrupt Jeff

c172jeff avatar Dec 23 '21 18:12 c172jeff

It seems the library is no longer maintained. if you want to fix the code yourself its pretty easy.

go to "Snooze/src/hal/TEENSY_40/SnoozeDigital.cpp" and fix the defines at the beginning to:


#define _DR    0
#define _GDIR  1
#define _PSR   2
#define _ICR1  3
#define _ICR2  4
#define _IMR   5
#define _ISR   6
#define _EDGE  7

go through the code and add the underscore everywhere the defines are used. Its just a naming collision with register names that have changed I guess.
compiles fine for me

Second fix needed is documented here: https://github.com/duff2013/Snooze/issues/114

savejeff avatar May 05 '22 14:05 savejeff

Thank you. I will try that.

Jeff

From: savejeff @.*** Sent: Thursday, May 5, 2022 10:20 AM To: duff2013/Snooze Cc: c172jeff; Author Subject: Re: [duff2013/Snooze] Teensey 4.1 Support (Issue #108)

It seems the library is no longer maintained. if you want to fix the code yourself its pretty easy.

go to "Snooze/src/hal/TEENSY_40/SnoozeDigital.cpp" and fix the defines at the beginning to:

#define _DR 0 #define _GDIR 1 #define _PSR 2 #define _ICR1 3 #define _ICR2 4 #define _IMR 5 #define _ISR 6 #define _EDGE 7

go through the code and add the underscore everywhere the defines are used. Its just a naming collision with register names that have changed I guess. compiles fine for me

— Reply to this email directly, view it on GitHub https://github.com/duff2013/Snooze/issues/108#issuecomment-1118613662 , or unsubscribe https://github.com/notifications/unsubscribe-auth/AJTIFOZC5XK4YEFZDDQQFVTVIPKIVANCNFSM5KVJZD6A . You are receiving this because you authored the thread. https://github.com/notifications/beacon/AJTIFO4VZFXHUEFVIFQIGPDVIPKIVA5CNFSM5KVJZD6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOIKWLBHQ.gif Message ID: @.***>

c172jeff avatar May 06 '22 13:05 c172jeff

I followed the suggestion and it works together with https://github.com/duff2013/Snooze/issues/114 Why the maintainer does not update the repro?

dremeier avatar Dec 06 '23 22:12 dremeier