The SDK code is rather convoluted
I've shipped beta boards to everyone who has responded to me so far. You should have received an email with the tracking number![]()
Expected Delivery by Monday 31 December 2018 by 8:00pm
// 53.3: page 2986 TODO...
#define IMXRT_TEMPMON (*(IMXRT_REGISTER32_t *)0x400F8180)
#define TEMPMON_TEMPSENSE0 (IMXRT_TEMPMON.offset000) /**< Tempsensor Control Register 0, offset: 0x180 */
#define TEMPMON_TEMPSENSE0_SET (IMXRT_TEMPMON.offset004) /**< Tempsensor Control Register 0, offset: 0x184 */
#define TEMPMON_TEMPSENSE0_CLR (IMXRT_TEMPMON.offset008) /**< Tempsensor Control Register 0, offset: 0x188 */
#define TEMPMON_TEMPSENSE0_TOG (IMXRT_TEMPMON.offset08c) /**< Tempsensor Control Register 0, offset: 0x18C */
#define TEMPMON_TEMPSENSE1 (IMXRT_TEMPMON.offset090) /**< Tempsensor Control Register 1, offset: 0x190 */
#define TEMPMON_TEMPSENSE1_SET (IMXRT_TEMPMON.offset094) /**< Tempsensor Control Register 1, offset: 0x194 */
#define TEMPSENSE1_CLR (IMXRT_TEMPMON.offset098) /**< Tempsensor Control Register 1, offset: 0x198 */
#define TEMPSENSE1_TOG (IMXRT_TEMPMON.offset09C) /**< Tempsensor Control Register 1, offset: 0x19C */
#define TEMPMON_TEMPSENSE2 (IMXRT_TEMPMON.offset100) /**< Tempsensor Control Register 2, offset: 0x290 */
#define TEMPMON_TEMPSENSE2_SET (IMXRT_TEMPMON.offset104) /**< Tempsensor Control Register 2, offset: 0x294 */
#define TEMPMON_TEMPSENSE2_CLR (IMXRT_TEMPMON.offset108) /**< Tempsensor Control Register 2, offset: 0x298 */
#define TEMPMON_TEMPSENSE2_TOG (IMXRT_TEMPMON.offset10C) /**< Tempsensor Control Register 2, offset: 0x29C */
Do have a question - will there be teensyduino version to support the T4?
@manitou - shoot, I missed those - i got the ones converted with ccm-> to ccm_. Oh well will go through it again and get them updated and repost. I love the compiler for that - found a lot of errors i made like take over the years
EDIT: OK. got it updated. Simple global replace of CCM_ANALOG-> with CCM_ANALOG_. Just in case there are other issues I will repost after I give it a try on Monday night. Yes its new years eve but if you think i am not going to at least run 1 test.....
Understood. Was really doing that just as a double check for my testing purposes. Wasn't going to propose adding it to the core it. Was planning on using within my sketches and just thought it might be useful for others.Before anyone goes far down this path, I want to be clear than I do not intend to put a huge & complex low-level API similar to NXP's SDK into Teensyduino.
Hmm - will have to check. Thought I checked them or at least did a sampling for verification. I can wait since I can't really test it anyway. I will keep you posted.There are other problems, including names that conflict with what's in imxrt.h
Before anyone goes far down this path, I want to be clear than I do not intend to put a huge & complex low-level API similar to NXP's SDK into Teensyduino.
My T4 will arrive wednesday.
Not F?For the temperatures, it should be as simple to use as possible, maybe just two functions to a) set critial temperature(crit) - not more - and b) set temphotcold(hot, cold), both in °C
OK. A compromise: Rømer - nobody uses it (almost like FMine also Monday
Not F?![]()
@FrankB - Argh! Ok I give up - what would suggest for notification. Just throwing out ideas here. Mike
perhaps an event would be better to notify the user code to handle critical tasks before shutdown rather than just halting, we never know what the pins would be driving in a critical environment