1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 08:15:30 +03:00
Commit graph

103 commits

Author SHA1 Message Date
James
4019369ec0
Initial ADC support for AT32 (#12356)
Reads internal and external ADC channels.
Internal Vref and temperature tested, external Vbat tested.
Expect temperature to be inaccurate as the AT chips don't come with
per chip calibration.
External current and the generic 'external' channels haven't been tested.
2023-02-14 21:40:00 +01:00
J Blackman
2dbbd1882c
timerHardware removal - all targets use fullTimerHardware now. (#12349)
* Removing last items associated with old timerHardware

* target.c rename, to identify purpose (should probably move to drivers/sitl or similar)

* Removing timerHardware dependency from timerup.c
2023-02-14 16:47:44 +01:00
J Blackman
74be33dfbc
AT32 development, introduction of AT32F435 target (#12247)
* AT32F435: new target (#12159)
* AT32F435: New target (WIP)
* IO and Timer Updates
* Adding pseudonyms for the STM TypeDef items.
- implementation to follow
* Adding config_streamer support for AT32
* Implementation for IO
* Adding in Peripheral mapping from emsr.
* Warnings cleanup for AT drivers
* Getting things to the linking stage
* Add AT-START-F435 LEDs as default in AT32F435 as a temporary measure to aid bringup
* Remove tabs
* Enable selection of serial port to use for MSP
* Setup defaults for AT-START-F435 to use MSP on UART1
* Fix for most recent 4.5.0 Makefile changes
* Solve for sanity check.
* Add AT32F435 MCU type
* Fix compilation issue with SITL
* Merge conflict resolution
* Minor cleanup
* Adding line feed.

---------

Co-authored-by: Steve Evans <Steve@SCEvans.com>
2023-01-31 11:31:23 +11:00
blckmn
3396013b53 Removing USE_UNIFIED_TARGET... 2022-10-21 10:04:10 +11:00
Steve Evans
701b0ae55c Remove F1 and F3 support 2022-06-14 19:10:13 +01:00
phobos-
e00a3abc59 ExpressLrs v2.0.0 support 2021-12-21 17:59:47 +01:00
Michael Keller
4d79c0fbd2 Rename timer functions to make them easier to understand. 2021-07-28 01:01:46 +12:00
Michael Keller
9eda7b4735 Added indication for N-channel timers to 'resource show all'. 2021-07-27 18:35:13 +12:00
Kevin Berner
8b55e3ffb2 Fix G473 AF5 Timers 2021-02-22 10:39:17 -06:00
jflyper
ca29b20e37 [G4] Add missing TIMUP_TIMERS (TIM20) 2020-10-04 00:03:28 +09:00
jflyper
fb1be68a8a [G4] timer support 2020-02-03 11:15:09 +09:00
Dominic Clifton
5fbb0674c5 Fix missing ADC4 dma mapping for F3.
Fix incorrect count of dma options for F3.

Value was hardcoded to 3, but the F3 has 4 ADCs.

Fix dmaPeripheralMapping for F3.

The dmaPeripheralMapping table was using index numbers and not device
numbers.

This meant all the dma mappings were out by one, eg.

```

```

ADC 1 is on DMA1, channel 1, but the output from dma ADC 2 list shows
the possibilities for ADC 1, not ADC 2 and shows no possibilities for
dma ADC 1 list

Ensure there are defaults for ADC4 on F3.

Always use 4 ADC instances for the ADC PG.

* PG should not be target dependant.
* Add a static assert which will fail if anything is changed.

Fix dmaopt in ADC PG, it should be a int8_t, not uint8_t

Fix occurrences of -1 that should be `DMA_OPT_UNUSED`.

Fixing this meant that dma_reqmap.h needed to be included in a few
places.  When this was done there were errors because dma_reqmap.h was
included more than once and it's `#pragma once` was commented out.

Including dma_reqmap.h from every PG that uses `dmaopt` also caused
other compilation issues, fixed by this commit.
2019-10-21 20:10:50 +13:00
Michael Keller
1c7b099cee
Removed unavailable timers from STM32F411. (#8860)
Removed unavailable timers from STM32F411.
2019-09-12 06:48:38 +12:00
mikeller
672a1f737f Removed unavailable timers from STM32F411. 2019-09-10 15:36:56 +12:00
mikeller
4acf0893df Fix the problem of multiple timer allocations with bitbanged Dshot. 2019-09-09 00:48:02 +12:00
Dominic Clifton
4eb839c7bf Add fullTimerHardware for F3 for use with USE_TIMER_MGMT.
STM32F3 doesn't have TIM5.
2019-08-27 04:38:16 +02:00
mikeller
768b345166 Added resource index display. 2019-08-08 11:49:51 +12:00
mikeller
6a0c5836de Added 'timer show' command to CLI. 2019-08-06 23:56:54 +12:00
jflyper
7ddfd7dea6 Unify DMA stream and channel handling 2019-07-27 21:20:34 +09:00
mikeller
72d05f682c Fixed build if none of USE_DSHOT, USE_LED_STRIP, USE_TRANSPONDER are defined. 2019-06-30 15:16:14 +12:00
jflyper
8ceaed1072 [H7] Add pseudo peripheral TIMUP for TIMx_UP DMA management 2019-06-28 15:45:19 +09:00
jflyper
22d046c879 [H7] Add USE_TIMER_MGMT to H7 2019-06-10 00:00:16 +09:00
jflyper
16f2392458 [H7] Add USE_DMA_SPEC to H7 2019-06-07 08:00:52 +09:00
jflyper
e18c4ec662 [H7] Use channel member for H7 DMA request 2019-06-05 18:13:17 +09:00
jflyper
f0e5363703 Remove excess member from timerHardware_s 2019-06-02 21:32:03 +09:00
jflyper
a8c16c1cf8 [H7] Enable timer
[TIME] Basic def

[TIMER] timer related commits

[TIMER] Remove stale comments from timer_stm32h7xx.c

[TIMER] New timerClock() based on RM0443 Table 48

[TIMER] Add DMA handling

[TIMER] White space tidy in timer_def.h

Add TIM1_UP_IRQ handling

Fix DEF_TIM_DMA_FULL emitting error for 7th and 15th entry

STM32H7 - add TIM15-CH2 (No DMA)

Fix comment spelling errors.

timer.h change for "Burst Dshot First working version"

Fix bad TIM9 handling for non-H7 case

Touch-up after rebase (timer.h)

F4 and F7 does not have dmaIrqHandler in timerHardware_s (anymore)

Changes per PR comment
2019-05-08 02:26:22 +09:00
mikeller
a5753600ed Fixed missing timer definition for F7. 2019-03-10 22:13:12 +13:00
mikeller
fb5c468f92 Added default value processing for , . 2019-03-07 18:34:52 +13:00
mikeller
de8f4028e3 Added support for F411, F446, F745, F765.
Added MATEKSYSF411 target config.

Added CRAZYBEEF4FR unified config.
2019-03-01 02:44:23 +13:00
mikeller
31425f5171 Made DMA options configurable. 2019-02-28 02:20:43 +13:00
mikeller
f8103b8c86 Added DMA mapping (readonly for now), and enabled timer management for all F4 boards.
Converting the universal target as well.

Simplified timer management some.

Added F722 support for good measuer.

Fixed SITL, tests.

Cleanup after rebase.

Added support for all timer consumers and F7.

Fixed 'USE_DMA_SPEC' for F3, some cleanups.
2019-02-28 00:25:43 +13:00
mikeller
cf367eae2c Fixed camera pin flag. 2018-08-18 14:16:41 +12:00
mikeller
430379016e Converted camera control pin definition to timer flag. 2018-08-17 00:26:02 +12:00
blckmn
aad6efdf03 Timer clean up in preparation for configurable timers 2018-05-06 06:55:17 +10: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
DieHertz
a89409a26a Added TIM_UP + burst DMA -based DSHOT to F3 2017-12-28 16:26:24 +03:00
jflyper
759e03c47e F4 Dshot-DMAR initial working version 2017-12-26 10:18:52 +09:00
jflyper
db014752d7 Convert TRANSPONDER to USE_xxx scheme 2017-12-11 02:49:00 +09:00
jflyper
209be419cb Add TIMUP pseudo resource 2017-11-28 10:16:34 +09:00
mikeller
b78d8ad83e Converted more 'feature' type defines to use the 'USE_<x>' convention: LED_STRIP TARGET_CONFIG BRUSHED_ESC_AUTODETECT SERIAL_RX TELEMETRY TELEMETRY_CRSF TELEMETRY_FRSKY TELEMETRY_HOTT TELEMETRY_IBUS TELEMETRY_JETIEXBUS TELEMETRY_LTM TELEMETRY_MAVLINK TELEMETRY_SMARTPORT TELEMETRY_SRXL TELEMETRY_NRF24_LTM TELEMETRY_LTM SPEKTRUM_BIND NAV BUTTONS 2017-11-07 18:49:12 +13:00
jflyper
2a1b09f3ae Renumbered timerFlag_e
Also made it clear that they are bit flags.
2017-11-07 03:36:05 +09:00
jflyper
751a3307cb Remove unused MOTOR_OUTPUT flags 2017-11-06 14:52:30 +09:00
Sami Korhonen
f8469ae40e TIM_UP 2017-11-02 16:32:50 +02:00
Sami Korhonen
fa6112e1b8 F7 Dshot hack 2017-10-15 10:08:41 +03:00
blckmn
a078739ec2 Removed superfluous timerClockDivisor (not used anywhere anymore). 2017-07-09 07:41:02 +10:00
blckmn
06ad65a2f6 Minor cleanup 2017-06-29 11:19:04 +10:00
blckmn
b9ebf8f4fd PWM output calculations dynamic based on clock speed 2017-06-28 21:59:42 +10:00
blckmn
0d13736e2f Simplified getting timerClock 2017-05-11 13:17:58 +10:00
Martin Budden
2493c214b0 Created subdirectories in drivers directory 2017-04-12 08:06:22 +01:00