Where are register names defined in teensydrino for teensy 4.1 ?

Status
Not open for further replies.

3EB2C70F

New member
The iMXRT1060 reference manual has register descriptions but the compiler does not understand that.

I'm surprised this is not even in the wiki, but how are you suppose to use a MCU without knowing the register names ?

The teensyduino core must have a file somewhere with all the definitions.

Can the devs let us know which file is it ?
 
The #defines and details needed to build for T_4.x's 1062 MCU are in this 9,000+ line file installed with TeensyInstaller:

{local arduino}\hardware\teensy\avr\cores\teensy4\imxrt.h
 
As you read imxrt.h, hopefully you can see we've kept the names identical to register names in the reference manual, so you can just type any register name as it appears in NXP's documentation. Well, at least with the minor caveats where NXP's documentation isn't so consistent, but there really shouldn't be any big surprises.
 
The iMXRT1060 reference manual has register descriptions but the compiler does not understand that.

I'm surprised this is not even in the wiki, but how are you suppose to use a MCU without knowing the register names ?

...

Assume you are referring to this wiki :: github.com/TeensyUser/doc/wiki


@luni - is there a place for this in the Wiki?

Looks like the equivalent for T_3.x is :: {local arduino}\hardware\teensy\avr\cores\teensy3\kinetis.h
>> github.com/PaulStoffregen/cores/blob/master/teensy3/kinetis.h

For the T_4.x: {local arduino}\hardware\teensy\avr\cores\teensy4\imxrt.h
>> github.com/PaulStoffregen/cores/blob/master/teensy4/imxrt.h
 
Status
Not open for further replies.
Back
Top