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

19018 commits

Author SHA1 Message Date
blckmn
fbe266afd8 Adding uf2 semaphore files 2025-05-23 20:01:12 +10:00
blckmn
fb09d6b5d5 Merge branch 'make_uf2_support' into RP2350 2025-05-23 19:59:08 +10:00
blckmn
612cdac676 Merge branch 'pico-sdk' into RP2350 2025-05-23 19:58:18 +10:00
blckmn
9cc48c36d9 Merge branch 'master' into RP2350 2025-05-23 19:57:31 +10:00
blckmn
e0301dcfbb Wrong case 2025-05-23 19:38:16 +10:00
blckmn
1351ce1cac Further coderabbit suggestions 2025-05-23 19:34:11 +10:00
blckmn
404ebeeb33 Suggestions from coderabbitai 2025-05-23 19:19:15 +10:00
blckmn
1cda28e8d7 Use semaphore in directory for default goal recipe for target 2025-05-23 18:52:07 +10:00
blckmn
f26ae0ef92 Adding picotool build recipe in makefiles. 2025-05-23 18:44:43 +10:00
Eric Katzfey
da30581ceb
Initialized a local variable that could otherwise be used uninitialized (#14399) 2025-05-23 01:07:00 +02:00
blckmn
12062f6c5c As per coderabbit 2025-05-23 08:02:52 +10:00
blckmn
b19546e5dc Use url with git ext 2025-05-22 21:26:33 +10:00
blckmn
c0cec6eb3e Add pico-sdk as sub module 2025-05-22 21:26:13 +10:00
blckmn
28f898679a Removing pico-sdk (replace with module) 2025-05-22 21:24:27 +10:00
Mark Haslinghuis
aa8701ef87
Fix inevitable timer overflow (#14374)
* Fix beacon timer overflow

* fix possible overflow in rc_stats

* fix possible overflow in mixer.c

* fix possible overflow in osd.c

* Update src/main/osd/osd_warnings.c

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

* Update src/main/osd/osd_warnings.c

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

* Update src/main/rx/rc_stats.c

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

* fix typo

* Update src/main/osd/osd.c

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-22 00:12:24 +02:00
Eric Katzfey
b03b57bd90
Added missing GCC diagnostic push pragma (#14397)
Replaced faulty #pragma GCC diagnostic ignored "-Wunused-function" with the more elegant MAYBE_UNUSED macro
2025-05-21 15:53:43 +02:00
Eric Katzfey
51c8296f25
Added float specifier to literal to prevent compile error (#14396) 2025-05-21 13:48:36 +02:00
Git bot (blckmn)
6c127426bd Auto updated submodule references [21-05-2025] 2025-05-21 06:25:03 +00:00
blckmn
aae03a93b2 Merge remote-tracking branch 'betaflight/master' into RP2350 2025-05-21 13:24:26 +10:00
Jay Blackman
7073d2ccf8
PICO RP2350 updates (#14398) 2025-05-21 13:22:57 +10:00
Eric Katzfey
4c9c8106c8
Changed logical OR to bitwise OR in register value definitions (#14395)
for icm426xx SPI driver. Also fixed the incorrect bit setting for one
of the definitions
2025-05-21 00:39:54 +02:00
Git bot (blckmn)
0679832760 Auto updated submodule references [19-05-2025] 2025-05-19 06:25:03 +00:00
Git bot (blckmn)
8950483a6a Auto updated submodule references [18-05-2025] 2025-05-18 06:25:02 +00:00
Jay Blackman
45f311b3c1
Delete .github/workflows/nightly.yml (#14392) 2025-05-18 13:26:14 +10:00
heronprecision-1
7ef4e092c9
Increase the PINIO Limit to 8 (#14378)
* awful but it does it

* increased pinio limit to 8

* reverted erroneously modified files

* updated piniobox.c to mirror pinio changes

* updated array size

* Update src/main/pg/pinio.c

Conditional pinioN if greater than 4.

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

* Update src/main/pg/pinio.c

conditionally assign more pinio boxes if more than 4

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

* Update pinio.h

revert to default of 4 pinio pins

* Update src/main/pg/piniobox.c

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

---------

Co-authored-by: Anonymous <user@example.com>
Co-authored-by: Anonymous <email@address.example>
Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-17 22:10:11 +02:00
Jay Blackman
8f3c02f403
Update .coderabbit.yaml due to invalid parameter (#14393) 2025-05-17 20:49:12 +10:00
Jay Blackman
aa9fb836bb
Create .coderabbit.yaml (#14390) 2025-05-17 08:59:06 +10:00
Mark Haslinghuis
7d88e7d27f
Fix osd_esc_rpm_alarm (#14361)
* Fix osd_esc_rpm_alarm

* Should be >= ???

* Add edt condition to pass

* Revert 349
2025-05-16 06:51:29 +10:00
blckmn
b180cfc437 Merge branch 'master' into RP2350 2025-05-16 06:12:49 +10:00
mjs1441
b845d6dfd8
Add SYS_INCLUDE_DIRS to top level Makefile. (#14388)
Add directories in $(SYS_INCLUDE_DIRS) to the search path via -isystem.

This allows a workaround for https://github.com/raspberrypi/pico-sdk/issues/2451 by
using system headers, which are more tolerant of macro redefinitions.

Co-authored-by: Matthew Selby <matthewjselby@aol.com>
2025-05-16 06:11:29 +10:00
mjs1441
144314b820
Remove #ifdef USE_TIMER from motorConfig reset function. (#14389) 2025-05-16 03:39:59 +10:00
Matthew Selby
a305b8833b PICO: Comments on IOConfigGPIO 2025-05-15 11:34:55 +01:00
Matthew Selby
85a4fe8dcc PICO: add MOTOR pins. 2025-05-15 11:34:55 +01:00
Git bot (blckmn)
ad0c3ef97f Auto updated submodule references [15-05-2025] 2025-05-15 06:25:03 +00:00
Matthew Selby
de04ac1f11 PICO bus_spi_pico changes - work in progress...
Testing w/o DMA
Fix SPI_SPEED_20MHZ
Add GPIO pin ranges
Initial implementation of spiInternalInitStream and spiSequenceStart
 (mode, speed set up, based on STM32/bus_spi_ll.c)
spiCalculateDivider records numbers as calculated in pico-sdk spi_set_baudrate,
 for use later in spiCalculateClock.
2025-05-14 12:18:30 +01:00
Matthew Selby
17ac3d9895 PICO: Allow compilation with DEBUG=GDB (add dshot methods). 2025-05-14 12:18:30 +01:00
Matthew Selby
12ca97eacb PICO define away stdio_pico_stub.c. 2025-05-14 12:18:30 +01:00
Matthew Selby
1635dc806e PICO pin updates.
Add gpio_init call to IOConfigGPIO (now we can see LEDs flashing).
Add ranges of available GPIO pins for UART0, UART1 on RP2350A and RP2350B.
2025-05-14 12:18:30 +01:00
Matthew Selby
57bc7431b4 PICO updates to system.c, targets.
system.c don't want .vectors section or various handler functions that
are provided by pico-sdk crt0.
Add target/RP2350A files (for Pico2 prototyping).
2025-05-14 12:18:30 +01:00
Matthew Selby
da49a5e3da Add MCU_TYPE_RP2350A (for Pico2 prototyping). 2025-05-14 12:18:30 +01:00
Matthew Selby
f07cb9cc27 PICO: Build changes (makefiles, headers).
PICO.mk updates, tidy-ups, allow for PICO_trace
platform_mcu.h #include "pico.h" rather than messing around with addressmap.h (can do
since including as system headers now).
PICO/target/RP2350[AB]/target.h undef USE_MSP_DISPLAYPORT because won't compile debug
when USE_MSP_DISPLAYPORT defined without USE_OSD.
2025-05-14 12:18:30 +01:00
Matthew Selby
c46c3825a0 PICO: Linker script and flash config updates.
Linker script based on rp2350/memmap_default.ld from pico-sdk.
Fix to flash config (erase on sector boundaries).
2025-05-14 12:18:30 +01:00
Matthew Selby
22738b6492 Add SYS_INCLUDE_DIRS to top level Makefile.
Add directories in $(SYS_INCLUDE_DIRS) to the search path via -isystem.

This allows a workaround for https://github.com/raspberrypi/pico-sdk/issues/2451 by
using system headers, which are more tolerant of macro redefinitions.
2025-05-14 12:18:29 +01:00
blckmn
816700bc2d Merge branch 'master' into RP2350 2025-05-14 08:44:27 +10:00
mjs1441
f7c8b3a776
Add support for SPI_DEVICE_0 (#14384) 2025-05-14 04:38:35 +10:00
mjs1441
a98645b44a
Fix compiler errors if you remove -flto=auto from standard build flags (#14381) 2025-05-14 04:35:05 +10:00
hamza özkan
0136c5a54c
Update pwm_output_hw.c (#14385) 2025-05-14 04:30:14 +10:00
Petr Ledvina
f612b28a86
Use opaque struct to define linker symbols for eeprom (#14382)
This way code must be explicit when using linker-defined memory.
2025-05-13 12:02:28 +02:00
Leo Garcia
37c921cdf0
fix format overflow in blackboxVirtualBeginLog (#14373)
* cast largestLogFileNumber to 16bits to prevent format overflow

* Update src/main/blackbox/blackbox_virtual.c

remove uint16 cast

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

* Update src/main/blackbox/blackbox_virtual.c

use snprintf instead of strlen

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

---------

Co-authored-by: Petr Ledvina <ledvinap@gmail.com>
2025-05-12 19:34:57 +02:00
Git bot (blckmn)
32a7fbef5d Auto updated submodule references [10-05-2025] 2025-05-10 06:25:03 +00:00