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

18491 commits

Author SHA1 Message Date
J Blackman
ee77239db1
Removing Custom Defaults (#12425) 2023-03-02 19:39:44 +01:00
Steve Evans
68136910d0
Arrange all 192K of RAM in a single block on AT32F435 (#12435) 2023-03-01 17:57:09 +11:00
Steve Evans
97487905ee
Add AT32F435 I2C support (#12423) 2023-02-28 12:25:03 +11:00
J Blackman
6a8c365b9c
FIX: Autogeneration of config.h inadvertently used PNONE instead of NONE (#12430)
FIX: Autogeneration inadvertently used PNONE instead of NONE
2023-02-28 12:23:42 +11:00
SugarK
2e04129b90
increase FF smoothing max to suit elrs 1000hz link rate (#12426)
* increase FF smoothing max to suit elrs 1000hz link rate

first step to making an ERLS 1000hz preset

* changed CMS ff smoothing limit to 95 max

---------

Co-authored-by: Ivan Efimov <gendalf44@yandex.ru>
2023-02-28 12:22:51 +11:00
David O'Connor
29379a10c2
G4: Change SDA2 to PA8 (#12400) 2023-02-28 08:05:41 +11:00
J Blackman
fbca7f06f3
Remove GYRO defines from common_post_defaults (#12406) 2023-02-27 20:59:47 +11:00
J Blackman
eacbf0d548
Adding last of the settings in unified targets (#12414)
* Adding GYRO and MAG alignment from settings in unified targets
* I2C devices incorrectly specified, i.e. variance to how SPI is handled.
* Adding in remaining setting (where a mapping is yet to be verified)
* Adding check for comment in auto generation (so editing can be commenced).
* SYSTEM_HSE_MHZ now being set.
2023-02-27 20:18:11 +11:00
J Blackman
4fff1b3c42
FIX: Legacy drivers required for STM32F411DISCOVERY target (#12411) 2023-02-25 21:19:45 +01:00
J Blackman
7c6bf79777
FIX: Custom defaults - premature configuration (#12410) 2023-02-24 10:37:33 +11:00
J Blackman
60369bcf4f
FIX: LED is zero based index (variance to resource command), ADC pins incorrectly mapped. (#12405) 2023-02-24 06:36:19 +11:00
J Blackman
6bbd49a3f9
Adding VMA address to config.h (#12386) 2023-02-23 22:58:28 +11:00
Mark Haslinghuis
099f2a9a9b
Enable cloud build features at runtime (#12388) 2023-02-22 23:28:36 +01:00
J Blackman
82566eb89a
REFACTOR: moving timer definitions to MCU locations. (#12397)
* REFACTOR: moving timer definitions to MCU locations.

* Now that the MCU directory needs to be included in the search path for includes, no need for target.h entry if filenaming is consistent.

* SITL needs the empty include.
2023-02-22 22:55:57 +01:00
J Blackman
c4ab98258e
FIX: Multi-gyro enabled but not configured at compile time. (#12404) 2023-02-22 22:36:18 +01:00
J Blackman
9d61e81b14
config.h patch from unified-targets 22-FEB-2023 (#12403) 2023-02-22 13:54:38 +11:00
J Blackman
0bf6a7443e
Auto generation of config.h from unified target repo (#12353)
* Auto generation of config.h from unified targets

 - resources,
 - timers,
 - dma
 - some settings

* Adding additional messaging.

* Updates from unified targets repo
2023-02-21 17:39:37 +01:00
Steve Evans
a7e4bf41eb
Add CMS support on TX for ELRS (#12308)
* Never block use of SWD pins

* Throttle CMS displayport traffic on CRSF to prevent ELRS overrun
2023-02-21 17:10:56 +01:00
Steve Evans
0736da8aa3
Move FLASH_PAGE_SIZE definition to CPU specific target.h files (#12394)
* Never block use of SWD pins

* Split the AT-START-F435 and REVO-AT configs out from AT32F435/target.h

* Move FLASH_PAGE_SIZE definition to CPU specific target.h files

---------

Co-authored-by: J Blackman <blckmn@users.noreply.github.com>
2023-02-22 02:06:40 +11:00
Dominic Clifton
c1c1f95578
Require explicit usage of firmware partition for EXST targets. (#12299)
Require explicit usage of firmware partition in preparation for memory
mapped EXST targets with a second flash chip for data storage and
config.
2023-02-21 13:30:18 +01:00
Steve Evans
1ff78c6aac
NEW TARGET: AT32 debug targets, ATSTARTF435 and REVO-AT (#12392)
* Never block use of SWD pins

* Split the AT-START-F435 and REVO-AT configs out from AT32F435/target.h
2023-02-21 13:14:07 +01:00
J Blackman
166ff9c9b3
FIX: Several build issues following configuration changes (#12389)
* FIX: Several build issues following configuration changes

1. RX_SPI pins undefined
2. SDCARD enabled but no utilisation (i.e. no blackbox selected).

* Improved readability (readiness for "black" macro magic)

* Adding Makefile rule to enable CI targets to include Configured targets
2023-02-20 15:17:45 +01:00
Alejandro Hernández Cordero
9dc9c51d3e
Added SITL Gazebo (#12346) 2023-02-19 06:39:54 +11:00
J Blackman
1c92d83c6f
FIX: Broken Build API for zulu following deployment to use config (#12377) 2023-02-17 17:39:15 +11:00
Hans Christian Olaussen
885d8228db
Fix MPU6000 reset (#12371) 2023-02-17 00:59:13 +01:00
J Blackman
17c7816a52
To enable display of pin mapping for config.h (#12363) 2023-02-16 17:28:27 +11:00
J Blackman
44abae2965
FIX: Poor performance due to platform movements. (#12373) 2023-02-16 13:58:11 +11:00
J Blackman
9e36ba6ec4
Using SPI default pins (#12367) 2023-02-16 08:25:39 +11:00
Steve Evans
3faf844010
Enable SPI DMA receive before transmit on AT32 (#12368)
* Enable DMA rx before tx

* Update bus_spi_at32bsp.c

Typo
2023-02-15 03:03:54 +01:00
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
3598f3e41a
Remove USE_SWDIO, simply refer to DEBUG (#12361)
Remove USE_SWDIO, simply refer to debug

Command line of `make TARGET=STM32F405 DEBUG=GDB` will trigger this.

Alternative is simply `make TARGET=STM32F405 EXTRA_FLAGS="-DDEBUG"`
2023-02-14 21:37:16 +01:00
J Blackman
4fe980384c
Refactor I2C to use I2Cx_SCL_PIN and I2Cx_SDA_PIN (#12357)
* Refactor I2C to use I2Cx_SCL_PIN and I2Cx_SDA_PIN
* Keeping the default pins for F4 and F7
2023-02-15 06:02:02 +11:00
Ivan Efimov
615adaf463
Fix: Renamed USE_LEDSTRIP_64 to USE_LED_STRIP_64 (#12365) 2023-02-14 16:57:44 +01:00
J Blackman
2a17cedde9
Adding additional MOTOR pin mappings for defaults (#12364) 2023-02-14 16:54:49 +01:00
J Blackman
25b3b58385
Simplified platform.h (#12355)
As targets are limited to MCU now, we can use this fact to remove the #ifdef statements related to MCU. This is implied by the target.h and can be used for including MCU platform specific includes.
2023-02-14 16:50:47 +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
69c779c0f7
Makefile Cleanup - further simplification of local building (#12354)
* Makefile Cleanup - further simplification of local building

Can now use the commands:

make BETAFLIGHTF4

make BETAFLIGHTF4_clean

make configs

Target objects for config are now kept separate, so changing a config in use will rebuild as required.

* Minor correction for cummulative use in naming target
2023-02-14 16:44:20 +01:00
J Blackman
fd2ac2f77f
FIX: Flash status compilation error (#12360) 2023-02-14 20:12:58 +11:00
Mark Haslinghuis
14eac2d6c8
Refactor GPS state_position (#12330)
Refactor GPS
2023-02-14 16:57:30 +11:00
Vitaliy Nimych
ca4df610ed
add BMP280 to target FLMO GRAVITYF7 (#12352) 2023-02-14 13:35:29 +11:00
J Blackman
19f22f5120
Method for adding defaults using defines for resources. (#12342)
* Method for adding defaults using defines for resources.

* As we will always be using the fullTimerHardware, we just need to configure the pin mapping.

This is done in the config.h as

#define TIMER_PIN_MAPPING   \
    TIMER_PIN_MAP(0, PA0, 1, 0) \
    TIMER_PIN_MAP(0, PA1, 1, 0)

timerHardware[] dependencies to be removed in another PR

* Adding missing pin definitions (removing dependency on timerHardware)

* Typo

* In case MOTOR1_PIN is not defined, but a motor is configured
2023-02-12 04:06:49 +01:00
nerdCopter
bb875cd0d6
add thrust_linear to blackbox header (#12337) 2023-02-11 13:41:55 +01:00
J Blackman
693f55dcff
Simplified Local Build using Permanent Config (#12341) 2023-02-11 14:02:18 +11:00
Mark Haslinghuis
561d0ef996
Fix blackboxdevice missing (#12324) 2023-02-11 08:37:36 +11:00
Dominic Clifton
d27bea9ca6
Revert "Fix missing CUSTOM_DEFAULTS for H730/H750 targets. (#12261)" (#12333)
This reverts commit 9850749afa.
2023-02-11 05:56:14 +11:00
J Blackman
7b2d114c51
Tidy up of AT (timer defs), and STM specific init defines (#12339)
* Tidy up of AT Timer Definitions
* Removed unnecessary F1 code.
* Remove some STM specific define logic from init.c
* As per renaming suggestion from @klutvott123
2023-02-10 14:01:38 +11:00
Steve Evans
01df7f3057
Define USE_LATE_TASK_STATISTICS for AT32 (#12328) 2023-02-09 16:53:06 +11:00
Steve Evans
df70dc9574
Fix BMI160 accelerometer read in non-DMA SPI transfer (#12338) 2023-02-09 16:52:04 +11:00
Jan Post
1ec9ec6bdc
Fix SDFT batchSize rounding (#12329) 2023-02-09 06:25:25 +01:00
Steve Evans
0ac9962bd4
Enable DMA on AT32F435 SPI (#12327) 2023-02-08 20:54:41 +00:00