Commit Graph

60 Commits

Author SHA1 Message Date
Fabien Poussin d03aa9cc2f
Merge pull request #324 from WestberryTech/chibios-21.11.x-wb
Add some processing to the WB32 MCU series.
2022-07-27 10:46:15 +02:00
Joy 7aa5e64893 Added the implementation of embedded flash for WB32 MCU. 2022-07-07 14:43:18 +08:00
fauxpark 3d85866587 No need for system_MK64F12.h 2022-05-15 13:38:56 +10:00
fauxpark 09d1e9756f [WIP] Further K64F modifications, attempting to get USB working 2022-05-15 13:38:56 +10:00
Fabien Poussin e775cbbc88
Merge pull request #317 from SonixQMK/sn32_master_2.11
Sonix SN32 series support
2022-04-18 12:52:20 +02:00
wb-joy e16ee1dab8 Added New MCU Serial for WB. 2022-03-22 13:15:39 +08:00
dexter93 99bd79f7c9 Centralize clocks handling for sn32f2xx (#38)
* sn32: 2xx: centralize peripheral clock functions

* sn32: export HCLK for all boards

* sn32: support tickless mode for systick

* sn32: CT: cleanup inclusions

* Revert "sn32: export HCLK for all boards"

This reverts commit 1cae8892e3ce908ef89774a7e83bb921ecd810fc.

* sn32: export HCLK in hal level

* ST: inherit the SN32_HCLK

* 2xx lld: include ct header

* ST: fix systime type

* ST: interrupt should be disabled on init

* st: cleanup

* debug it

* Revert "debug it"

This reverts commit 1dd78e81019aa1233f3402ed251428085470ab79.

* sn32f2xx: make sure clocks match and proper timer init

* add more checks

* always read 32 bits from the counter

* read the first 16 bits directly

* systime_t is 16bits, but MR0 lives in a 32bit register

* testing: use ILRC

* testing: hack

* Revert "testing: hack"

This reverts commit 3821173dd9a6180e3f91a3e81e73e9f92385e273.

* Revert "testing: use ILRC"
we can't do this because hardware limits
This reverts commit 19d3ffefbce8cdd5cd34859cd8befccda6353e58.

* fix assert

* test: hardcode it

* Revert "test: hardcode it"

This reverts commit a75777c44d12844eb0be44c650a1de1602cadaed.
2022-02-12 13:54:53 +02:00
Dimitris Mantzouranis c34385de6b sn32: allow mcuconf to override system 2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis f4f08b1b9b SN32 port updates
* add preliminary support for the whole SN32F2XX series
* unify CMSIS support, no more ugly hacks
* rename the unified hal to SN32F2XX
* common header amongst the hal, points to device
* add board files for the series
* 240 gets to keep it's own hal for now
2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis 42b1ebd07f 240b: make sure we are full speed 2022-02-12 13:51:12 +02:00
IsaacDynamo df8d9a59b1 Add SN32F260_defines.h (#37) 2022-02-12 13:51:12 +02:00
IsaacDynamo 36a295e0d1 Replaced symlink with regular file. Documented the workaround (#27) 2022-02-12 13:51:12 +02:00
IsaacDynamo e72cf89dfa Fixed bug in sys clock init, also reported by glory (#22)
* Fixed bug in sys clock init, also reported by glory

* Removed modification of SN_FLASH->LPCTRL from SystemCoreClockUpdate(). SystemCoreClockUpdate() should only update the SystemCoreClock variable.
2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis 77e28ce0f0 [sn32] 240b: decouple Core clock and Flash clock update
introduce a controller for Slow mode
2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis c839ae7580 sn32: 260: inherit mcuconf.h and build the system 2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis 283eb6f658 sn32: 260: add missing system_SN32F260.c 2022-02-12 13:51:12 +02:00
janjan 34f2c22327 Fixes for 268
This is inspired/copy-pasted from:

be7396a79f
2022-02-12 13:51:11 +02:00
janjan ac2695f8a2 Update SN32F260.h to latest version
This is taken from the latest pack file called:

"SONiX.SN32F2_DFP.1.2.11.pack"

This pack file is found in an archive named:

"SN32F260_Startkit_Package_V1.6R.zip"

download from here:

http://www.sonix.com.tw/article-en-998-24753 or
http://www.sonix.com.tw/files/1/9BB279642CFC9359E050007F01007A12

(extract that zip file and look in the "Pack" folder)

if you rename "SONiX.SN32F2_DFP.1.2.11.pack" to "SONiX.SN32F2_DFP.1.2.11.zip" you can extract it with a normal zip program

You find the file "SN32F260.h" in the folder "Device/Include"
2022-02-12 13:51:11 +02:00
HorrorTroll 8f693258a3 fix some speed issue for 240 chip 2022-02-12 13:51:11 +02:00
HorrorTroll a5c63c35fc Split 240B and 240, and clean up new USB code 2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis 3f6d9c2118 sn32f240: inherit clocks from mcuconf.h 2022-02-12 13:51:11 +02:00
Stephen Peery a3973aa5a3 Sonix SN32 series support (SN32F248, SN32F260)
Squashes commits by:

smp4488 <smp4488@aol.com>
Ilya Zhuravlev <whatever@xyz.is>
Adam Honse <calcprogrammer1@gmail.com>
2022-02-12 13:51:11 +02:00
Fabien Poussin 6421c89c61
Merge pull request #297 from fauxpark/k60f-improvements
K60x improvements
2021-09-18 12:34:16 +02:00
Joy cc5a81bf99 Added WB32F3G71xx support 2021-09-12 18:02:41 -03:00
fauxpark 4b24d2e9c0 K60F improvements 2021-09-12 02:59:33 +10:00
Stefan Kerkmann b729125bdd Add Nucleisys NMSIS sources 2021-04-06 13:38:21 +02:00
codetector 7230eb96cc
[HAL/HT32]: Initial HT32 Support with a USB-DFU Demo 2020-12-31 02:27:13 -05:00
Alex Lewontin adc44c4276
Use OEM CMSIS peripheral access headers 2020-12-05 17:05:14 -05:00
codetector c5bd388844
Merge remote-tracking branch 'origin/lpc11uxx' into lpc11uxx-v20.x 2020-12-05 10:17:49 -05:00
codetector 674cf13603
SPI Driver + modified vector file 2020-12-05 10:14:03 -05:00
codetector 9f194d72dc
USB Works 2020-12-05 10:14:03 -05:00
codetector 4e5d4015b8
[LPC11Uxx]: Initial support for GPIO (PAL) 2020-12-05 10:14:03 -05:00
codetector 325bd43323
[LPC11Uxx]: Initial Support: RT + HAL ClockInit 2020-12-05 10:14:02 -05:00
codetector dae27fbf5f
UART + Serial Driver 2020-12-03 22:31:21 -05:00
codetector feb46948da
SPI Driver + modified vector file 2020-11-30 13:13:07 -05:00
codetector f065a3bb2e
USB Works 2020-11-29 15:20:58 -05:00
codetector 2e9d04fb80
[LPC11Uxx]: Initial support for GPIO (PAL) 2020-11-26 23:31:17 -05:00
codetector 20369a3011
[LPC11Uxx]: Initial Support: RT + HAL ClockInit 2020-11-26 16:04:08 -05:00
GitWellBack 08e48cd50b Update to integrate OSS re-engineer of NUMICRO MCU 2020-11-04 12:05:16 +08:00
GitWellBack beaf559be9 Nuvoton NUC123SD4AN0 MCU port, ready for Ducky One 2 Mini keyboard integration 2020-11-04 12:05:16 +08:00
Michael Stapelberg 571691aeab fix a couple of forgotten SET calls 2020-06-03 22:02:29 +02:00
Michael Stapelberg f43207c75f MK66F18.h: fix typo: UARTTypeDef → UART_TypeDef 2020-06-02 21:07:38 +02:00
Fabien Poussin 6cc0927c06
Merge pull request #158 from walkerstop/mike
Kinetis MK66F18 and PJRC Teensy 3.6 support
2018-05-07 16:58:30 +02:00
Michael Walker 619d45c0ff Fix MK66F18 compilation for the following HALs: Serial, I2C, EXT, ADC, GPT, PWM, SPI 2018-05-07 07:45:08 -07:00
Fabien Poussin dfd4708dbc
Merge pull request #156 from wiml/k64_support
Kinetis K64 and PJRC Teensy3.5 support
2018-05-05 19:23:19 +02:00
Michael Walker f4b640014d Correct register definitions for MK66F18 for LPTMR and FlexRAM 2018-05-03 15:17:52 -07:00
Michael Walker cd7559268d Merge branch 'master' into mike 2018-05-02 03:37:31 -07:00
Michael Walker 4d7ccdd1fc More corrections 2018-05-01 14:46:56 -07:00
Michael Walker 0fbddccd80 disable voltage inrush regulator 2018-05-01 03:26:28 -07:00
Michael Walker b0a7581067 Attempt at Teensy 3.6 support 2018-04-30 16:34:26 -07:00