I need to update some code that was very poorly documented. We are using the chip from the teensy3.6 (MK66) in our own hardware, but still developing in the arduino / teensyduino environment. It looks like we are using some non-standard pins for the Serial1 port, defined as such:
Where did pins 98 and 99 come from? And RD1, for that matter? (note that this code does work in our hardware) I seem to remember there being some kind of definition file, and I actually have a snippet of it:
Does anyone know where this stuff is defined or what file that snippet is from? I can do the work that I need to do, I just need to know where that pin definition is. Many thanks in advance!
For completeness: we intercept the .hex file that is generated and program our chip in-system using JTAG.
Code:
pinMode( RD1, OUTPUT );
digitalWrite(RD1, HIGH);
pinMode(5, INPUT);
pinMode( ReadEnable, OUTPUT );
digitalWrite(ReadEnable, LOW);
Serial.begin( 115200 );
Serial1.setRX(98);
Serial1.setTX(99);
Serial1.begin( 115200 );
Where did pins 98 and 99 come from? And RD1, for that matter? (note that this code does work in our hardware) I seem to remember there being some kind of definition file, and I actually have a snippet of it:
Code:
////////////////////////////////////////////////////////////////////
// TX //
////////////////////////////////////////////////////////////////////
//MK66 PIN || PTE24 || PTE12 || PTE26 || PTE25 //
//----------------------------------------------------------------//
//DIGITAL PIN || 33 || 97 || 24 || 34 //
//----------------------------------------------------------------//
//SPI REGISTER || 1 || 2 || 3 || 4 //
//----------------------------------------------------------------//
////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////
//MK66 PIN || PTE10 || PTE11 || PTE08 || PTE09 //
//----------------------------------------------------------------//
//DIGITAL PIN || 56 || 57 || 95 || 96 //
//----------------------------------------------------------------//
//SPI REGISTER || 5 || 6 || 7 || 8 //
//----------------------------------------------------------------//
//////////////////////////////////////////
// RX //
//////////////////////////////////////////
//MK66 PIN || PTD0 || PTD01 //
//--------------------------------------//
//DIGITAL PIN || 2 || 14 //
//--------------------------------------//
//////////////////////////////////////////
Does anyone know where this stuff is defined or what file that snippet is from? I can do the work that I need to do, I just need to know where that pin definition is. Many thanks in advance!
For completeness: we intercept the .hex file that is generated and program our chip in-system using JTAG.