dexter93
68a138c41d
sn32: platform definition updates ( #35 )
...
* sn32: fix platform names
* sn32: Introduce board specific name definition
* sn32: update mcu family naming
2022-02-12 13:51:12 +02:00
Jack
cda95f33c7
Fix compilation error
2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis
82b25f3972
sn32: slight flash cleanup
...
guard the jumploader on any flash operation
thanks to @gloryhzw
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
9dad1e98ed
[sn32] 240b: usb hal: use the ISR
2022-02-12 13:51:12 +02:00
stdvar
ac26bc170f
Override restart_usb_driver for SN32 to avoid kb crash on remote wakeup
...
for history see:
https://github.com/SonixQMK/qmk_firmware/pull/28
https://github.com/qmk/qmk_firmware/pull/12870
2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis
737997830b
[SN32 decouple SysTick from CT16 and board headers
2022-02-12 13:51:12 +02:00
IsaacDynamo
73a79f9083
Added sn32_registry.h for 260. This is needed to be able to use the SN32_CT16B1_HANDLER ISR.
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
9eb6c8e884
sn32: we have UART
2022-02-12 13:51:12 +02:00
Dimitris Mantzouranis
11db8a941b
sn32: further cleanup the LLD
...
SysTick driver is now seperate from CT
stale 240 non B code removed
CMSIS version is now on 1.8R
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
de5d4799da
sn32: flash: comply with the hardware
...
The flash controller only accepts 4bytes
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
777f1fcbb1
sn32: cleanup CT
...
24xB doesn't have CT32
Remove CMSIS leftover SysTick code
2022-02-12 13:51:11 +02:00
Glory
d596a79ae4
SN26x: shave 40 bytes of RAM
2022-02-12 13:51:11 +02:00
Glory
14fec20512
Fix OpenRGB packet drops
2022-02-12 13:51:11 +02:00
Glory
d898dafe19
Fix openrgb RAW set led drop issue
...
should handle nak if the device can't keep up PC writing speed (3~5 64-byte packet sequentially)
2022-02-12 13:51:11 +02:00
stdvar
181e4b3ed7
[240] Clear USB interrupt status after it is fully handled
2022-02-12 13:51:11 +02:00
stdvar
d81bd9ccdf
[240B] Clear USB interrupt status after it is fully handled
2022-02-12 13:51:11 +02:00
Adam Honse
e2076e56b8
Add board files for SN32F260
2022-02-12 13:51:11 +02:00
dexter93
36d503985f
SN32: update flash driver for 240b ( #8 )
...
* sn32 hal: update flash from latest CMSIS
* sn32: build flash
* sn32: fix compilation
* sn32 flash: add half word flashing
* sn32 flash: adaptation time
2022-02-12 13:51:11 +02:00
janjan
34f2c22327
Fixes for 268
...
This is inspired/copy-pasted from:
be7396a79f
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
ffba320d0a
sn32: add sn32f240b board on chibios
2022-02-12 13:51:11 +02:00
HorrorTroll
2ea54e6d17
Replace to the file was fixed
2022-02-12 13:51:11 +02:00
HorrorTroll
f7b8a68338
Added alternate ACK/NAK based 240B
2022-02-12 13:51:11 +02:00
stdvar
d32df9caa9
SN32F24xB: Implement alternative handling of ACK/NAK and fix CONSOLE support
2022-02-12 13:51:11 +02:00
stdvar
52acdb5527
SN32F24xB: Add remote wakeup and examples of suspend handling
2022-02-12 13:51:11 +02:00
HorrorTroll
7f2ba3dbfa
fixed a bit for 240B, should work now
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
stdvar
90174b9810
SN32: Update USB IRQ priority
2022-02-12 13:51:11 +02:00
stdvar
737bf13059
SN32: Cleanup USB LLD code
2022-02-12 13:51:11 +02:00
stdvar
4d74459654
SN32: Remove unused code and cleanup USB LLD
2022-02-12 13:51:11 +02:00
stdvar
05d3a4f4d1
SN32: Fix SET_REPORT at init and start troublshooting the handling of multple EPs
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
67a3f41cf8
sn32: ct: advertise the isr handler
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
868fb3a968
sn32: we use the ct16b1
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
c164ee75b8
sn32f240: minor lld cleanup
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
a191484ee3
sn32f240: we have no need for EXT HAL
...
move isr mapping to the lld
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
9aeb769a9c
sn32f240: align ISR mapping with the vector table
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
b780d3cd54
sn32: ct cleanup
2022-02-12 13:51:11 +02:00
Dimitris Mantzouranis
7d24ca4114
sn32: handle all MRs in CT16
2022-02-12 13:51:11 +02:00
Adam Honse
1049040e16
Fix multi-packet data transfers
2022-02-12 13:51:11 +02:00
Adam Honse
7b231e2d26
Fix initialization on Windows
2022-02-12 13:51:11 +02:00
Adam Honse
0210956fa0
Sonix SN32 USB cleanup
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
52c619778f
Merge pull request #314 from rusefi/rusefi-20.3.x
...
reviving 24 series eeprom
2022-02-08 15:44:32 +01:00
rusefillc
00e9fa421d
more progress
2022-02-07 22:24:53 -05:00
rusefi
88dde3cb49
https://github.com/rusefi/rusefi/issues/3860
...
helping C++
2022-02-07 22:20:26 -05:00
rusefillc
8b31f687ce
help eeprom compile
2022-02-07 22:20:25 -05:00
Fabien Poussin
d1a7bf2e8c
Merge pull request #303 from stapelberg/hsrun
...
MK66F18: only enter HSRUN mode if actually necessary (> 120 MHz)
2022-02-06 22:13:10 +01:00
Fabien Poussin
0323f2f492
Merge pull request #308 from ChibiOS/chibios-20.3.x
...
Modified i2c peripheral configuration
2022-02-06 22:10:06 +01:00
zykrahgaming
e66ea3040a
Attempting to fix PACKED_VAR redefinition.
2022-01-01 19:19:50 +11:00
zykrahgaming
29da390b1e
Updated ffconf.h version, Attempting to fix redefinition of structs
2022-01-01 19:05:15 +11:00
zykrahgaming
da3127bcaf
Fix wrong size passed to calculate buffer offset (as in 72f62dcd82
)
2021-12-30 17:47:24 +11:00
Joy
4f0d4f085f
correct a mistake
2021-12-21 18:22:45 -03:00
Joy
017f5f22f0
Change the driving mode of GPIO current.
2021-12-21 18:22:45 -03:00
Joy
43886c36f5
Added WB32 GPIO current configuration
2021-12-21 18:22:45 -03:00
Joy
9741167391
Modified i2c peripheral configuration
2021-10-03 21:20:57 -03:00
Michael Stapelberg
c3c55769f8
MK66F18: only enter HSRUN mode if actually necessary (> 120 MHz)
...
This more closely matches the Teensy arduino startup and EEPROM code.
2021-09-24 09:14:45 +02:00
Fabien Poussin
1127b5575e
Merge pull request #286 from josesimoes/patch-1
...
Replace packed struct definition with one from CMSIS
2021-09-20 19:52:29 +02:00
Fabien Poussin
82a8a27d28
Merge branch 'chibios-20.3.x' into picoi2c
2021-09-18 12:44:54 +02:00
Fabien Poussin
97d61422ec
Merge branch 'chibios-20.3.x' into picoadc
2021-09-18 12:37:26 +02:00
Fabien Poussin
6421c89c61
Merge pull request #297 from fauxpark/k60f-improvements
...
K60x improvements
2021-09-18 12:34:16 +02:00
Fabien Poussin
50b0e36062
Merge pull request #296 from hanya/picousb
...
RP2040: USB driver
2021-09-18 12:33:24 +02:00
Hanya
6b0d55c273
Add I2C driver
2021-09-13 19:48:29 +09:00
Joy
d1c2126d1c
Modified some drivers
2021-09-12 18:02:41 -03: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
Fabien Poussin
9e4deb49e8
Merge pull request #292 from bwisn/bwisn_ht32fixusb
...
HT32: add missing fields in USBEndpointConfig, to make it compatible …
2021-09-11 00:11:00 +02:00
Hanya
42adcfe526
Fix device numbering
2021-09-09 18:15:14 +09:00
Alex Lewontin
5935e97262
Merge pull request #289 from elfmimi/nuc123-usb-workaround
...
NUMICRO: Workaround for NUC123 USB Endpoint 6 problem
2021-09-03 19:41:08 -07:00
Hanya
4315298f40
Fix next channel calculation
2021-09-03 15:49:02 +09:00
Hanya
af3b8d6070
Add ADC low level driver for RP2040
2021-09-02 22:26:14 +09:00
Hanya
8bc249f5d6
Remove unused code to solve merge conflict
2021-08-30 13:30:13 +09:00
bwisn
41f2485356
HT32: add missing fields in USBEndpointConfig, to make it compatible with STM32
2021-08-29 16:40:05 +02:00
Hanya
fc097fa6ac
Add flag default
2021-08-29 15:36:05 +09:00
Hanya
e6c771a989
Add flag to disable error data sequence interrupt
2021-08-29 11:33:35 +09:00
Hanya
0458091d42
Fix no need to reset endpoint here
2021-08-29 10:54:29 +09:00
Ilya Zhuravlev
182c3545e5
prepare out endpoint once, not on every call to usb_lld_start_out
2021-08-28 19:26:20 -04:00
Ilya Zhuravlev
b8934a2c9e
fix sending data
2021-08-28 14:35:31 -04:00
bwisn
4568901a91
ht32: fix GCC 11 misleading indentation error
2021-08-28 10:23:24 -03:00
Hanya
3ac83b6f69
Merge PR from xyzz
2021-08-28 20:38:22 +09:00
Hanya
d98bf4c347
Fix set buffer control
2021-08-27 19:20:42 +09:00
Ilya Zhuravlev
b8d011c927
fix buffer offset calculation sending wrong data
...
it didn't include offset from base to USB_DPSRAM->DATA so with offset=0
it ended up sending back stale setup packet data
2021-08-26 23:01:49 -04:00
Ilya Zhuravlev
76053315d9
fix some usb bugs
...
now it can enumerate
2021-08-26 00:51:33 -04:00
Hanya
fea5fe0b5b
Add USB driver, not working well
2021-08-25 20:15:28 +09:00
Fabien Poussin
e762f8f765
Merge pull request #288 from KarlK90/gd32vf103-fix-adc-dma
...
[GD32VF103] Fix ADC0 DMA stream mapping
2021-08-16 11:10:20 +02:00
Ein Terakawa
a94fead246
Workaround for NUC123 USB Endpoint 6 problem
2021-08-08 22:26:44 +09:00
Alex Lewontin
2935adef79
Create usb_memcpy.S
2021-08-04 00:52:06 -04:00
Ein Terakawa
7bc8efaee4
NUMICRO: Fix trivial but hard to find errors in USB LLD
2021-08-02 21:58:26 +09:00
Stefan Kerkmann
e4790d23ae
Fix ADC0 DMA stream mapping
2021-07-23 14:05:15 +02:00
Fabien Poussin
1310a8ce93
Merge pull request #287 from snazarkin/crc-patch-1
...
Don't include SW CRC if not requested
2021-07-21 21:00:09 +02:00
Fabien Poussin
aa89629d2f
Merge pull request #285 from AndruPol/chibios-20.3.x
...
fixed erase in hal_efl_lld
2021-07-21 14:00:35 +02:00
snazarkin
3404e4d270
Don't include SW CRC if not requested
...
I've got build failure when enable CRC module on STM32. The reason is SW CRC header is included by default but not by compiler if ChibiOS-Contrib/os/various/ is not included into search path.
The fix includes only requested LL header.
2021-07-19 16:56:32 +03:00
José Simões
e93de09f00
Replace packed struct definition with CMSIS one
2021-07-12 18:18:43 +01:00
andru
4ace726d62
fixed erase in hal_efl_lld
2021-07-10 20:58:37 +03:00
Fabien Poussin
34591368db
Merge pull request #284 from dron0gus/crc-fix
...
STM32: crc lld: in reversal mode should be changed for tailing half-word and byte
2021-07-10 17:08:30 +02:00
Fabien Poussin
c9ea245068
Merge pull request #282 from AndruPol/chibios-20.3.x
...
nrf52 drivers
2021-07-10 16:57:09 +02:00
Andrey Gusakov
d4a0d9f0a9
STM32: crc lld: in reversal mode should be changed for tail
2021-07-05 23:25:28 +03:00
Stefan Kerkmann
24ec55baa7
Free B4 pin on Longan Nano Board
...
By default B4 has the JTAG NJRST signal with a pull up enabled. On the longan Nano
this PIN is broken out as a regular pin. So we just disable NJRST by default
and make it available as a regular GPIO.
2021-07-03 13:50:03 +02:00
Stefan Kerkmann
1021a7771f
Rename missed AFIO register names
2021-07-03 13:45:27 +02:00
andru
2fab47aa3b
fixed get_descriptor
2021-07-03 07:34:59 +03:00