Andrew Tridgell
8f3405d308
hwdef: added Pixhawk6X support
...
a new H753 based board similar to the Pixhawk5X
2022-06-15 17:28:40 +10:00
Andrew Tridgell
9efcad3adf
HAL_ChibiOS: added support for ALT_RAM_MAP on H7
...
for compatibility with the px4 H7 bootloader
2022-06-15 17:28:40 +10:00
Andrew Tridgell
308717d5eb
HAL_ChibiOS: enable ITCM and DTCM on H7 at startup
...
these may have been disabled by the px4 H7 bootloader
2022-06-15 17:28:40 +10:00
Andy Piper
ed6f7fb9e9
AP_HAL_ChibiOS: add support for MambaF405 2022 MK4
...
mark DMA on MambaF405US-I2C UARTs
correct RSSI pin on MambaF405US-I2C
2022-06-15 17:05:41 +10:00
Tom Pittenger
c28db6d91c
AP_HAL_ChibiOS: Durandal hwdef to enable Sagetech MXS driver by default for CI to test against
2022-06-14 07:10:17 -07:00
Tom Pittenger
07be987073
AP_HAL_ChibiOS: enable SagetechMXS driver by default only for CUAV-X7 and CubeOrange
2022-06-14 07:10:17 -07:00
mateksys
71b9e80c04
hwdef: added more PWM options in MatekL431-Dshot
2022-06-14 18:59:52 +10:00
Andy Piper
4068337971
AP_HAL_ChibiOS: correct UART RX stats
2022-06-14 10:25:17 +10:00
James Harton
b963be7ee8
AP_HAL_ChibiOS: Add on-board baro support to iFlight BeastH7 V2 target.
...
iFlight's own website says that there is no barometer on this device,
however on my one there is a DPS310 connected on I2C. This PR adds
support for the on-board baro but leaves it as optional.
2022-06-14 09:46:46 +10:00
Andrew Tridgell
085413865a
hwdef: added MatekL431-EFI
2022-06-09 21:10:37 +10:00
Andy Piper
fafa4158dd
AP_HAL_ChibiOS: hwdef for MambaH743v4
...
support BMI270 on MambaH743v4 and increase flash SPI clock
add bi-directional dshot to MambaH743
add README and pinout for MambaH743
2022-06-08 21:44:21 +10:00
Pierre Kancir
b909a110cd
AP_HAL_ChibiOS: fix executable permission and trailing whitespace
2022-06-08 08:16:42 +09:00
Pradeep
183352cdfe
AP_Periph: choose node stats - build files
...
Added - AP_Stat library and AP_STATS_ENABLED build options
2022-06-07 09:57:32 +10:00
Pradeep
03f7df39dd
hwdefs: choose node stats - CarbonixF405 and CarbonixL496
...
Added definition to enable node statistics
AP_Periph: choose node stats - CarbonixF405 and CarbonixL496
Added definition to enable node statistics
2022-06-07 09:57:32 +10:00
Andrew Tridgell
e807a74976
AP_HAL_ChibiOS: fixed use of configured() vs configured_in_storage()
2022-06-06 13:11:50 +10:00
bugobliterator
68f0863fb6
AP_HAL_ChibiOS: remove peripheral power down in bootloader
2022-06-03 16:41:22 +10:00
bugobliterator
2726de9b7a
AP_HAL_ChibiOS: split the CubeOrange hwdef into inc and dat so the inc can be properly reused
2022-06-03 16:41:22 +10:00
bugobliterator
026ca4adae
AP_HAL_ChibiOS: update to using H757 chipset in cubeorange+
2022-06-03 16:41:22 +10:00
Andy Piper
58b04db242
AP_HAL_ChibiOS: save a sliding window of frequency bins
2022-06-01 15:49:32 +01:00
bugobliterator
76d6170ec9
AP_HAL_ChibiOS: add mechanism to set register rw register using device name for SPI
2022-05-25 18:14:46 +10:00
Andy Piper
cabaef6173
AP_HAL_ChibiOS: add BLHeli_S ESC type and use it to control bitwidths
2022-05-25 17:06:08 +10:00
Peter Barker
2913c8d9e9
AP_HAL_ChibiOS: add support for SIM_OH_MASK (sim-on-hardware output enable mask
2022-05-24 10:35:32 +10:00
Andrew Tridgell
c8b328c3a1
HAL_ChibiOS: always start with safety enabled
...
we want it enabled during early boot to prevent incorrect ESC and
servo output
2022-05-22 14:58:12 +10:00
Peter Barker
e2f5443a1e
hwdef: skyviper-v2450: compile in only ICM20789
2022-05-22 12:11:45 +10:00
Andrew Tridgell
1d9abefbb1
AP_HAL_ChibiOS: more changes for 32 bit servo mask
2022-05-22 12:07:37 +10:00
Iampete1
7fc691d8d5
AP_HAL_ChibiOS: enable 32 servo outs
2022-05-22 12:07:37 +10:00
Iampete1
af58ca52c1
AP_HAL_ChibiOS: allocate_heap_memory use single malloc
2022-05-18 08:20:32 +10:00
murata
e007b21f9e
AP_HAL_ChibiOS: Console output can be disabled
2022-05-17 09:53:06 +10:00
Lokesh Ramina
adfb2f9cad
AP_HAL_Chibios: add_12Mhz_Clock_stm32F405
...
There was no option for 12Mhz for STM32F405
2022-05-12 17:40:21 +10:00
Peter Barker
7da0b3aaf2
AP_HAL_ChibiOS: allow airspeed backends to be compiled out
2022-05-10 09:02:51 +10:00
Andrew Tridgell
946a6ac4d0
HAL_ChibiOS: fixed RSSI from IOMCU analog pin 103
...
need to check new pin not old pin
2022-05-09 07:25:40 +10:00
Andrew Tridgell
bf9b803265
hwdef: added FlyingMoonF427 support
2022-05-08 18:41:39 +10:00
Andrew Tridgell
b9b5f055ef
hwdef: added FlyingMoonF407 board support
2022-05-08 18:41:39 +10:00
Andy Piper
884454cd88
AP_HAL_ChibiOS: add vector addition function
2022-05-04 17:05:51 +10:00
MallikarjunSE
bf9c0fffa7
hwdef: sierra-l431 hwdef update
2022-05-04 07:17:41 +10:00
Kirill Shilov
c414a021ae
AirLink-HWDEF: external peripherals enabled with logical high
2022-05-02 10:56:09 +10:00
Mirko Denecke
11a74cf28c
AP_HAL_ChibiOS: fix auxiliary typo
2022-05-02 10:55:08 +10:00
bugobliterator
46f9ae54af
AP_HAL_ChibiOS: fix CubeOrangePlus IMU rotation
2022-04-29 08:26:34 +10:00
Andrew Tridgell
8c3d2205cb
hwdef: added DShot peripheral for MatekL431
2022-04-28 13:56:16 +10:00
Andy Piper
7c4d0ad9f4
AP_HAL_ChibiOS: catch and handle STM32_DMA_ISR_DMEIF in bdshot.
2022-04-27 18:19:24 +10:00
Andrew Tridgell
06b9b804a1
hwdef: uncompress bootloader for HolybroG4_GPS
...
not enough ram to uncompress at runtime
2022-04-27 17:12:08 +10:00
Randy Mackay
1ee01577f6
AP_HAL: add GPIO::pin_to_servo_channel method
2022-04-26 15:19:28 +09:00
Randy Mackay
588a75a883
AP_HAL_ChibiOS: GPIO comment removes mention of BRD_PWM_COUNT
2022-04-26 15:19:28 +09:00
Andy Piper
119cde79a7
AP_HAL_ChibiOS: determine presence of disabled channels based on digital channels in a group
2022-04-25 15:55:54 +09:00
Andy Piper
df35cb6243
AP_HAL_ChibiOS: move bitwidths to AP_HAL
2022-04-20 17:39:29 +10:00
Andy Piper
eaa414bb0c
AP_HAL_ChibiOS: implement pseudo-flushing for buffered UARTS
2022-04-20 17:38:08 +10:00
yuri-rage
eaa62fb490
AP_HAL: remove BRD_PWM_COUNT reference
2022-04-20 07:57:57 +09:00
Andrew Tridgell
e73f868fc0
HAL_ChibiOS: disable fatal exceptions for DMA errors
...
this zeros-watchdog was caused by a SPI DMA error on STM32F405:
https://discuss.ardupilot.org/t/crash-with-4-2-0-beta-and-4-3-0-daily-bdshot/83297
we had incorrectly left these internal errors enabled when asserts
were not enabled. That led to a osalSysHalt()
without these we get an spi_fail internal error, caught by the
SPIDevice code
2022-04-19 21:52:53 +10:00
Walter Dunckel
b0c3fae662
AP_HAL_ChibiOS: add support for NucleoH755 board
...
This addition allows for cheap testing of a STM32H755 (dual core). This borrows the setup file STM32H757xx.py, as there are almost no changes between the chips. CRSF in and out, gps, ICM20948, BMP388, settings saving to on board flash all working.
PWM(3) pin change
Changed PWM(3) pin to one exposed on connector
2022-04-18 14:53:14 +10:00
QioTek
9909499a81
AP_HAL_ChibiOS: ICM4 series sensors as an alternative with IMU3.
...
AP_HAL_ChibiOS: ICM4 series sensors as an alternative with IMU3.
2022-04-18 11:01:14 +10:00
Andrew Tridgell
9f58c73780
hwdef: Added MatekL431-Rangefinder
2022-04-17 17:40:04 +10:00
Peter Barker
bca4fc9608
hwdef: disable serially-attached actuators on SkyViper
2022-04-17 09:10:10 +10:00
Andrew Tridgell
f5c3b56426
AP_HAL_ChibiOS: update for changed INS_NOTCH parameter name
2022-04-16 08:14:06 +10:00
mateksys
16a8400f85
AP_HAL_ChibiOS:add icm42688p as substitution
2022-04-13 20:59:07 +10:00
Peter Barker
e788941f70
hwdef: turn off various GPS backends on on AP_Periph
2022-04-13 18:23:51 +10:00
Peter Barker
04cc45de65
hwdef: remove non-ascii character from hwdef
...
Killing the custom build server
2022-04-13 12:14:17 +10:00
Peter Barker
73b86ccc04
AP_HAL_ChibiOS: allow RobotisServo protocol to be compiled out
2022-04-12 10:35:01 +10:00
Peter Barker
2e20e26403
AP_HAL_ChibiOS: allow Volz protocol to be compiled out
2022-04-12 10:35:01 +10:00
Henry Wurzburg
c770a2bd58
hwdef: minimal GPS support for Flywoo baords
2022-04-12 10:04:57 +10:00
Andy Piper
1a843f659f
AP_HAL_ChibiOS: bdshot version of MatekF765-Wing
2022-04-12 10:03:11 +10:00
Andy Piper
e89eb34d55
AP_HAL_ChibiOS: add I2C and compass backend to drivers in memory on H750
...
move more of EKF into memory on H750
move rc handling into memory on H750
disable double math on SPRacing H7
2022-04-12 09:19:45 +10:00
Michel Pastor
f4a3a65797
hwdef: add revo-mini-sd
2022-04-12 09:17:03 +10:00
Lokesh Ramina
729466358d
hwdef: added CarbonixF405 AP_Periph node
...
added hwdef files for CarbonixF405 board
2022-04-11 12:58:48 +10:00
Andy Piper
e0adbb978e
AP_HAL_ChibiOS: fix dshot timeout bug where the elapsed pulse is longer than the send time
...
dshot timeouts should be no longer than the pulse interval
use correct timestamp for dmar send time
2022-04-07 07:21:21 +10:00
Peter Barker
00de10d796
AP_HAL_ChibiOS: use structure for writing out WDOG,MON message
2022-04-06 21:54:15 +10:00
Peter Barker
717edae9ef
hwdef: fix redefinition of Solo values in CubeSolo/CubeGreen-Solo
...
adding fmuv3 into the list of firmwares we might run on Solo was a late
addition to the recent PRs. It was forgotten that the inheritance would
cause a redefition failure
2022-04-06 16:38:23 +10:00
Andrew Tridgell
37d8feb928
hwdef: disable GPS drivers on low flash boards
...
only leave uBlox enabled on boards that are running out of flash
2022-04-06 14:14:07 +10:00
Andrew Tridgell
c9bbfd94c0
hwdef: set AUTOBUILD_TARGETS None on eval boards
2022-04-06 14:13:44 +10:00
李孟晓
2d37bc9c78
AP_HAL_ChibiOS: CUAV-Nora: add usart3 support
2022-04-06 11:04:08 +10:00
Peter Barker
d2c3c578c2
hwdef: add hwdef for CubeOrange-SimOnHardware
2022-04-05 18:10:14 +10:00
Andrew Tridgell
392e80001f
HAL_ChibiOS: fixed H7 flash storage
...
this fixes the flash re-init problem when flash storage fills on
H7. It was caused by rejecting writes where one or more of the 32 byte
chunks was not all 0xff but was equal to the current data. That
happens when writing to the sector header in AP_FlashStorage
it also moves the interrupt disable inside the loop to allow for
other interrupts to run between blocks
2022-04-05 17:46:52 +10:00
Andrew Tridgell
093acc1577
HAL_ChibiOS: use 16 byte lines for flash storage on H7
...
this halves the number of flash writes needed, and makes flash storage
twice as space efficient on H7
On H7 we need to write 32 bytes at a time to flash, which corresponds
to 30 bytes of data in AP_FlashStorage. By using a 16 byte storage
line we don't waste as much space
2022-04-05 17:46:52 +10:00
Andrew Tridgell
055ee6ba82
HAL_ChibiOS: increase monitor thread stack by 512
...
this is needed to ensure that the log writes of MON and WDOG don't
overflow monitor thread stack
2022-04-05 17:46:52 +10:00
Andrew Tridgell
1b6620b42f
HAL_ChibiOS: added expected delays on flash writes
...
this prevents a long loop internal error on disarm after a large
amount of flash writes when armed on a board with flash storage
2022-04-05 17:46:52 +10:00
Andrew Tridgell
a0c867bce7
HAL_ChibiOS: disable interrupts during flash operations
...
we have now shown that interrupts being enabled during flash
operations can cause the infamous "68ms" bug, or watchdog when using a
32 bit timer on boards using flash for storage
The issue is quite repeatable with a load of a very large waypoint
file (over 500 waypoints) using "wp ftpload" in MAVProxy. This puts a
huge load on flash storage.
Our current working theory is that while doing flash writes for
storage on dual-bank we block access to only one bank, so if another
thread uses a timeout function with a short timeout while the flash
write is happening and chVTDoTickI calls code which crosses the flash
bank boundary then it can cause chVTDoTickI to violate the assumption
that no more than CH_CFG_ST_DELTA ticks pass while it is calculating
the value to set in the system timer. In that case we get a delay of a
full timer wrap, which is 68ms on boards with 16 bit timer and 70
minutes on boards with 32 bit timer
2022-04-05 17:46:52 +10:00
Andrew Tridgell
f6f6521b28
Revert "hwdef: changed MatekH743 to a 32 bit timer"
...
This reverts commit 7dc5911572
.
2022-04-05 17:46:52 +10:00
Andrew Tridgell
5ef9c5aaa5
HAL_ChibiOS: constrain more timer timeouts
2022-04-05 17:46:52 +10:00
Andrew Tridgell
4c977eb7a0
HAL_ChibiOS: prevent long timeouts in DShot
...
this prevents bad calculated timeouts in DShot. The timeout would
sometimes come out as 0xFFFFFFFF, which led to an assert and could
block the thread
This fix is meant to be minimilistic to allow it to be merged easily
into 4.2. A better fix would fix all the uint32_t wrap handling in
DShot
2022-04-05 17:46:52 +10:00
Lokesh Ramina
11b3eccf66
AP_Periph: Hwdef CarbonixL496 update
...
Modification of CarbonixL496 to add more features.
Features:
To use internal clock of MCU, Oscillator value is set to 0.
LED pin changed from PA13 to PA15
Enabled JTAG
Add interface to GPS and ADSB.
2022-04-05 09:57:02 +10:00
Andrew Tridgell
1c5a954b24
HAL_ChibiOS: incorrect class of class in uart TX timeout
...
need to call chEvtGetAndClearEventsI() as we are in a system lock
state
2022-04-04 16:59:38 +10:00
Mirko Denecke
c1e0e9c305
AP_HAL_ChibiOS: fix ms5611 probe for NucleoH743
2022-03-31 16:31:13 +11:00
Andy Piper
23f8a00619
AP_HAL_ChibiOS: use narrower bitwidths for dshot and LEDs to allow more accurate prescaler calculation
2022-03-30 17:11:09 +11:00
Henry Wurzburg
479b02e5b0
HWDEF: add SLCAN OTG port, correct defaults.param errors
2022-03-29 10:43:51 +11:00
Andy Piper
eb996f28cc
AP_HAL_ChibiOS: spro H7 extreme updates.
...
cannot currently use both IMUs on spro H7 extreme due to CPU load
2022-03-29 10:39:35 +11:00
Andy Piper
4fa0e275fd
AP_HAL_ChibiOS: fix ESCs constantly arming on rover with dshot commands
...
make sure debug will compile
take into account active channels when configuring bdshot
add channel mask debug output
correct set bdshot telemetry position at startup
make sure all channels in a bdshot group are pulled high to prevent spurious pulses
2022-03-29 10:29:31 +11:00
Peter Barker
29c2c40c41
hwdef: enable both OreoLED and Solo gimbal on fmuv3
...
for users running fmuv3 on their Solo
2022-03-29 08:24:59 +09:00
Peter Barker
a30f33a674
hwdef: enable both OreoLED and Solo gimbal on CubeOrange
...
for users who have replaced their CubeSolo with a CubeOrange
2022-03-29 08:24:59 +09:00
Peter Barker
f186f612f9
AP_HAL_ChibiOS: enable Solo Gimbal only on CubeGreen
2022-03-29 08:24:59 +09:00
Andrew Tridgell
7dc5911572
hwdef: changed MatekH743 to a 32 bit timer
...
the 68ms issue is still present on this board. Switching to a 32 bit
timer will fix it, but loses us the tonealarm support
2022-03-29 07:45:23 +11:00
Andrew Tridgell
4564140745
HAL_ChibiOS: display source of RC input
...
distinguish between IOMCU, RCInput with bytes and RCInput with pulses
2022-03-28 17:09:26 +11:00
Andrew Tridgell
b46b0d61a6
HAL_ChibiOS: switch between IOMCU and RCProt rapidly
...
keep the RCProtocol decoder going when IOMCU being used, allowing for fast failover
between IOMCU RC input and uart RC input
2022-03-28 17:09:26 +11:00
Andrew Tridgell
7947494cab
HAL_ChibiOS: prevent conflicting RC input
...
when we have RC from both IOMCU and from rcprotocol (eg. from
SERIALn_PROTOCOL=23) we need to only process one of them. This
prioritises IOMCU input
2022-03-24 16:09:43 +11:00
Andy Piper
458ff45fe6
AP_HAL_ChibiOS: correct channel offsets for dshot commands
...
Co-authored-by: Randy Mackay <rmackay9@yahoo.com>
2022-03-24 11:20:09 +09:00
Randy Mackay
5561a5e82e
AP_HAL_ChibiOS: reversible DShot fix
...
Co-authored-by: Andy Piper <github@andypiper.com>
2022-03-24 08:01:48 +09:00
MallikarjunSE
bf0ce19942
hwdef: RM3100 no false rotation
2022-03-24 07:47:11 +11:00
MallikarjunSE
549883772c
hwdef: RM3100 reversal mask
2022-03-24 07:47:11 +11:00
bugobliterator
2dceb9a3ed
AP_HAL_ChibiOS: ensure that common ram is selected for bootloader/app comms in STM32H7
2022-03-23 19:09:21 +11:00
bugobliterator
7abcf9ec46
AP_HAL_ChibiOS: add CubeOrangePlus
2022-03-20 07:23:10 -07:00
Andrew Tridgell
54e4c6e1be
hwdef: leave MatekL431 ROMFS uncompressed
...
this allows for bl update when low on memory
2022-03-19 12:06:04 +11:00
mateksys
35ed87a5db
AP_HAL_ChibiOS: add MatekL431 AP_Periph hwdef
2022-03-19 12:06:04 +11:00
Peter Barker
f7608c22da
AP_HAL_ChibiOS: set pwm output values in simstate object
2022-03-17 14:39:55 +11:00
Peter Barker
8b2f85756a
AP_HAL_ChibiOS: instantiate SIMState object in HAL
2022-03-17 14:39:55 +11:00
Andy Piper
ceef68e07b
AP_HAL_ChibiOS: allow H7 480Mhz clock speed to be configured in hwdef via MCU_CLOCKRATE_MHZ
2022-03-16 20:37:30 +11:00
Andy Piper
222717cc88
AP_HAL_ChibiOS: add KakuteH7-bdshot target
2022-03-15 10:18:58 +11:00
Peter Barker
470cb2caa2
AP_HAL_ChibiOS: turn autocal off for periphs
2022-03-15 08:52:37 +11:00
李孟晓
81b129d3b3
AP_HAL_ChibiOS: CUAVv5: use icm42688p instead of icm20602
2022-03-15 05:59:14 +11:00
AndKe
caaa5002ab
AP_HAL_ChibiOS: add OREOLED to CubeGreen
2022-03-14 09:19:37 +11:00
iainguilliard
ea0b6dfcb2
HAL_ChibiOS: add MatekF405-STD S7 PWM output
...
MatekF405-STD board has a pad for S7 PWM output from pin PB8 missing in hwdef
2022-03-13 14:00:26 +11:00
Peter Barker
e486671bb2
AP_HAL_ChibiOS: correct #ifndef nesting in periph defaults
2022-03-13 13:23:51 +11:00
bugobliterator
6a0c46d241
AP_HAL_Periph: assert clock is FDCANCLK is 80MHz for H7 boards
2022-03-11 18:13:54 +11:00
bugobliterator
633eb0db8b
AP_HAL_ChibiOS: move to using data_32 for copying into CANFD buffer
2022-03-11 18:13:54 +11:00
bugobliterator
faf0c0d7c3
AP_HAL_ChibiOS: set canfd bitrates using CANFD_SUPPORTED opt
2022-03-11 18:13:54 +11:00
bugobliterator
4bdbd37731
AP_HAL_ChibiOS: use datalength when copying payload into CAN Frames
2022-03-11 18:13:54 +11:00
bugobliterator
90a660b445
AP_HAL_ChibiOS: update clock tree to have FDCAN Base clock at 80MHz
2022-03-11 18:13:54 +11:00
bugobliterator
47dd964e63
AP_HAL_ChibiOS: add init method to take in separate canfd bitrate
2022-03-11 18:13:54 +11:00
Siddharth Purohit
72090d10da
AP_HAL_ChibiOS: add hwdef config to enable CANFD support
2022-03-11 18:13:54 +11:00
Siddharth Purohit
8aa047d876
AP_HAL_ChibiOS: add support for CANFD for H7 and G4
2022-03-11 18:13:54 +11:00
MallikarjunSE
228796d55b
AP_HAL_ChibiOS: Add Sierra-F9P support
2022-03-10 08:29:51 +11:00
murata
eb78a0a4a6
hwdef: Set the maximum number of barometric pressure sensors to 1
2022-03-08 14:21:31 -08:00
murata
60eb6ff1b7
hwdef: Maximum number of battery monitors is 1
2022-03-08 14:21:31 -08:00
Andrew Tridgell
74f1a8007d
hwdef: enable GPS_MOVING_BASELINE on FreeflyRTK and f303-GPS
...
this allows for F9P based dual-GPS yaw on DroneCAN peripherals with
auto-config
2022-03-09 07:52:42 +11:00
Andrew Tridgell
86c25b98d5
hwdef: added HolybroG4_GPS
2022-03-09 07:51:35 +11:00
Andrew Tridgell
93031e297d
HAL_ChibiOS: fixed min/max inversion in MCU voltage logging
2022-03-08 11:33:21 +11:00
MallikarjunSE
5cd1c7783d
hwdef: hwdef update with watchdog
2022-03-07 16:15:41 +11:00
MallikarjunSE
360ddb2aed
hwdef:update storage pages and enable watchdog
2022-03-07 16:15:41 +11:00
Andrew Tridgell
7999335727
hwdef: fixed buzzer on CUAV_GPS peripheral
2022-03-03 16:26:27 +11:00
Peter Barker
11f7cce978
AP_HAL_ChibiOS: allow specification of AUTOBUILD_TARGETS in hwdef files
2022-03-03 09:03:17 +11:00
Andy Piper
d589c0fc5e
AP_HAL_ChibiOS: normalize BeastH7v2 in line with BeastF7v2 definition
2022-03-02 15:46:17 +11:00
Evgeniy
32afbbdec4
AP_HAL_ChibiOS: BeastH7v2 board added
2022-03-02 15:46:17 +11:00
Andy Piper
ed952a0ea0
AP_HAL_ChibiOS: allow flash to be write-protected/unprotected on reboot
...
control protection support via HAL_FLASH_PROTECTION
provide support for flash protection on SPRacingH7
SPRacingH7 bootloader needs to use w25q-dtr
2022-02-24 10:19:07 +11:00
Henry Wurzburg
ac88f354fc
hwdef: update Swan-K1 with new harmonic notch mask to avoid errors
2022-02-23 18:45:51 +11:00
Andy Piper
02219ba3e5
AP_HAL_ChibiOS: ensure chan_offset is initialized before using it
2022-02-23 18:35:43 +11:00
Andy Piper
b6022ca5d4
AP_HAL_ChibiOS: add support for alternate alarm PWM group
...
account for inverted alarms and build on boards without PWM
enable alarm based on pwm
shutdown alarm channel if using a different one
2022-02-23 18:35:43 +11:00
Andy Piper
f840315aa4
AP_HAL_ChibiOS: clock H750 at 480Mhz when using 8Mhz, 16Mhz and 24Mhz crystals
2022-02-23 18:19:56 +11:00
Andrew Tridgell
96518c9eda
HAL_ChibiOS: added CPU defines to hwdef
...
needed for checks like defined(STM32F1)
2022-02-22 12:13:19 +11:00
Andrew Tridgell
6039b8012a
HAL_ChibiOS: define HAL_USE_SDMMC
2022-02-22 12:13:19 +11:00
Andrew Tridgell
638e20a0b9
HAL_ChibiOS: bring in hal.h where it is needed
2022-02-22 12:13:19 +11:00
Andrew Tridgell
25cc8203d8
HAL_ChibiOS: added CHIBIOS_BOARD_NAME define
2022-02-22 12:13:19 +11:00
Andrew Tridgell
fd8d28e23c
HAL_ChibiOS: reduced time in critical sections for CAN processing
2022-02-19 18:24:56 +11:00
Andrew Tridgell
7e18d85f7e
hwdef: added compat board ID for FreeFly RTK GPS
2022-02-17 14:37:41 +11:00
Andrew Tridgell
f2308e96a9
HAL_ChibiOS: added stm32_was_software_reset()
2022-02-17 14:37:41 +11:00
Andrew Tridgell
a641eb3a30
HAL_ChibiOS: support ALT_BOARD_ID
...
allow for compat with px4 board ID for the same board
2022-02-17 14:37:41 +11:00
Andy Piper
83ac78e969
AP_HAL_ChibiOS: add support for @SYS/timers.txt
...
move out prescaler calculation and use closest prescaler everywhere
include timer id in PWM groups
2022-02-16 15:28:04 +11:00
Nathan Costa
9f7aa715b1
AP_HAL_ChibiOS: add support for CAN/I2C switch
2022-02-16 13:25:58 +11:00
Andy Piper
7b15245efe
AP_HAL_ChibiOS: update SPRacingH7 Extreme hwdef and add README
...
add SPRacingH7 board layout
2022-02-15 11:32:52 +11:00
Andrew Tridgell
33ebc83a68
AP_HAL_ChibiOS: disable CAN filtering except on AP_Periph
...
this saves flash space and makes CAN forwarding for any bus without
reconfigure/reboot easy. CAN filtering is not useful in the main
flight controller firmware as we want to see nearly all packets
2022-02-12 16:36:05 +11:00
Andrew Tridgell
124c9d5d9b
HAL_ChibiOS: support mavcan message forwarding
2022-02-12 16:36:05 +11:00
Andy Piper
89ba955419
AP_HAL_ChibiOS: only change SD card on external flash boards
2022-02-09 12:47:55 +00:00
Andy Piper
48c21299f8
AP_HAL_ChibiOS: hwdef for SPRacingH7
...
hwdef for DevEBoxH7v2
pin definitions for STM32H750
add QSPI to DevEBox bootloader
add external flash to DevEBox
rename EXTERNAL_PROG_FLASH_MB to EXT_FLASH_SIZE_MB
Add support for EXT_FLASH_RESERVE_START_KB and EXT_FLASH_RESERVE_END_KB
Disable HAL_ENABLE_SAVE_PERSISTENT_PARAMS when there is no bootloader flash available
relax storage health status with SD card backend
don't check SD card health unless USE_POSIX
binary sections rearranged on external ram
manage RAMFUNC through ldscript and optimize function placement in external flash
inline timer functions
optimize placement of ChibiOS and functions in ITCM and AXI RAM
fix chibios features on bootloader build with external flash
change H750 memory layout
increase line storage for SD card based parameters
comment external flash linker script
move vtables into DTCM
update ram map for H757
enable crashdump support with external flash
correct bootloader pins and generator on SPRacingH7/DevEBoxH7v2
setup external flash reserve regions
allow different RAM_MAP for external flash on H750 and H757
2022-02-09 12:47:55 +00:00
MallikarjunSE
a4b5bf1f4f
hwdef: Update hwdef to have only mag and airspeed
2022-02-09 18:27:56 +11:00