Allow the user to call setTX with the one hardware pin, and hopefully allow them to turn on Open Drain mode or turn it back off. I don't currently have any test cases that use this, so not sure how well it works.
warning: 'flexpwm' may be used uninitialized in this function [-Wmaybe-uninitialized]
warning: 'qtimer' may be used uninitialized in this function [-Wmaybe-uninitialized]
This fixes the PFDs for PLL2 - by default, it has totally wrong values. This sets the frequencies according to the diagram on Page 676.
The same fix is needed for PLL3 - I have code (same structure), but it does not work - Do have have any hints for me?
Is PLL3 even running? I not, can we start it? Or, if i is running - at which frequency, and is there any non-std config?
for micros() Use: ARM Synchronization Primitives, include of arm_math.h
Get systick_isr data safely without disable interrupts, uses systick_safe_read as indicator variable
Sketches that includes String objects did not compile, so simply copy the wstring.cpp from Teensy3 directory.
Likewise sketches that used stream functions like:
Serial1.readBytes would not compile as the Stream sources were not included.
So likewise copied over from Teensy3 directory
"noinline, noclone" has the opposite effect of beeing faster now on T4
Maye it would be best to use an empty define ? Then we can remove the section in the linker-file, too.
#define FASTRUN
QA quick and dirty import of the AVR emulation stuff for SPI registers.
So far none of SPCR is implemented
in SPSR only getting status of SPIF is setup
SPDR reads and writes to LPSPI4...
So, it allows for some simple SPI write functions and wait for the write to complete and read the result.
WIth this Adafruit_ILI9341 graphic test runs
I created a structure IMXRT_LPSPI_t
like what was done for UARTS.
I hopefully got all of the unused fields in properly to get the registers on the correct addresses.
Note: I did not update the other #define LPSPIn_ values but left them, likewise, I create a new define for each of the addresses.
That way we can double check I have everything properly aligned