1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00
Commit graph

19020 commits

Author SHA1 Message Date
Jay Blackman
dd45f9a7fe
PICO: Renamed MCU FAMILY to RP2350 (#14497) 2025-07-01 13:41:49 +10:00
Steve Evans
bc6f95928e
Pico GYRO_EXTI pin definition (#14494)
Define GYRO_1_EXTI_PIN
2025-06-30 18:51:28 +01:00
Jay Blackman
dd9a51a108
Move beeper pwm functions to platform. (#14478) (#14491) 2025-06-30 21:00:14 +10:00
Steve Evans
f21854cda1
PICO USE_LATE_TASK_STATISTICS (#14489) 2025-06-30 11:22:59 +10:00
Steve Evans
ac918d37fe
Add PICO EXTI support (#14488) 2025-06-30 11:22:26 +10:00
Steve Evans
9fed1f9ebb
Add support for SPI DMA (#14483) 2025-06-30 11:21:56 +10:00
blckmn
aeda0905c5 PICO: Minor dma channel claim update 2025-06-26 07:59:44 +10:00
blckmn
f11eea69ce Merge branch 'master' into RP2350 2025-06-26 07:47:24 +10:00
Jay Blackman
0d0c00f341
REFACTOR: Adding DMA_FIRST_HANDLER (#14474)
* REFACTOR: Adding DMA_FIRST_HANDLER

 dmaIdentifier_e could be zero based in the future and align to descriptor array index directly

Also removed unused DMA_INPUT_STRING

* Removed magic number following code rabbit review
2025-06-26 07:34:29 +10:00
blckmn
c284edb89c PICO: DMA Removing magic numbers 2025-06-25 04:56:29 +10:00
blckmn
4bb1edfba0 PICO: Adding DMA_FIRST_HANDLER for master compatibility 2025-06-25 04:54:33 +10:00
blckmn
62ad213878 PICO: Correct DMA index usage
//TODO: index / channel / identifier can be one and the same - need support for zero based
2025-06-25 04:00:22 +10:00
blckmn
6a95d4e13f PICO: Enabling DMA IRQ Channel 2025-06-25 03:11:59 +10:00
Git bot (blckmn)
35dd55f6d7 Auto updated submodule references [24-06-2025] 2025-06-24 06:25:03 +00:00
Kevin Plaizier
078ffafec1
Add 3+ IMU support (Gyro Fusion) (#14383)
* Allow for 3 gyros to be fused at once.

* Handle the case where no GYRO_COUNT is defined

* Fix accel init bug

* Fix bugs found by AI

* Fix compile time assert message

* Move to picking which IMU you want to enable, allow IMU that have the same scale and looprate to run together even if they aren't identical IMU.

* Fully support 8 IMU

* Fix suggestions, except for MSP all suggestions

* Fix bugs found by AI

* Update gyro_init

* Fix unit tests (feels wrong though)

* Allow MSP to update all gyro alignment

* resolve comments

* Only auto set up to 4 gyros in a config.

* Update MSP implementation

* Fix divide by 0 error

* Update src/main/target/common_post.h

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Handle case where gyro 1 does not exist

* Fix 426XX driver

* fix = logic in if statement

* Update src/main/msp/msp.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Update src/main/drivers/accgyro/accgyro_spi_icm426xx.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Apply ledvinap suggestions

* Fix detectedSensors initialization

* fix getGyroDetectedFlags

* Automatically handle GYRO_COUNT for up to 4 IMU

* better handle unit tests

* Backwards compatible with older config.h files

* Update src/main/sensors/gyro_init.c

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>

* Update src/main/target/common_pre.h

Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>

* Update src/main/sensors/gyro_init.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* Update src/main/sensors/gyro.c

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>

* This needs to be the case or unit tests fail, without this we cannot choose default gyro either.

* ledvinap suggestions

* whitespace

---------

Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
Co-authored-by: nerdCopter <56646290+nerdCopter@users.noreply.github.com>
2025-06-23 21:35:11 +02:00
blckmn
635b3c2de4 Merge remote-tracking branch 'betaflight/master' into RP2350 2025-06-23 16:11:51 +10:00
Lukas Lendvorsky
3370752442
Disable entering CMS menu when armed (#14470) 2025-06-23 02:15:28 +02:00
Jay Blackman
f45c5c5355
REFACTOR: More platform specific defines moved to platform (#14471) 2025-06-23 10:07:49 +10:00
Jay Blackman
5969e4c3ad
PICO: Initial multicore (using it for IRQs) (#14458)
* PICO: Initial multicore (using it for IRQs)

* Updated so any function can be pushed.

* Corrected includes

* Move to queues

* Removed header

* Adding check on command

- correcting core reset return

* Updates based on feedback

* Whitespace

* making static

* Removing comment
2025-06-23 10:07:22 +10:00
Steve Evans
e63dfb9a9a
Pico uart pin configure (#14473)
* Add empty uartPinConfigure() implementation for RP2350

* Fix tabs
2025-06-22 22:36:31 +01:00
Jay Blackman
cb6fc5aabd
REFACTOR: Removing platform specific defines from init.c (#14463)
* REFACTOR: Removing platform specific defines from init.c

* Further MCO improvements

* Adding default
2025-06-22 20:45:50 +10:00
blckmn
190abede9e Merge remote-tracking branch 'betaflight/master' into RP2350 2025-06-22 08:41:23 +10:00
mjs1441
3ab8931a71
Move serial_uart_pinconfig.c to platform. (#14462) 2025-06-22 03:27:01 +10:00
Git bot (blckmn)
82b18e5c48 Auto updated submodule references [20-06-2025] 2025-06-20 06:25:03 +00:00
blckmn
6848720f73 Merge branch 'master' into RP2350 2025-06-19 05:49:24 +10:00
mjs1441
2c378e96a0
CLI allow for DEFIO_PORT_PINS pins per port. (#14460) 2025-06-19 05:48:31 +10:00
Mark Haslinghuis
c56c350f29
Remove duplicate source file (#14454) 2025-06-19 04:54:50 +10:00
Jay Blackman
7fed816cb3
Removing -fsingle-precision-constant (#14444)
* Removing -fsingle-precision-constant

This is so that -Wdouble-promotion raises a warning as it should.

* Adding -Wunsuffixed-float-constants

* Not ideal.

* Moving to a named constant

* Named constant update

* Using M_PIf

* Updated following feedback from @ledvinap
2025-06-17 20:45:47 +02:00
Eric Katzfey
2f9ee19cbf
Added MAYBE_UNUSED to get rid of compiler warning (#14455)
Added UNUSED to get rid of compiler warning
2025-06-17 16:21:09 +02:00
Git bot (blckmn)
881db7fa68 Auto updated submodule references [17-06-2025] 2025-06-17 06:25:02 +00:00
Eric Katzfey
83f9de4247
Remove duplicate files from source.mk (#14448) 2025-06-16 13:21:25 +10:00
mjs1441
37dfce881b
Pico - fix getCycleCounter (#14446) 2025-06-15 18:32:41 +10:00
blckmn
6df77b6fe6 Merge remote-tracking branch 'betaflight/master' into RP2350 2025-06-15 05:07:17 +10:00
Eric Katzfey
a94083e77d
Removed extraneous parentheses to resolve compiler warning (#14441) 2025-06-15 04:24:31 +10:00
mjs1441
093aebecc6
PICO: UART for serial radio RX (#14442)
* PICO: work-in-progress serial_uart_pico and radio RX.

* PICO systemReset.

* RP2350B target changes for Laurel / uart / RadioRX / Gyro testing.

* PICO extra in target.h for testing BARO on Laurel.
2025-06-15 04:23:45 +10:00
mjs1441
c3fe02be20
Fix misplaced #else/#endif in accgyro_spi_icm456xx.c (#14445) 2025-06-15 04:22:31 +10:00
mjs1441
01ba378673
PICO: Performance - Enable FP copro and new RUN_FROM_RAM option (#14449) 2025-06-15 03:49:37 +10:00
Jay Blackman
0e2faff6dc
i2c changes required for I2CDEV_0 usage (#14443)
* i2c changes required for I2CDEV_0 usage

* Corrected offsets
2025-06-13 23:16:49 +02:00
blckmn
1fa9478e24 PICO: Board target is A 2025-06-12 05:47:05 +10:00
blckmn
6d7a6de3b1 PICO: Allow for specific core to be used for DMA interrupts 2025-06-12 05:28:53 +10:00
blckmn
c7d061041d PICO: i2cHardwareConfigure renamed to i2cPinConfigure
- possibly merge conflict introduced
2025-06-12 04:56:04 +10:00
blckmn
ab65694b57 Merge branch 'master' into RP2350 2025-06-12 04:52:17 +10:00
Mark Haslinghuis
6c07efce27
Remove unused rangefinder defines (#14429)
Cleanup
2025-06-11 17:11:16 +10:00
Jay Blackman
4769c2fcdf
PICO: Adding RP2350A MCU (#14437)
- allow for provision of libc
- correction for unused function in msp
2025-06-11 17:10:44 +10:00
mjs1441
a03ff788ae
Move bus_i2c_config.c to platform (#14439)
* Move bus_i2c_config.c to platform to allow different PICO implementation.
* Rename bus_i2c_config.c -> bus_i2c_pinconfig.c and i2cHardwareConfigure() -> i2cPinConfigure()
2025-06-11 17:10:03 +10:00
Mark Haslinghuis
ec91238cd8
Add support for IIM42652 (#14424) 2025-06-11 01:47:01 +02:00
mjs1441
422fd7e3e8
Pico rp2350updates for I2C (#14440) 2025-06-11 02:19:11 +10:00
Jay Blackman
1b1648d135
APM: Formatting changes for cleanup (#14431)
* APM: Formatting changes for cleanup

* Formatting inconsistency

* Missed in first round

* Adjusted as per @ledvinap
2025-06-10 19:37:03 +10:00
Git bot (blckmn)
e3267189cc Auto updated submodule references [10-06-2025] 2025-06-10 06:25:03 +00:00
blckmn
7722e728f3 PICO: Remove poisoned sprintf / snprintf issue in tinyUSB 2025-06-10 10:22:30 +10:00