Commit Graph

942 Commits

Author SHA1 Message Date
Stefan Kerkmann 07e53487e9 Rename missing CAN registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 004ed9d005 CAN Register renames 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 8539fe76bc Add POC GD32 overclocking flags 2021-04-06 13:38:22 +02:00
Stefan Kerkmann cfdbcfe8d9 Remove CAN peripheral not present on this device 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 8d45fbc68c Revert AFIO USART remapping register changes 2021-04-06 13:38:22 +02:00
Stefan Kerkmann c9cbc6d03c No DMA for UART4 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 9ffb8cf58c Rename UARTx to start at 0 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 3edcc0f80b Rename USARTx to start at 0 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 031cd8325f Remove USART peripherals not present in this device 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 9ddf61ae87 Rename USART registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 22b8934b7f Rename I2C2 -> I2C1 2021-04-06 13:38:22 +02:00
Stefan Kerkmann ff5541e6c7 Rename I2C1 -> I2C0 2021-04-06 13:38:22 +02:00
Stefan Kerkmann ef39596f92 Add i2c fast mode plus 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 1aa20a7fa6 Correct DMA channel macros to start from 0 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 7178909bb1 Remove STM32F1x specific checks 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 73949757f4 Add fast mode plus stub 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 0058d3df0b Rename I2C registers, add fast mode plus register 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 5a3ca17dd3 Remove I2C3 peripheral, as it isn't present in this chip 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 6f1d0ca1b4 Rename missed register, fix rename bug, otg done 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 27551a2282 Rename OTG device registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 3839d682cf Rename missing otg host registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 3ef423ca8f Remove otg stepping, continue rename registers usbfs 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 05a0aab253 Remove OTG definitions, those are present in gd32_otg.h 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 9dace8a9ce Rename otg -> usbfs 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 3a51ec0bf3 Rename OTG1 -> USBFS 2021-04-06 13:38:22 +02:00
Stefan Kerkmann b8976b4fb5 Remove USB HS peripheral, start rename registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 11e6646370 Remove SD card interface defines 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 29be2ac3c3 Rename AFIO register definitions 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 2da7835bde Rename GPIO registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 6a3caa697a GPIO Remove obsolete ports, rename registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann adb9afc02b Rename DMA CNDTR CPAR CMAR registers 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 5cec991524 Rename DMA CCR -> CTL 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 51b420e395 DMA rename IFCR -> INTC 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 186264dece Rename DMA ISR register to INTF 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 962770882f Rename DMA interrupt flags 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 1d3f664311 Add renumbered dma channel definitions 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 92646d6824 Rename DMA2 -> DMA1 and channels to start at zero 2021-04-06 13:38:22 +02:00
Stefan Kerkmann 161449d7c3 Rename DMA1 -> DMA0 and channels to start at zero 2021-04-06 13:38:22 +02:00
Stefan Kerkmann f53e5a8b44 Remove DMA features not found on gd32vf103 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 7d90a998bf Sort and deduplicate trigger handlers 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 352a6021f1 Rename stm32_ to gd32_ , remove obsolete tim headers 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 73336cf3b6 Increase idle stacksize, add isr locking/unlocking 2021-04-06 13:38:21 +02:00
Stefan Kerkmann a9a4e46916 Replace STM32_ with GD32_ 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 3467aa8ffe Add STM32 HAL Drivers, already adjusted for eclic interrupts 2021-04-06 13:38:21 +02:00
Stefan Kerkmann ecf1e48c89 Add platform makefile 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 6b195cfc59 Add GD32 registry STM32 renames will follow 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 479375a731 Add eclic system reset 2021-04-06 13:38:21 +02:00
Stefan Kerkmann a44a68bf7d Add eclic interrupt driver 2021-04-06 13:38:21 +02:00
Stefan Kerkmann 5abb73e524 Migrate port and startup code to nmsis 2021-04-06 13:38:21 +02:00
Stefan Kerkmann bb7a299638 Add RISC-V ECLIC startup and port files 2021-04-06 13:38:21 +02:00
Stefan Kerkmann b729125bdd Add Nucleisys NMSIS sources 2021-04-06 13:38:21 +02:00
Michael Stapelberg 4df9abffc5 MIMXRT1062/LLD/PITv1: switch to internal SysTick clock (600 MHz ARM)
See the comment in the code for rationale.
2021-04-04 15:12:14 +02:00
a_p_u_r_o 9a861b0e8c
Merge branch 'chibios-20.3.x' into nuc123-kvs-example 2021-04-03 08:58:28 +09:00
Michael Stapelberg 9f939cec5a MIMXRT1062/LLD/USBHSv1: implement hal_usb_lld for MIMXRT1062 2021-03-31 14:04:12 +02:00
Michael Stapelberg 119de824fe MIMXRT1062/LLD/GPIOv1: implement hal_pal_lld for MIMXRT1062 2021-03-31 13:59:00 +02:00
Michael Stapelberg 22b4ec3b6b MIMXRT1062: hal: port Arduino Teensy 4 Core startup code and linker script
The one oddity of this platform is that it requires using XIP (eXecute In
Place), which for us largely means setting up a few special sections at special
flash locations.

References:
https://www.nxp.com/docs/en/application-note/AN12107.pdf
https://github.com/PaulStoffregen/cores/blob/master/teensy4/imxrt1062_t41.ld
https://www.pjrc.com/store/teensy40.html#memory_layout
2021-03-31 13:59:00 +02:00
Michael Stapelberg 334fe4f499 enable USB1 peripheral clock in MCUXpresso v11.3.0 2021-03-31 13:59:00 +02:00
Michael Stapelberg 5cb023f629 branch mcux-sdk/boards/evkmimxrt1060/clock_config.[ch] from 66fdc6ff 2021-03-31 13:59:00 +02:00
Michael Stapelberg b8c2392b13 MIMXRT1062: kinetis_registry: adjust IRQ numbers for i.MX RT1062 2021-03-31 13:59:00 +02:00
Michael Stapelberg b11181c154 MIMXRT1062/LLD/UARTv1: implement hal_serial_lld for MIMXRT1062 2021-03-31 13:59:00 +02:00
Michael Stapelberg a96c5d87d8 cmparams: set correct ARM version and number of vectors 2021-03-27 16:03:55 +01:00
Michael Stapelberg 1788a7468c MIMXRT1062/LLD/PITv1: hal_st: set up SysTick like the Arduino Teensy 4 Core does 2021-03-27 16:03:55 +01:00
Michael Stapelberg f19da3e183 replace file names to use MIMXRT1062 2021-03-27 16:03:55 +01:00
Michael Stapelberg 480534795c copy LLD from KINETIS HAL (no changes yet) 2021-03-27 16:03:55 +01:00
Michael Stapelberg b4b3579c86 branch startup (no changes yet) 2021-03-27 16:03:55 +01:00
Michael Stapelberg 92b862cdd0 copy os/hal/ports/MIMXRT1062 from ../KINETIS/MK66F18 (no changes yet) 2021-03-27 16:03:55 +01:00
Michael Stapelberg 7bb5555a06 branch PJRC_TEENSY_4_1 board from _3_6 (no changes yet) 2021-03-27 16:03:55 +01:00
Fabien Poussin 6683eaffb1
Update CRC for master branch 2021-03-20 23:20:15 +01:00
Matthew Kennedy 609b49a312 configurable MSD options 2021-03-04 17:08:41 -08:00
Fabien Poussin e7cdad3d1a
Merge pull request #263 from mck1117/fix-msd-lun
don't deref null pointer on MSD LUN request
2021-02-24 20:27:49 +01:00
Matthew Kennedy 1ebdcca467 don't deref nullptr 2021-02-23 23:29:45 -08:00
Alex Lewontin e4ae11e8c6
NUC123: Dynamic CONFIG value read 2021-02-23 15:40:18 -05:00
Alex Lewontin c328f805c2
NUC123: Added CONFIG enabling switch 2021-02-23 15:40:18 -05:00
Alex Lewontin 4cbc3250c0
NUC123: EFL driver 2021-02-14 14:34:24 -05:00
Alex Lewontin 09394a1b1a
NUC123: Added CONFIG0/1 settings, and updated linker script 2021-02-14 14:34:24 -05:00
Fabien Poussin 26f24c19b3
fix Segger Sysview bindings 2021-02-14 13:12:05 +01:00
Fabien Poussin c0b5cfab75
Merge pull request #251 from sabdulqadir/feat/expanding_hal_nand_c
Expansion to nand flash driver
2021-02-14 12:18:20 +01:00
Fabien Poussin ba33139c0c
USBH: add defaults, fix some defines 2021-02-13 20:40:13 +01:00
Fabien Poussin bf2ada3b98
typo 2021-02-13 20:21:12 +01:00
Fabien Poussin 7fccec68d4
fixes for usb host 2021-02-13 20:16:40 +01:00
Fabien Poussin fbd6f482af
Merge pull request #258 from mck1117/fix-msd-hook
fix MSD_REQ_GET_MAX_LUN
2021-02-13 20:03:58 +01:00
Fabien Poussin f22dbe7b56
Merge pull request #256 from Association-Jeroboam/feature/added_STM32G4xx_platform
Add STM32G4xx platform
2021-02-13 20:02:41 +01:00
Fabien Poussin 12faf211a3
USB Host refactor 2021-02-13 20:00:07 +01:00
Matthew Kennedy 702f32276e fix MSD_REQ_GET_MAX_LUN 2021-02-12 16:14:45 -08:00
Piers Titus van der Torren b2e12d536a USB_MSD: reimplement msd_request_hook to fix crashes
Requests were incorrectly handled, causing crashes on connecting to windows or macos.
2021-02-04 00:48:58 +01:00
Piers Titus van der Torren 4dd134436a Fix typo 2021-02-04 00:43:47 +01:00
Apache 2100c088a8 Add STM32G4xx platform 2021-01-31 12:05:32 +01:00
Ein Terakawa 0f056b3557 parentheses around macro parameters 2021-01-20 22:15:03 +09:00
Ein Terakawa a4d66a67fc NUMICRO: add I2C driver 2021-01-09 22:04:44 +09:00
sabdulqadir 34bb526ea6 Expansion to nand flash driver
This expansion helps support higher density devices which have multiple
dies, logical units and planes on top of the standard block and page
structures of standard nand flash ICs.

- Included stm32f723xx targets
- Bug fix (STM32_NAND_USE_NAND1)
- changed map_cmd and map_addr to 8 bits in struct NANDDriver
- Bug fix (dmaStreamAlloc returns dma_stream_t)
- DSB assembly instruction added for fixing issues with M7 processor
- added nand_lld_read_id() function
2021-01-02 15:49:45 -06:00
Fabien Poussin 61baa6b036
Merge pull request #244 from alexclewontin/nuc123-usb-driver
[NUC123] USB driver bug fixes
2020-12-31 20:07:16 +01:00
Alex Lewontin 8c16b4ff9e
NUC123 USB driver potential stability fixes 2020-12-31 11:48:37 -05:00
Alex Lewontin 75cbc08156
NUC123 USB driver cleanup 2020-12-31 11:48:37 -05:00
Fabien Poussin fa3e1cb3ae
Merge pull request #248 from Codetector1374/HT32-dev
[HAL/HT32]: Add support for HT32 series microcontroller
2020-12-31 10:30:40 +01:00
Reza Jelveh 74bcf3cf69 NUC123 add early_init to allow build of projects that need it to be defined 2020-12-31 15:51:19 +08:00
codetector 7230eb96cc
[HAL/HT32]: Initial HT32 Support with a USB-DFU Demo 2020-12-31 02:27:13 -05:00
Alex Lewontin 021c696cd2
NUC123 byte vs word memcopy bug fix 2020-12-30 18:56:47 -05:00
Alex Lewontin cee0adf1f8
NUC123 USB DATA0/1 PID bug fix 2020-12-30 18:56:47 -05:00
Alex Lewontin 8854febc0b
NUC123 USB add wakeup callback when ISR detects resume signal 2020-12-30 18:56:47 -05:00
Alex Lewontin 891a0b3898
NUC123 USB temporarily disable EP3 2020-12-30 18:56:47 -05:00