jflyper
d9d878d88e
UART DMA refactor
...
- Add UART DMA configurability
- Consolidation of DMA settings code
DMA setting code for all MCUs is now in serial_uart.c
- Consolidation of UART buffer
UART buffers are not embedded in uartDevice[] array anymore for all MCUs.
- Consolidation of HAL DMA IRQ handler
- Add missing defs for DMA on UART4 for F3
2019-10-04 12:58:11 +09:00
Michael Keller
06cabd741f
Unify DMA stream and channel handling ( #8586 )
...
Unify DMA stream and channel handling
2019-07-28 11:03:46 +12:00
jflyper
7ddfd7dea6
Unify DMA stream and channel handling
2019-07-27 21:20:34 +09:00
Miguel.Alvarez
38013a8253
Added idle interrupt callback to UART driver
2019-07-22 15:55:49 -05:00
jflyper
00dab4288f
More strict application of USE_UART and USE_INVERTER
2018-10-08 15:06:42 +09:00
Andrey Mironov
501f4a1345
Removed redundant preprocessor defs for UART AF
2018-09-09 13:36:25 +03:00
Andrey Mironov
d6861b0842
Refactored UART pin config similarly to SPI to accomodate F765
2018-09-07 23:22:49 +03:00
mikeller
2feae20c32
Replaced instances of '#include <platform.h>' with '#include "platform.h"'.
2018-05-24 23:46:19 +12:00
blckmn
a9f74cd6df
Removed excess trailing spaces before new lines on licenses.
2018-04-25 20:58:00 +10:00
blckmn
46fe22b4bd
Direct license replacement
2018-04-22 09:22:46 +10:00
Martin Budden
8cb7abd15f
Added data parameter to UART RX callback
2017-11-25 10:11:37 +00:00
Martin Budden
944fe0761c
Tidied UART enum definitions
2017-07-29 13:30:37 +01:00
jflyper
697e5d3925
Fix UART TX DMA corruption
...
- Use ATOMIC while examining and updating DMA status
- Mask premature TC interrupt by examining transfer count register
(CNTDR/NTDR) for F1 and F4.
2017-06-25 17:21:29 +09:00
jflyper
83299a9313
Use RESOURCE_INDEX when calling IOInit
2017-06-16 11:00:13 +09:00
jflyper
2d45189fe2
No more "pin-pair"
...
RX and TX can be assigned to ANY capable pins.
2017-05-27 02:55:13 +09:00
jflyper
fdfe9e8af3
Configurable UART
2017-05-24 11:49:21 +09:00
jflyper
0cf5161ec4
Remove reference to USART_TypeDef in io, refactor uartOpen and serialUART
2017-05-11 09:59:43 +09:00
Martin Budden
2493c214b0
Created subdirectories in drivers directory
2017-04-12 08:06:22 +01:00
Martin
473826760d
serialUARTInit: allow missing rx/tx pin
2017-03-17 11:10:48 -04:00
J Blackman
792941606f
Initial preparation for cleaning up multiple files per MCU ( #2500 )
...
* Initial preparation for cleaning up multiple files per MCU
* Combined DSHOT for F3 and F4 (F7 todo)
* Build fixes (mixed some adjustments needed in transponder_ir.c)
* Fix F7 warnings/bugs
* Updated timer periods for transponder.
Fixed FURY including old pwm_output files.
* Added method to calculate prescaler and period on the fly for varying clock speeds.
This can be used for overclocking :)
* Consolidated led_strip
* Moved led strip to use system clock for timing (allowing overclocking)
* Fixed incorrect channel, and removed comparison warning.
* More cleanup
* Fix KIWIF4 target
* Cleaned up target.mk files
2017-03-01 19:50:23 +00:00
jflyper
61a87480b3
Rebased on to master (with merged CMS)
2016-11-15 15:46:43 +09:00
blckmn
58105c25ac
Simplified Owner management
2016-11-10 18:56:13 +11:00
blckmn
8dc3bee80d
Adding DMA ownership for ADC, LED STRIP, USART and MOTOR
2016-11-08 13:47:37 +11:00
jflyper
ab7bb1342a
wit (rebase onto master) blind merge
2016-11-01 11:57:09 +09:00
nathan
3665d763d4
cleanup stm32f3 serial uart1 to match the other uarts
2016-10-28 22:00:34 -06:00
Nathan
a5894f1c24
disable uart tx dma when using dshot on the spracingf3 ( #1412 )
2016-10-26 20:33:45 -06:00
Martin Budden
53981adbb7
Renamed serial port callback
2016-10-12 08:39:06 +01:00
jflyper
d26a1873d0
Removed rescheduling code and superfluous includes
2016-10-08 23:24:51 +09:00
jflyper
c724b7c4ee
SERIAL_BIDIR_PP option
...
Required for SmartAudio Support with single wire connection and without
external pull-up.
Tested with F3 only. F1 and F4 has untested mods, and Softserial
haven’t been touched.
2016-10-08 23:24:43 +09:00
Michael Jakob
167aaade9b
F3 UART IO fix
2016-07-27 23:18:50 +02:00
Martin Budden
141b369667
Removed trailing whitespace
2016-07-16 07:54:58 +01:00
Martin Budden
3d8ee50934
Removed unnecesary #includes from drivers
2016-07-11 18:45:35 +01:00
Evgeny Sychov
95a22053d7
avoid warnings
2016-07-09 20:28:18 -07:00
Evgeny Sychov
b909c70353
merge branch master into osd-improvement-master
2016-07-09 20:19:25 -07:00
Martin Budden
ea283ab98c
Converted tabs to spaces
2016-07-09 14:39:39 +01:00
blckmn
67d448d8ea
Improved Resource command output.
2016-07-09 17:03:16 +10:00
blckmn
c4e75e456c
Move to UART naming convention where possible (rather than USART).
2016-07-09 14:51:23 +10:00
blckmn
5f03470557
STM32F1/3: convert serial UART to IO code
2016-07-09 14:51:23 +10:00
Evgeny Sychov
acdcff176f
Merge remote-tracking branch 'origin/development' into osd-improvement
2016-07-02 16:20:28 -07:00
Read Error
7529213e9c
Addition of UART4/5 to F3
2016-07-02 07:01:13 -04:00
Evgeny Sychov
2d070a3507
Re-design DMA driver
2016-07-01 01:53:45 -07:00
borisbstyle
3a156f98ab
Fix LED_STRIP feature // Add DMA drivers // UART fixes
2016-02-10 22:36:05 +01:00
Read Error
4eb6581b76
Allow USART1 to be used for SERIAL_RX
2015-10-29 21:22:08 +00:00
Petr Ledvina
4c60f6c795
Fix 303 serial inversion and bidir mode
...
- USART_HalfDuplexCmd must be called only when USART is disabled
- input should be PullDown for inverted serial
- INVERTED BIDIR mode changed to GPIO_OType_PP (not opendrain) - opendrain won't work well for inverted serial; USART releases pin when transmission is done, so PP is OK
2015-03-31 15:01:28 +02:00
Nicholas Sherlock
3c543d36c8
Change port mode MODE_BIDIR into a port option instead
2015-03-19 13:42:13 +13:00
Petr Ledvina
f1ac4f8461
fix #ifdef typo
2015-02-23 09:17:06 +01:00
Petr Ledvina
7875b97aae
Compile serial code conditionally on stm32f303
2015-02-23 09:17:06 +01:00
Petr Ledvina
7c62ec9755
Move internal serial interface into separate header file
...
Declaring function from other file is quite dangerous - there is no warning if interfaces get out of sync
2015-02-23 09:17:06 +01:00
Dominic Clifton
36c7d5d30d
SPRACINGF3 - Fix typo in UART3 configuration.
2015-02-16 19:42:24 +00:00
Dominic Clifton
b6ac9204d3
STM32F3 - Fix LED Strip hardware initialisation.
2015-01-12 22:02:10 +00:00