John Robinson
9a30e35926
restructure files into include, src, scripts dirs
il y a 3 ans
John Robinson
5a099f87f3
remove all non-teensy4 code
converting to teensy4-specific lib
il y a 3 ans
John Robinson
8517325c90
update CMSIS headers to 5.7
il y a 3 ans
John Robinson
efeb0ee82c
move IRQ enable/disable into separate header
ver 5.7+ of the CMSIS library (arm_math / DSP) defines these exact same
symbols as "intrinsics" (the ASM is the same), and since CMSIS headers
and imxrt.h are included at some points (e.g. Audio library code) this
needs to be resolved
il y a 3 ans
John Robinson
76dab293f7
avoid clashing definition of round
only enabled if targeting C or a C++ version older than c++17, as it's
assumed that it works in those cases (Arduino targets c++14)
il y a 3 ans
Paul Stoffregen
61c47edbbd
Merge pull request #539 from FrankBoesing/patch-2
fix flash_wait(), fixes EEPROM write with -Os optimization
https://forum.pjrc.com/threads/66200
il y a 3 ans
Frank
08160a0f82
fix flash_wait()
https://forum.pjrc.com/threads/66200-T4-0-writing-to-EEPROM-hangs-when-built-using-quot-Smallest-Code-quot-optimizaton?p=269445&viewfull=1#post269445
il y a 3 ans
PaulStoffregen
5e72d6b9bd
Update usb_desc.h
fixes #524
il y a 3 ans
Paul Stoffregen
ce3d6773a6
Merge pull request #528 from WMXZ-EU/patch-8
Update usb_desc.h
il y a 3 ans
Paul Stoffregen
a2ba2b5282
Merge pull request #521 from KurtE/Teensy4_debug_printf_usb
Allow cores\teensy4 printf debug optionally go to USB
il y a 3 ans
Paul Stoffregen
0911c5ba05
Merge pull request #532 from KurtE/mtp_event_usb_desc_only
T3/T4.x MTP device descriptor - update endpoint and size
il y a 3 ans
Paul Stoffregen
026ad21461
Merge pull request #538 from KurtE/imxrt_define_build_fix
T4 compile fix - imxrt.h move )
il y a 3 ans
Kurt Eckhardt
3be6fe5205
T4 compile fix - imxrt.h move )
il y a 3 ans
PaulStoffregen
1cd7925894
Group address defines together
il y a 3 ans
PaulStoffregen
d916a5cb50
Define peripheral address names
il y a 3 ans
Paul Stoffregen
e0303868e8
Merge pull request #537 from KurtE/SNVS_LPGPR0-4
Add defines for SNVS_LPGPR0-3 and GPR_Z_DIS
il y a 3 ans
Kurt Eckhardt
bfcb71b7c1
Add defines for SNVS_LPGPR0-3 and GPR_Z_DIS
There was questions up on forum threads:
https://forum.pjrc.com/threads/66076-Teensy-4-x-s-1062-MCU-has-16-bytes-of-NVRAM-on-RTC-unit?p=268385#post268385
Originally in the thread: https://forum.pjrc.com/threads/64592-Teensyduino-1-54-Beta-5?p=268336&viewfull=1#post268336
That said that the 16 byte memory that was battery backup was not defined nor worked.
So added the defines for the 4 registers. Only one early on alias was defined before this for the first one...
Also added in the SNVS_LPCR_GPR_Z define which the register bit was talked about in a few other register definitions, this bit was not actually defined in the reference manual, it said it was reserved. But reads or writes without this bit set in the register will zero out the 4 registers.
Tried example sketch to make sure it worked
il y a 3 ans
Kurt Eckhardt
c63e467bad
T3/T4.x MTP device descriptor - update endpoint and size
For T4.x to allow MTP USB type device to generate events to send to the host, the Endpoint configuration need to change to say that we are transmitting on interrupt, not receiving.
Plus I updated the end point event size to 32 as some events might be > 16. 16 is only large enought so send one parameter. I noticed Kindle Fire has it set to something like 28...
I have done similar changes for T3.x but have not tested it yet.
il y a 4 ans
PaulStoffregen
bf413538ce
Add comment on timer usage
il y a 4 ans
WMXZ-EU
2222c2ecaf
Update usb_desc.h
allow multiple parameters for events
il y a 4 ans
PaulStoffregen
c346fc36ed
Increase program memory clock speed
il y a 4 ans
Paul Stoffregen
a0f8e1107a
Merge pull request #523 from timgates42/bugfix_typo_capabilities
docs: fix simple typo, capbilities -> capabilities
il y a 4 ans
Tim Gates
0c4383aadb
docs: fix simple typo, capbilities -> capabilities
There is a small typo in teensy3/usb_desc.c, teensy4/usb_desc.c.
Should read `capabilities` rather than `capbilities`.
il y a 4 ans
Paul Stoffregen
70a5ba5d8d
Merge pull request #522 from FrankBoesing/patch-1
add missing "WFI"
il y a 4 ans
Frank
9f4e4e698d
add missing "WFI"
...prevent overheating when overclocking and exiting loop()
il y a 4 ans
Kurt Eckhardt
65866e43e2
Allow cores\teensy4 printf debug optionally go to USB
There are times when I wish to debug the cores files, that I wish I could do debug output to USB. Note: can do with cpp files by doing Serial.printf or the like, but more of a pain with .c files.
The printf stuff put into cores has been very useful for debuging esperailly earlier on. I understand some of the time it is needed to debug usb stuff or early on stuff so TX pin of Serial4 makes sense.
But for other debugging sessions, wish you had option to go output to the logical Serial object.
So I added a new commented out define in the printf.h file that syas
#define PRINT_DEBUG_USING_USB
That is uncommented, the debug function putchar_debug is defined to either use usb_serial_putchar if we are using normal USB Serial or use usb_seremu_putchar if using Serial emulation.
So far my main testing has been with seremu..
Not sure if this is something you are interested in. but just in case.
Did this Pull Request
il y a 4 ans
Paul Stoffregen
c85d2574bc
Merge pull request #520 from Defragster/patch-10
Update mk20dx128.c re FSEC use on 3.5/3.6
il y a 4 ans
Defragster
ca3525f2cb
Update mk20dx128.c
RE forum post : https://forum.pjrc.com/threads/65070-Teensy-3-6-and-FSEC-security-register?p=262560&viewfull=1#post262560
Same FSEC change works on T_3.5 as well as the T_3.6
il y a 4 ans
Paul Stoffregen
75405569b7
Merge pull request #518 from FrankBoesing/patch-1
Fix for https://github.com/PaulStoffregen/cores/issues/499
il y a 4 ans
Frank
f13e79eee2
Fix for https://github.com/PaulStoffregen/cores/issues/499
il y a 4 ans
PaulStoffregen
08693a6829
Fix ack to HID serial emulation startup feature report on Teensy 3
il y a 4 ans
PaulStoffregen
c5814d9c00
Don't allow seremu auto flush while adding to transmit buffer
il y a 4 ans
PaulStoffregen
2c9c826b17
Only auto-flush seremu when buffer contains partial packet
il y a 4 ans
Paul Stoffregen
0386e5d0e2
Merge pull request #516 from vjmuzik/T4-PXP-Defs
Update PXP defines for T4
il y a 4 ans
Tino Hernandez
efd73c9545
Update PXP definitions for T4
il y a 4 ans
Paul Stoffregen
cb92ea93f1
Merge pull request #514 from WMXZ-EU/patch-5
Update usb.c
il y a 4 ans
WMXZ-EU
b8992a8c00
Update usb.c
configure usb_mtp also from usb.c
il y a 4 ans
PaulStoffregen
dcac79c82e
Support Serial boolean check for Serial Monitor with HID serial emulation
il y a 4 ans
Paul Stoffregen
92c5147b19
Merge pull request #513 from WMXZ-EU/patch-4
Create usb_mtp.c
il y a 4 ans
Paul Stoffregen
ee08a9a108
Merge pull request #512 from WMXZ-EU/patch-3
Create usb_mtp.h
il y a 4 ans
WMXZ-EU
6583cea0eb
Create usb_mtp.c
modified and adapted from rawhid
il y a 4 ans
WMXZ-EU
57ee56a04f
Create usb_mtp.h
mtp file derived from rawhid and modified slightly
il y a 4 ans
Paul Stoffregen
c559d1aaa3
Merge pull request #510 from KurtE/T4-HardwareSerial-addMemory-fix
Update HardwareSerial.cpp
il y a 4 ans
Kurt Eckhardt
7190fda027
Update HardwareSerial.cpp
If called second time - fix the counts to reflect just the size of the new buffer plus the static buffer.
Also as a precaution, resets the TX or RX head tail pointers back to 0 to make sure it is not indexing into memory that may not exist.
il y a 4 ans
Paul Stoffregen
ce30cc41e0
Merge pull request #500 from KurtE/T3X_SerialX_AddMemory
T3 x serial x add memory
il y a 4 ans
Paul Stoffregen
1268d2666f
Merge pull request #489 from KurtE/serial_half_duplex
T3.x,T4.x LC Serial half duplex support
il y a 4 ans
PaulStoffregen
2ffd8f1836
Fix compile error
il y a 4 ans
Paul Stoffregen
abeb92884e
Merge pull request #271 from vjmuzik/master
Configurable Midi Port Names
il y a 4 ans
Paul Stoffregen
cfb2c3120e
Merge pull request #509 from vjmuzik/T4-No-USB-Support
T4 No USB Support
il y a 4 ans
PaulStoffregen
f6cb39e135
FS class is abstract, use pure virtual functions
il y a 4 ans