Kurt Eckhardt
31c199b0b2
Reduce EventResponder overhead on systic and yield
A couple of minimalist changes.
systick_isr - By default it does nothing with the event responder.
Only if the user calls the attachInterrupt member of EventResponder will it install the version of the ISR that checks the list for any active ISR event Responders.
T4 Yield - try to keep bitfields for things yield should test
Make it such that yield hopefully can test to see there is nothing to do and returns quickly.
There are some interesting limitations, that is that the serialEvent
handling code. Both for USB and hardware Serial can only remove it self
if the default eventHandler is called once, as I don't know anyway to
detect if the default code (weak linkage) is included or if it is a user
version. So waits until called to remove it self from active list.
Sketches can force this by simply calling the event method right after
calling begin on the serial port.
пре 4 година
PaulStoffregen
e5a9b19465
Workaround for USB memory bandwidth at very slow CPU speeds
пре 4 година
PaulStoffregen
9f7a6e426d
Add comment about forcing 12 Mbit/sec USB on Teensy 4.x
пре 4 година
PaulStoffregen
6cbabcd3c7
Use strong drive and hysteresis for FlexSPI2 pins
пре 4 година
PaulStoffregen
1889c06e56
Fix FlexSPI2 speed setting, default to 88 MHz clock
пре 4 година
PaulStoffregen
a41500ec8e
Add external_psram_size to inform libraries of available PSRAM
пре 4 година
PaulStoffregen
0ac84cfcbf
Initialize PSRAM chips at startup on Teensy 4.1
пре 4 година
PaulStoffregen
7f73fd0b25
Add dummy Mouse.h on Teensy 4, for Arduino compatibility
пре 4 година
PaulStoffregen
5202353f1b
Add dummy Keyboard.h on Teensy 4, for Arduino compatibility
пре 4 година
PaulStoffregen
bef18c9869
Pad DMAMEM to 32 byte cache line size
пре 4 година
PaulStoffregen
e93972e151
Fix ADC config
пре 4 година
PaulStoffregen
9e727f9e4c
Fix ADC_ETC defines
пре 4 година
Frank
113947c508
Add recommended 24MHz crystal setting
Later, we should check if we can reduce the bias, also (For me, it works with minimal bias -but I think should should keep it for now, as it is).
пре 4 година
PaulStoffregen
536aa0ae13
Fix rtc_set on Teensy 4.0 (thanks blackketter)
fixes #464
пре 4 година
PaulStoffregen
3e23a7d14a
Document case in USB CDC code, fixes #467
пре 4 година
Kurt Eckhardt
8683ecc4de
There were some issues in the setRX and setTX functions for T4,x
It never came up much with T4 as there were not really alternative pins...
But fixed and tested with simple sketch on T4.1 and simple jumper to TX and RX pins on memory chip locations
пре 4 година
Kurt Eckhardt
72ed1825e1
T4.x CTS pins - T4.1 add memory chip area to Serial ports.
A few of the T4 and now T4.1 Serial ports support a CTS pin. One was previous fixed, added the others to tables.
Also T4.1 has Some Serial port pins in the area that the optional memory chips could be installed
пре 4 година
Frank
40af196b75
Update nonstd.c
пре 4 година
Frank
3faa68520a
Update pwm.c
пре 4 година
Frank
ee0c914797
Update Stream.cpp
пре 4 година
Frank
bf5b36c9ec
fix double promotion
пре 4 година
PaulStoffregen
adecf720cc
Add comment about MPU allocation order
пре 4 година
widdly
b351a2ce73
Fix USB Midi 16 serial audio descriptor
пре 4 година
widdly
2512134dae
fix descriptor for teensy 4 usb audio midi serial
пре 4 година
PaulStoffregen
646f2f8697
Update page number in comments
https://forum.pjrc.com/threads/60174-Understanding-The-USB-Specification
пре 4 година
Frank
0ce9412e25
more efficient
пре 4 година
Frank
d1ec70aed4
usb.c / interrupt - callbacks use ctz()
пре 4 година
Kurt Eckhardt
240be67f83
Teensy 4.x - SerialUSB1 and SerialUSB2 objects created.
The actual objects were not created like they were on the T3.x side, so just copied it over from there.
пре 4 година
Kurt Eckhardt
e35ce09017
T4.x RAWHID remove compiler warning.
usb.c did not include the usb_rawhid.h so it would give a compiler warning about having to create a ...
пре 4 година
Kurt Eckhardt
5554edbdf5
Update RAW HID TX buffer to be in DMAMEM
Decided to go ahead and move the TX Buffer there as well
Did a quick check in earlier test program to echo the contents back.
The other test program was already setup to receive data on the HID and does hex dump of buffer which looks correct. So far so good.
пре 4 година
Kurt Eckhardt
da22bfd892
RX with 4 transfers using similar code to seremu
Testing against issues of hang from thread:
https://forum.pjrc.com/threads/59881-RawHID-recv()-hangs-after-updating-to-Teensyduino-1-4-9-or-higher-for-Teensy-4-0/page2
пре 4 година
Frank
9eb7bfe6c9
Arduino-Comaptibilitly: digitalWrite controls pullup/pulldown in input mode
пре 4 година
Frank
18e40cb8d3
Fix Macro clockCyclesPerMicrosecond
F_CPU -> F_CPU_ACTUAL
пре 4 година
Frank
2607e6226f
MPU: Trap not allowed accesses
- trap unused memory regions
- trap nullptr
- trap stack overflow
пре 4 година
PaulStoffregen
9dff33654f
Update MTP descriptors for Teensy 4
пре 4 година
Frank
abd1736957
Update pins_arduino.h
пре 4 година
Frank
3d310f7244
Update pins_arduino.h
пре 4 година
Frank
a4ef47daa2
update macro analogInputToDigitalPin
пре 4 година
Frank
78588aee84
Fix comment re: systick
This answers a long standing question :-)
пре 4 година
Frank
4cf948983a
fix EWM address
https://github.com/PaulStoffregen/cores/issues/424#issue-555760117
see RM V2 Page 3221
пре 4 година
PaulStoffregen
7d82bcde0c
add compiler memory barriers in ARM cache functions
пре 4 година
PaulStoffregen
d6a656194f
Add XBARA_CTRL defines
пре 4 година
PaulStoffregen
3cfb7df77a
Fix DMA channel linking defines on Teensy 4.0
пре 4 година
PaulStoffregen
327ef92b07
Fix FLEXPWM_SMTCTRL_OUT_TRIG_EN define
https://forum.pjrc.com/threads/59815-teensy-4-0-XBAR-questions?p=231803&viewfull=1#post231803
пре 4 година
PaulStoffregen
80385bae5a
Added Contact Count to Teensy 4 USB Touchscreen
пре 4 година
PaulStoffregen
51e9100f3c
Fix XBAR registers
https://forum.pjrc.com/threads/59815-teensy-4-0-XBAR-questions
пре 4 година
PaulStoffregen
41bbea414e
Add Teensy 4.0 I2S RCE & TCE bit defs similar to Teensy 3.x
пре 4 година
PaulStoffregen
b141c8b562
Don't crash when USB_USBCMD_ATDTW isn't working
пре 4 година
PaulStoffregen
4a24e41108
Use names SerialUSB1 & SerialUSB2 for extra USB serial ports
пре 4 година
PaulStoffregen
1bf39e5a2d
Fix timer conflicts with USB Triple Serial on Teensy 4
пре 4 година