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

178 commits

Author SHA1 Message Date
Steve Evans
9212eedd5c Only call sdCardAndFSInit() when SD card is in use 2021-12-12 14:03:35 +00:00
Hans Christian Olaussen
46b69260a2 Fix telemetry displayport initialisation 2021-12-05 19:17:08 +01:00
Michael Keller
8730a8efea Fixed SPI SD card support on H7 targets with SDIO support enabled. 2021-10-03 17:39:23 +13:00
Michael Keller
d5631e448e
Merge pull request #10950 from mikeller/fix_bus_switch 2021-09-28 02:24:16 +13:00
Michael Keller
da0377faf4 Cleanup of the bus switch functionality. 2021-09-07 10:28:02 +12:00
Michael Keller
54588cf7dd Removed softserial loopback. 2021-09-07 10:23:10 +12:00
Dominic Clifton
49869fa2bb Debug - Initialise debug pins on startup, not as part of the dshot
bitbang code.
2021-08-18 15:37:54 +02:00
Steve Evans
87c8847c13 New SPI API supporting DMA
Call targetConfiguration() once before config is loaded and again afterwards in case the config needs to be changed to load from SD card etc

Drop SPI clock during binding

Remove debug

Add per device SPI DMA enable

Fix sdioPinConfigure() declaration warning

Reduce clock speed during SPI RX initialisation
2021-07-25 12:40:25 +12:00
Dominic Clifton
e0f2b89828 Indicate failure when CONFIG_IN_SDCARD is used and no SD card is
inserted.
2021-05-08 14:20:29 +02:00
mikeller
b53b2fe76c Made the displayport initialisation consistent for all telemetry protocols. 2021-02-14 16:44:52 +13:00
Steve Evans
31b06cd7d2 Add USB MSC support for H7 2020-10-30 19:30:38 +00:00
mikeller
1a6514cd9b Refactored mixer / servo init. 2020-10-15 07:45:46 +13:00
mikeller
e4b3a1f2e5 Moved mixer profile initialisation to after pid initialisation. 2020-10-11 23:54:26 +13:00
jflyper
08f1f91c50 [G4] CLI and config changes for overclocking 2020-10-01 20:40:44 +09:00
Michael Keller
94cd650472
Merge pull request #9981 from mikeller/fix_max7456_delay_problems
Fixed the MAX7456 loop time problems introduced by #9948.
2020-07-26 15:31:16 +12:00
Michael Keller
5d591e3162
Merge pull request #9985 from mikeller/fix_osd_feature_disabling
Fixed disabling of OSD feature when OSD is disabled.
2020-07-08 00:57:26 +12:00
mikeller
1a30329c93 Fixed disabling of OSD feature when OSD is disabled. 2020-07-07 00:29:18 +12:00
mikeller
15d1df3c77 Removed DTerm RPM filter. 2020-07-06 19:33:06 +12:00
mikeller
cfc89c98a8 Fixed the MAX7456 loop time problems introduced by #9948. 2020-07-05 22:00:13 +12:00
Michael Keller
e96e63e252
Merge pull request #9963 from mikeller/remove_unused_header
Removed unused 'io/motors.h' header file.
2020-06-30 23:19:56 +12:00
Michael Keller
c1dc66b452
Merge pull request #9936 from mikeller/cleanup_rangefinder_support
Cleaned up rangefinder code, removed unsupported driver stubs.
2020-06-29 23:16:20 +12:00
mikeller
5b58c300b6 Removed unused 'io/motors.h' header file. 2020-06-29 18:49:06 +12:00
mikeller
9d4bab9396 Cleaned up rangefinder code, removed unsupported driver stubs. 2020-06-22 01:03:25 +12:00
Michael Keller
a8085bef8b
Merge pull request #9759 from etracer65/pid_init_separate
Split initialization from pid.c for flash savings
2020-06-22 00:35:42 +12:00
mikeller
98efe1a972 Fixed reporting of configured / detected OSD device. 2020-05-17 03:56:20 +12:00
Bruce Luckcuck
c06106e2d1 Split initialization from pid.c for flash savings
Move low performance requirements initialization code into pid_init.c and optimize that for size.

Saves 2688 bytes for target STM32F7X2.
2020-05-03 13:58:55 -04:00
Curtis Bangert
d76465e23a Relocated CMS Displayport init from telemetry to init 2020-04-19 15:48:56 -04:00
Bruce Luckcuck
ad0e7154a7 Split initialization from gyro.c for flash savings
Move low performance requirements initialization code into gyro_init.c and optimize that for size.
2020-03-13 10:08:11 -04:00
jflyper
1db460f164 [G4] MCO support 2020-02-16 15:21:49 +09:00
Michael Keller
97704dda58
Merge pull request #9444 from etracer65/gyro_native_sample_rate
Gyro native rate sampling, filtering, and scheduler restructuring
2020-02-05 23:21:56 +13:00
Bruce Luckcuck
f584780944 Gyro native rate sampling, filtering, and scheduler restructuring 2020-02-04 18:19:35 -05:00
jflyper
c172ab3193 Fix dashboard initialization order 2020-02-03 13:05:08 +09:00
mikeller
cd27b63b89 Exclude SWD pins from being initialised as pull up if unused. 2020-01-28 10:52:21 +13:00
jflyper
76288b6ce6 [H7][F7] Add unused pin handling 2020-01-21 12:19:37 +09:00
Michael Keller
f53d812fc8
[MSP] Correctly report the configured and active OSD type (#9333)
[MSP] Correctly report the configured and active OSD type
2020-01-14 11:42:06 +13:00
Matylitski Yury
548379bab0 fixed SITL target debug build and runtime segfaults. Added motorPwmDevice vTable functions and IOConfigGPIO stub 2020-01-12 23:16:25 +03:00
Alberto García Hierro
65f84f2c86 [MSP] Correctly report the configured and active OSD type
- Tell the OSD driver the type of displayPort, so it can be retrieved
later.
- Use OSD driver code instead of device specific code to handle
MSP_OSD_CONFIG response while minimizing driver specific code.
- Add flag for signaling the use of FrSky OSD (bit 3).
- Rename OSD_FLAGS_MAX7456_DETECTED to OSD_FLAGS_OSD_DEVICE_DETECTED.
Since we only support one OSD device type at a time, we can use the
same bit to signal wether the hardware has been detected.
2020-01-04 12:35:09 +00:00
Bruce Luckcuck
7061ef0706 Fix ESC protocol startup after rearranging MSP/OSD/CMS init
Fixes double ESC initialization.
2019-12-09 16:59:29 -05:00
Michael Keller
b18478f43e
Move MSP/OSD/CMS initialization to be near the end of the init… (#9258)
Move MSP/OSD/CMS initialization to be near the end of the init process
2019-12-05 13:36:12 +13:00
Bruce Luckcuck
7853782486 Move MSP/OSD/CMS initialization to be near the end of the init process
Helps prevent the USB VCP device from being initialized until the firmware is ready to accept connections. Previously the USB device would be initialized early in the process and the firmware still had lots of initialization following until it would be ready to accept connections. May help prevent connection failures if attempting to connect as soon as the serial port appears.
2019-12-03 09:33:58 -05:00
Bruce Luckcuck
04844bd5a1 Refactor common USB MSC code and improve activity LED
Eliminated the duplicated MSC functions in the architecture specific files and moved to a shared common.

Improved the activity indicating LED and made it consistent between onboard flash and sd card mass storage mode.
2019-12-02 22:08:19 -05:00
Bruce Luckcuck
ee3c0e4f97 Restructure flashfs MSC to prevent device timeout on MacOS
For devices using the 1Gb NAND flash the scanning phase that discovers the individual logs was taking to long resulting in the operating system thinking the mass storage device had become unresponsive. It is simply a factor of the larger flash size and the amount of time needed to scan all 2K blocks.

Restructured to scan the flash before initializing and starting the USB device. That way the mass storage device can start quickly and bee immediately ready for operating system requests.
2019-12-01 10:43:08 -05:00
Alberto García Hierro
37e66b3dda Add support for FrSky OSD
- Add displayWriteFontCharacter() for font writing, removing all max7456
specific code.
- Add displayIsReady() for asynchronous display initialization
- Add displayBeginTransaction()/displayCommitTransaction() for display
transactions, which allow performing complex drawing operations without
flickering
- Add displayGetCanvas(), which retrieves the canvas associated with a
display (if it has it)
- Add canvas implementation for pixel based access for a display
- Add FrSkyOSD driver and displayPort driver
- Enable FrSkyOSD driver for targets with flash > 256
- Rename max7456_symbols.h to osd_symbols.h
2019-11-30 22:06:36 +00:00
Michael Keller
096b9320d0 Fixed missing include in 'master'. 2019-11-29 15:58:02 +13:00
Michael Keller
c8b5edb415
Moved configuration validation into 'config.c'. (#9219)
Moved configuration validation into 'config.c'.
2019-11-29 12:47:29 +13:00
mikeller
6f92a1ce13 Fixed handling of SPI parameters for Unified Targets. 2019-11-24 22:10:08 +13:00
mikeller
99f77fa88d Moved configuration validation into 'config.c'. 2019-11-24 21:19:26 +13:00
mikeller
cc8b8d3bf6 Improved detection of upright / 'SMALL_ANGLE' state. 2019-11-18 14:09:06 +13:00
mikeller
ef556c0f59 Introduced 'baroStartCalibration()' / 'baroSetGroundLevel()' to make barometer code more self contained. 2019-11-17 23:34:10 +13:00
mikeller
a21d0f5d31 Fixed potentially incorrect calculation in ACC calibration if non-default cycle number is used. 2019-11-17 10:58:28 +13:00