Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Teensey 4.1 Support #108

Open
c172jeff opened this issue Dec 23, 2021 · 3 comments
Open

Teensey 4.1 Support #108

c172jeff opened this issue Dec 23, 2021 · 3 comments

Comments

@c172jeff
Copy link

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

@savejeff
Copy link

savejeff commented May 5, 2022

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: #114

@c172jeff
Copy link
Author

c172jeff commented May 6, 2022 via email

@dremeier
Copy link

dremeier commented Dec 6, 2023

I followed the suggestion and it works together with #114
Why the maintainer does not update the repro?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants