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
pirms 5 gadiem
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
pirms 5 gadiem
PaulStoffregen
efc41ea92d
add analogWriteResolution()
pirms 5 gadiem
PaulStoffregen
b9066ead1f
Fix typo (thanks tonton81)
pirms 5 gadiem
PaulStoffregen
487b234b72
Fix PWM on pin 9 (thanks Manitou)
pirms 5 gadiem
PaulStoffregen
1312d8bc61
Fix I/O register macros
pirms 5 gadiem
PaulStoffregen
576c748f2f
pinMode configure pins for output drive in all modes, needed for direct I/O libs
pirms 5 gadiem
PaulStoffregen
f21cf2cf2f
Add more pin defs, needed for Encoder
pirms 5 gadiem
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.
pirms 5 gadiem
PaulStoffregen
c4ab57c003
EventResponder, MillisTimer, yield
pirms 5 gadiem
Frank Bösing
459ab88998
fast memcpy/memset
pirms 5 gadiem
PaulStoffregen
4d620d12cd
(Hopefully) fix C++ constructors
pirms 5 gadiem
PaulStoffregen
66b0de6c15
Fix digitalRead() while pin is output mode
pirms 5 gadiem
Frank
585a9009b8
Update imxrt.h
pirms 5 gadiem
Frank
bd6602e10a
IRQ_SOFTWARE = 70
pirms 5 gadiem
PaulStoffregen
dac015d92e
Add attachInterrupt
pirms 5 gadiem
Frank
cf68a26fb6
Renumbered IRQ_RESERVED1-7, IRQ_SOFTWARE = 62
pirms 5 gadiem
WMXZ-EU
4402a96138
corrected SAI1/3_CLK_PODF
pirms 5 gadiem
PaulStoffregen
e97247b30b
Add util headers
pirms 5 gadiem
Frank
2a8b5d066e
rmv warning "implicit declaration of function 'delay'"
pirms 5 gadiem
PaulStoffregen
eb3d0484b1
Add tone function
pirms 5 gadiem
PaulStoffregen
a1ff3e9256
Fix USB serial issues printing before device ready
pirms 6 gadiem
PaulStoffregen
7153086e77
Don't disturb pin 13 (leftover debugging code)
pirms 6 gadiem
Frank
4317a52591
SCB_SHPR3 = 0x20000000; // Systick = priority 32
pirms 6 gadiem
Frank
95ad3b5a30
default 128 priority for all interrupts
pirms 6 gadiem
PaulStoffregen
0a7c35fb3c
Fix pin defines for pins 0 & 1, fixes PWM issue
pirms 6 gadiem
PaulStoffregen
9174cad274
Fix crash at startup with Og optimization
pirms 6 gadiem
PaulStoffregen
742625eb00
Fix crash as startup with Fastest (O3) optimization
pirms 6 gadiem
PaulStoffregen
986ff3797d
Fix tempmon address, fixes #299
pirms 6 gadiem
Frank
49fa787c2c
SPDIF register bit defs
pirms 6 gadiem
Frank
e648aecf04
Tempmon registers - bit definitions
pirms 6 gadiem
Frank
d2d7fb7423
(n)..
pirms 6 gadiem
Frank
223f543fde
Whitespace: Tabsize 8 (?)
pirms 6 gadiem
Frank
809e38dbdf
Reset Control Bit Definitions
- comment SRC_GPR1..SRC_GPR10 (used by the ROM code)
pirms 6 gadiem
PaulStoffregen
3ac5eff53d
Update imxrt.h (for SPI transaction)
pirms 6 gadiem
PaulStoffregen
262f3eaa99
Add DMAChannel for IMXRT
pirms 6 gadiem
PaulStoffregen
35ddbd7a4f
Improve I2C defines
pirms 6 gadiem
PaulStoffregen
26ebd85d35
Import Wiring math functions
pirms 6 gadiem
PaulStoffregen
f5d5f0a187
Fix C++ new/delete
pirms 6 gadiem
PaulStoffregen
4e51477dbb
More syscall functions
pirms 6 gadiem
PaulStoffregen
1989b49cf3
Fix malloc, using OCRAM rather than DTCM
pirms 6 gadiem
Mike S
68db3fbeb8
Update imxrt.h
pirms 6 gadiem
Mike S
38d7836125
Update imxrt.h
Deleted a duplicate define: #define CCM_CBCMR_PERIPH_CLK2_SEL_MASK ((uint32_t)(0x03 << 12))
and added tempmon registers
pirms 6 gadiem
PaulStoffregen
c93cf0f039
Implement set_arm_clock
pirms 6 gadiem
PaulStoffregen
f0a549961c
Use USB serial number from Mac Address in fuses
pirms 6 gadiem
PaulStoffregen
7548dc7492
Configure UART clock before use
pirms 6 gadiem
PaulStoffregen
37c8161601
Transmit only polling HardwareSerial on imxrt
pirms 6 gadiem
PaulStoffregen
e3bb2b648a
IntervalTimer on imxrt
pirms 6 gadiem
PaulStoffregen
e77897e77e
Enable FPU & stack dump in unused isr
pirms 6 gadiem
PaulStoffregen
168314b429
More conservative flash startup parameters
pirms 6 gadiem