1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00
Commit graph

50 commits

Author SHA1 Message Date
J Blackman
33a96bb5f6
Source file re-arrangement for better separation of MCU types (#12268)
Source file re-arrangement for better spearation of MCU types

- Move STM32 specific files to drivers/stm32
2023-02-01 01:12:34 +01:00
Tony Cake
8d7dfba207 Modify serial drivers to add a workaround for SmartAudio, which was
broken by the fix for #10220.
Smart Audio will now default to the old (bad) behavior where pulldowns
are being used instead of pullups for most BF supported processors when
in Bidirectional, PushPull mode.
2021-02-17 05:26:52 -08:00
jflyper
ff16686893 White space tidy 2020-02-17 23:54:57 +13:00
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
jflyper
ff72647486 UART buffers for F4 should not be in CCM DATA RAM for DMA to work 2019-09-22 04:04:26 +09:00
mikeller
1651f14391 Fixed UART pin definitions for STM32F411. 2019-08-04 18:20:29 +12: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
Andrey Mironov
4e5f0e3c54 Fixed incorrect enum value being used for GetITStatus on F4 2019-01-19 16:25:57 +03: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
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
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
Maxim Strinzha
499e74efa4 Rename USART4/5 to UART4/5
This commit avoids compilation errors when INVERTER_PIN_USART4/5 is set.
2017-02-27 19:50:44 +03:00
blckmn
7092507d3b Further cleanup of F4 serial 2017-01-04 22:59:47 +11:00
blckmn
d6a0dea4e5 Cleaned up unnecessary code in F4 serial device 2017-01-04 22:10:25 +11:00
jflyper
23a411d25e Disable UART TX DMA by default 2017-01-04 19:41:02 +09:00
jflyper
34b1a18255 Merge remote-tracking branch 'betaflight/master' into bfdev-smartaudio 2016-11-29 10:59:30 +09:00
blckmn
515cb55d34 Enabling pull-ups for F4 serial 2016-11-26 07:16:33 +11:00
jflyper
3fe8c4b53b Ditto for F4 2016-11-23 04:15:18 +09:00
jflyper
4a9366ce85 Rebased on to master 2016-11-22 01:03:18 +09:00
Hydra
1a813353bb STM32F4 - Fix UART5 TX via DMA.
Previously the wrong DMA controller was used.  UART5 is on
DMA1/Stream7/Channel4.

Additionally the wrong defines were used for UART4 and UART5 with
regards to RX DMA.
2016-11-17 19:19:31 +01: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
Martin Budden
53981adbb7 Renamed serial port callback 2016-10-12 08:39:06 +01: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
blckmn
c1eecb7a5b Increased UART buffer size on STM32F4, and
Ensured FAKE ESC will only apply if both USE_SERIAL_4WAY_BLHELI_BOOTLOADER and USE_FAKE_ESC defined.
2016-07-26 07:50:30 +10:00
Martin Budden
141b369667 Removed trailing whitespace 2016-07-16 07:54:58 +01:00
blckmn
89b288a498 Fix for F4 telemetry 2016-07-15 22:49:24 +10:00
Martin Budden
3d8ee50934 Removed unnecesary #includes from drivers 2016-07-11 18:45:35 +01: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
Evgeny Sychov
801add3ce3 Fix F4 targets 2016-07-02 17:14:08 -07:00
Evgeny Sychov
2d070a3507 Re-design DMA driver 2016-07-01 01:53:45 -07:00
Martin Budden
97fe5afd6c Converted tabs to spaces. 2016-06-27 19:26:02 +01:00
blckmn
7ca39bbde6 STM32F4: Drivers 2016-06-08 05:37:08 +10:00