Mike S
756b9c4b0f
AnalagReadRes & Averaging Updates
vor 5 Jahren
Mike S
47c74ec66c
Added AnalogReadResolution
vor 5 Jahren
PaulStoffregen
aee29bc892
Fix compiler warnings
vor 5 Jahren
Kurt Eckhardt
bf38c3489d
T4 SerialX More support including formats
More support put in.
Now support for different formats of output.
So far I have tried 8N1, 8N2, 7E1, 7O1...
vor 5 Jahren
Mike S
214071e0cd
Update analog.c
vor 5 Jahren
Mike S
292bb6553d
corrections & updates
Tempsense2 address correction and added analogreadaveraging code.
vor 5 Jahren
PaulStoffregen
d2bbae3e9c
Add LED define, for IRremote
vor 5 Jahren
Kurt Eckhardt
3f700149ea
T4-SerialX fleshing out code
Fleshing out some of the missing pieces. - Need to test
copy NVIC execution priority from T3
Set priority per Serial object
RTS pin
CTS pin - only Serial3 supports
setRX, setTX - do nothing none of these have two pins defined.
Maybe temporary - but added from previous code ability to add second buffer for RX and TX
vor 5 Jahren
Kurt Eckhardt
58322b749a
T4 SerialX - Read in all in FiFO on LPUART_STAT_RDRF
Put in code to read all of the current stuff in Receive queue on Interrupt..
vor 5 Jahren
Frank
6d5bf17c96
void (* _VectorsRam[160+16])(void);
..use NVIC_NUM_INTERRUPTS instead
i know, very minor documentational issue :)
vor 5 Jahren
Kurt Eckhardt
2209a9f01b
T4 - SerialX Support for Transmitter Enable
Used macros from OneWIre to fast set/clear the optional Transmitter Enable support.
Also fixed bug in ISR where was not properly looking for TC. This will help make SerialX->flush() to work
vor 5 Jahren
PaulStoffregen
4c7cf387c8
Delete extra / old copy of pinMode
vor 5 Jahren
Kurt Eckhardt
9c49eeb0fd
T4 Hardware Serial - Fix Serial2
Wrong RX_Select value
vor 5 Jahren
Frank
de9071e01e
add shiftIn/Out, pulseIn
vor 5 Jahren
Kurt Eckhardt
361d842551
T4 - Hardware Serial - Pass 1
This pass has some more support for using the Hardware Serial objects.
Including setting an ISR for doing both reads and writes, sets up the FIFO,
Sitll lots more work to go.
Things like: fifo - need to better understand/set watermarks, also RX need to read in more than one byte if more available.
Also support fo r other features, like formats, 9 bit, ...
BUt at least you can do simple reads/writes
vor 5 Jahren
PaulStoffregen
390a1e2f4c
Add data cache functions
vor 5 Jahren
Frank
3605d91f39
optimized delayNanoseconds
shifting both sides by 16 bit gives pretty good accuracy with fast code:
movw r3, #9155
ldr r2, .L2
mul r0, r3, r0
lsrs r0, r0, #1
umull r3, r0, r2, r0
lsrs r0, r0, #8
.L2:
.word 144122641
with 984 MHz it allows nsec to be max ~143000 max which is plenty
vor 5 Jahren
PaulStoffregen
efc41ea92d
add analogWriteResolution()
vor 5 Jahren
PaulStoffregen
b9066ead1f
Fix typo (thanks tonton81)
vor 5 Jahren
PaulStoffregen
487b234b72
Fix PWM on pin 9 (thanks Manitou)
vor 5 Jahren
PaulStoffregen
1312d8bc61
Fix I/O register macros
vor 5 Jahren
PaulStoffregen
576c748f2f
pinMode configure pins for output drive in all modes, needed for direct I/O libs
vor 5 Jahren
PaulStoffregen
f21cf2cf2f
Add more pin defs, needed for Encoder
vor 5 Jahren
Frank
acc3eeb91b
Add delayNanoseconds()
This makes sense now, and would be useful for shorter wait-times. Could be used for PulseIn etc. where we need defined very short delays.
vor 5 Jahren
PaulStoffregen
c4ab57c003
EventResponder, MillisTimer, yield
vor 5 Jahren
Frank Bösing
459ab88998
fast memcpy/memset
vor 5 Jahren
PaulStoffregen
4d620d12cd
(Hopefully) fix C++ constructors
vor 5 Jahren
PaulStoffregen
66b0de6c15
Fix digitalRead() while pin is output mode
vor 5 Jahren
Frank
585a9009b8
Update imxrt.h
vor 5 Jahren
Frank
bd6602e10a
IRQ_SOFTWARE = 70
vor 5 Jahren
PaulStoffregen
dac015d92e
Add attachInterrupt
vor 5 Jahren
Frank
cf68a26fb6
Renumbered IRQ_RESERVED1-7, IRQ_SOFTWARE = 62
vor 5 Jahren
WMXZ-EU
4402a96138
corrected SAI1/3_CLK_PODF
vor 5 Jahren
PaulStoffregen
e97247b30b
Add util headers
vor 5 Jahren
Frank
2a8b5d066e
rmv warning "implicit declaration of function 'delay'"
vor 5 Jahren
PaulStoffregen
eb3d0484b1
Add tone function
vor 5 Jahren
PaulStoffregen
a1ff3e9256
Fix USB serial issues printing before device ready
vor 6 Jahren
PaulStoffregen
7153086e77
Don't disturb pin 13 (leftover debugging code)
vor 6 Jahren
Frank
4317a52591
SCB_SHPR3 = 0x20000000; // Systick = priority 32
vor 6 Jahren
Frank
95ad3b5a30
default 128 priority for all interrupts
vor 6 Jahren
PaulStoffregen
0a7c35fb3c
Fix pin defines for pins 0 & 1, fixes PWM issue
vor 6 Jahren
PaulStoffregen
9174cad274
Fix crash at startup with Og optimization
vor 6 Jahren
PaulStoffregen
742625eb00
Fix crash as startup with Fastest (O3) optimization
vor 6 Jahren
PaulStoffregen
986ff3797d
Fix tempmon address, fixes #299
vor 6 Jahren
Frank
49fa787c2c
SPDIF register bit defs
vor 6 Jahren
Frank
e648aecf04
Tempmon registers - bit definitions
vor 6 Jahren
Frank
d2d7fb7423
(n)..
vor 6 Jahren
Frank
223f543fde
Whitespace: Tabsize 8 (?)
vor 6 Jahren
Frank
809e38dbdf
Reset Control Bit Definitions
- comment SRC_GPR1..SRC_GPR10 (used by the ROM code)
vor 6 Jahren
PaulStoffregen
3ac5eff53d
Update imxrt.h (for SPI transaction)
vor 6 Jahren