Andrew Tridgell
006583d812
HAL_ChibiOS: fixed iomcu build with flash driver
2019-04-11 13:22:53 +10:00
Andrew Tridgell
7c726b2f42
HAL_ChibiOS: use hal.flash API
2019-04-11 13:22:53 +10:00
Andrew Tridgell
36f7116054
HAL_ChibiOS: implement flash driver
2019-04-11 13:22:53 +10:00
Andrew Tridgell
a767c15986
HAL_ChibiOS: change CUAVv5Nano default PWM count to 11
2019-04-08 08:21:39 -07:00
Andrew Tridgell
c6637fbe38
HAL_ChibiOS: fixed CUAVv5Nano uarts
2019-04-08 08:21:39 -07:00
Andrew Tridgell
ce4abf8dcb
HAL_ChibiOS: support for CUAVv5Nano board
...
F765 with no IOMCU
2019-04-08 08:21:39 -07:00
Andrew Tridgell
edd793c152
HAL_ChibiOS: fixed fallback to microSD for storage
...
this is used when FRAM fails on a board with microSD support. The
double init caused the validate() in the FATFS code to fail
2019-04-07 13:37:57 +10:00
Andrew Tridgell
d59cf15594
HAL_ChibiOS: enable heater pin on Pixhawk4Pro
2019-04-06 10:08:39 +11:00
Siddharth Purohit
7b54103271
HAL_ChibiOS: set pwm select pins high for 3.3V PWMout on startup
2019-04-01 21:30:12 +11:00
Siddharth Purohit
051842ea34
HAL_ChibiOS: add support for PWM Voltage level selection on CubeYellow and CubeOrange
2019-04-01 21:30:12 +11:00
Tom Pittenger
91b0650765
AP_HAL_ChibiOS: rename dataflash to logger
2019-03-28 16:40:58 +11:00
Andrew Tridgell
591e2ebeea
HAL_ChibiOS: remove unused config files
...
these do not build correctly
2019-03-15 20:08:26 +11:00
Andrew Tridgell
d942b64584
HAL_ChibiOS: fixed NucleoH743 build
2019-03-15 20:08:26 +11:00
Andrew Tridgell
bf0a4a23b2
HAL_ChibiOS: fixed build of crazyflie2
2019-03-15 20:08:26 +11:00
Andrew Tridgell
b754d56ecb
HAL_ChibiOS: fixed revo-mini build
2019-03-15 11:54:57 +11:00
Andrew Tridgell
69edd5a544
HAL_ChibiOS: fixed typos in hwdef.dat files
2019-03-15 11:54:57 +11:00
Andrew Tridgell
cd27e3022f
HAL_ChibiOS: check for prefix match on peripherals
2019-03-15 11:54:57 +11:00
Andrew Tridgell
3fd3e88d04
HAL_ChibiOS: fixed typo
...
thanks to Malcolm Churn for noticing
2019-03-15 08:51:52 +11:00
Andrew Tridgell
b3f48a1477
HAL_ChibiOS: added CS line for Pixhawk4Pro temp sensor
2019-03-14 16:10:40 +11:00
Andrew Tridgell
2842063146
HAL_ChibiOS: optimize CubeYellow build
...
and fixed comment in CubeOrange
2019-03-11 12:40:21 +11:00
Andrew Tridgell
59652ad147
HAL_ChibiOS: added more IMU devices for Hex Cube boards
2019-03-11 12:40:21 +11:00
Andrew Tridgell
7577ebb33e
HAL_ChibiOS: added bootloader hwdef for mindpx-v2
2019-03-11 09:58:12 +11:00
Andrew Tridgell
f7b6f9d70b
HAL_ChibiOS: added retries to flash based storage
...
this prevents a single flash write error from causing parameter reset
2019-03-11 09:52:19 +11:00
Andrew Tridgell
63895d8b0c
HAL_ChibiOS: setup dummy pointers for H7 SPI
2019-03-10 21:53:06 +11:00
Andrew Tridgell
1414988870
HAL_ChibiOS: use spiSend/spiReceive
...
this fixes an issue with microSD on F405.
2019-03-10 21:53:06 +11:00
Andrew Tridgell
26d1371d25
HAL_ChibiOS: separate out DMA allocation for sdcard IO
...
this fixes an issue with DMA to SPI6 on STM32H7. On the H7 SRAM4 can
be used for DMA and BDMA to all devices except for SDMMC which uses
IDMA.
by separating out DMA of sdcard data from other data we can arrange
for DMA to all devices to work
2019-03-09 07:33:47 +11:00
Andrew Tridgell
a7c91d1cb4
HAL_ChibiOS: show all SPI clocks
2019-03-09 07:33:47 +11:00
Siddharth Purohit
fef81b6381
HAL_ChibiOS: add support for new main sensors
2019-03-06 20:47:10 +11:00
Andrew Tridgell
160de969a5
HAL_ChibiOS: simplify H7 clock tree setup
...
and push more peripherals to max of 100MHz
2019-03-04 21:42:07 +11:00
Andrew Tridgell
5bcfe41d1f
HAL_ChibiOS: push H7 clock to 400MHz
2019-03-04 19:38:06 +11:00
Andrew Tridgell
a59e1d0e0f
HAL_ChibiOS: fixed H7 dma sharing between BDMA and DMA
...
the BDMA and DMA controllers have separate namespaces for streams, so
we can allocate a lot more streams than we were
2019-03-02 20:50:59 +11:00
Andrew Tridgell
c7ca6d77c7
HAL_ChibiOS: H7 doesn't need a DMA mapping for SDMMC
...
it uses a dedicated internal DMA controller in the SDMMC peripheral
2019-03-02 20:50:59 +11:00
Andrew Tridgell
6f07d804b9
HAL_ChibiOS: adjust Pixhawk4Pro VBUS and DMA priority
2019-03-02 20:50:59 +11:00
Andrew Tridgell
603d9f6907
HAL_ChibiOS: fixed typo in ITCM base address
2019-03-02 09:01:20 +11:00
Andrew Tridgell
4c12ba4c2c
HAL_ChibiOS: fixed SDMMC IRQ priority
2019-03-01 11:39:27 +11:00
Andrew Tridgell
7e1048c89b
HAL_ChibiOS: enable UART inversion on H7
2019-03-01 11:39:27 +11:00
Andrew Tridgell
2f833c92d3
HAL_ChibiOS: enable SDMMC for CubeOrange
2019-03-01 11:39:12 +11:00
Andrew Tridgell
37010a568e
HAL_ChibiOS: enable SDMMC on Pixhawk4Pro
2019-03-01 11:39:12 +11:00
Andrew Tridgell
e192bc6c10
HAL_ChibiOS: adjust H7 clocks, and enabled SDMMC
2019-03-01 11:39:12 +11:00
Andrew Tridgell
ff28337bfd
HAL_ChibiOS: fixed typos
2019-03-01 07:27:47 +11:00
Andrew Tridgell
64681cb05c
HAL_ChibiOS: allocate threads from any heap
...
this fixes a failure on MatekF405-Wing where it fails to allocate the
SPI thread for the IMU
2019-02-27 11:54:28 +11:00
Andrew Tridgell
3a2227c912
HAL_ChibiOS: updated IDs for CubeOrange
2019-02-26 18:21:13 +11:00
Andrew Tridgell
ff4614b399
HAL_ChibiOS: rename CubeH7 to CubeOrange
2019-02-26 18:21:13 +11:00
Andrew Tridgell
94abc5a54d
HAL_ChibiOS: fixed DShot on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
26e76e51ed
HAL_ChibiOS: fixed H7 build with older compilers
2019-02-26 16:18:26 +11:00
Andrew Tridgell
70930cca29
HAL_ChibiOS: fixed bootloader build with gcc 4.9
2019-02-26 16:18:26 +11:00
Andrew Tridgell
723e8a23fc
HAL_ChibiOS: enable HSE_BYPASS for NucleoH743
2019-02-26 16:18:26 +11:00
Andrew Tridgell
f8aeeb0333
HAL_ChibiOS: adjust clock tree to be more consistent
...
use 96MHz for all peripheral buses
2019-02-26 16:18:26 +11:00
Andrew Tridgell
5dd82f1d63
HAL_ChibiOS: adjust 16MHz HSE settings for H743 (CubeH7)
2019-02-26 16:18:26 +11:00
Andrew Tridgell
b0f4494c4a
HAL_ChibiOS: fixed DMA on SPI for Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
312597ac20
HAL_ChibiOS: fixed default batt2 pins for fmuv5
2019-02-26 16:18:26 +11:00
Andrew Tridgell
584e36e360
HAL_ChibiOS: switch Holybro to their own VID
2019-02-26 16:18:26 +11:00
Andrew Tridgell
9966fbea0f
HAL_ChibiOS: fixed bootloader build error
2019-02-26 16:18:26 +11:00
Andrew Tridgell
8e745f74fb
HAL_ChibiOS: support SPI6 on Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
75cd20aea4
HAL_ChibiOS: handle DMAMUX2 on H7
...
with BDMA
2019-02-26 16:18:26 +11:00
Andrew Tridgell
e43ad56920
HAL_ChibiOS: fixed Pixhawk4Pro battery defaults
2019-02-26 16:18:26 +11:00
Andrew Tridgell
87e7ea368f
HAL_ChibiOS: fixed battery monitoring and buzzer for Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
542372014e
HAL_ChibiOS: enable SPI5 on Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
778d892fc2
HAL_ChibiOS: fixed dma resolved for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
bf783e73ab
HAL_ChibiOS: use polled SPI for Pixhawk4Pro for now
...
and disable sensors rail till later in startup
2019-02-26 16:18:26 +11:00
Andrew Tridgell
807d9e4b92
HAL_ChibiOS: added optional polled SPI mode
2019-02-26 16:18:26 +11:00
Andrew Tridgell
bd47aba5ca
HAL_ChibiOS: reduced delay time in main loop to 50us
...
this allows for faster loop rates, and seems to be enough in testing
2019-02-26 16:18:26 +11:00
Andrew Tridgell
e92c66418d
HAL_ChibiOS: fixed bouncebuffer code on STM32F7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
a3e69e715d
HAL_ChibiOS: avoid doing one-way SPI transfers
...
these transfers use dummy bytes in the hal driver, which may not be in
DMA safe memory, so best to avoid them
2019-02-26 16:18:26 +11:00
Andrew Tridgell
dad1774330
HAL_ChibiOS: fixed channel selection for F4/F7 uart driver
2019-02-26 16:18:26 +11:00
Andrew Tridgell
cda1959629
HAL_ChibiOS: added support for more flexible memory regions
...
this allows for an arbitrary number of memory regions, with each one
flagged as DMA safe, fast or normal
2019-02-26 16:18:26 +11:00
Andrew Tridgell
5f88340919
HAL_ChibiOS: fixed flash build warning
2019-02-26 16:18:26 +11:00
Andrew Tridgell
8a40ee8132
HAL_ChibiOS: fixed idle wait on H7 flash program
2019-02-26 16:18:26 +11:00
Andrew Tridgell
1d6c877c3c
HAL_ChibiOS: set board type on PH4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
6177129e41
HAL_ChibiOS: fixed typo in dma_resolver.py
2019-02-26 16:18:26 +11:00
Andrew Tridgell
4e067ee3cd
HAL_ChibiOS: fixed DMA on TIM12 for Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
dd835f5fce
HAL_ChibiOS: optimize for speed on more boards
2019-02-26 16:18:26 +11:00
Andrew Tridgell
34a7812416
HAL_ChibiOS: use -O3 on boards with 2M flash
2019-02-26 16:18:26 +11:00
Andrew Tridgell
b07ba37359
HAL_ChibiOS: pass optimization to ChibiOS build
2019-02-26 16:18:26 +11:00
Andrew Tridgell
77d4e1f796
HAL_ChibiOS: removed ID_ANY streams for H7
...
use generated map instead
2019-02-26 16:18:26 +11:00
Andrew Tridgell
ee1d2e8edb
HAL_ChibiOS: adjust H743 DMA settings
2019-02-26 16:18:26 +11:00
Andrew Tridgell
cb77b06460
HAL_ChibiOS: generate a dma map for H7
...
this allows for DMA sharing, allowing for more peripherals with DMA
2019-02-26 16:18:26 +11:00
Andrew Tridgell
423ad60c47
HAL_ChibiOS: enable all DMAs on Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
718cf4377d
HAL_ChibiOS: reduce DMA count until we can share
2019-02-26 16:18:26 +11:00
Andrew Tridgell
0c01375799
HAL_ChibiOS: enable IOMCU for CubeH7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
9647a68c9e
HAL_ChibiOS: fixed UART RX DMA for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
6422068e6b
HAL_ChibiOS: fixed analog input on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
efc8da9f9a
HAL_ChibiOS: enable TX DMA on uarts on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
231117e9b1
HAL_ChibiOS: invalidate before read on rx, not on DMA setup
...
more efficient, as we only invalidate what was used
2019-02-26 16:18:26 +11:00
Andrew Tridgell
071d5e01af
HAL_ChibiOS: added DMAMUX channel assignment calls
2019-02-26 16:18:26 +11:00
Andrew Tridgell
f4e31ce65b
HAL_ChibiOS: added more cache flush ops
2019-02-26 16:18:26 +11:00
Andrew Tridgell
46787fe7d8
HAL_ChibiOS: adjust clocks for H743
2019-02-26 16:18:26 +11:00
Andrew Tridgell
8e52ed4e9b
HAL_ChibiOS: update Pixhawk4Pro hwdef
2019-02-26 16:18:26 +11:00
Andrew Tridgell
b662adf8cc
HAL_ChibiOS: setup sensors on NucleoH743
2019-02-26 16:18:26 +11:00
Andrew Tridgell
c0e47754fa
HAL_ChibiOS: enable more peripherals on CubeH7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
bd27d7fc26
HAL_ChibiOS: fixed build on F4
2019-02-26 16:18:26 +11:00
Andrew Tridgell
d6bedc3bdf
HAL_ChibiOS: use ifndef on more peripheral types
2019-02-26 16:18:26 +11:00
Andrew Tridgell
6fb40a9713
HAL_ChibiOS: set FPU=hard if not set elsewhere
2019-02-26 16:18:26 +11:00
Andrew Tridgell
f753669a58
HAL_ChibiOS: improved check for DTCM ram
2019-02-26 16:18:26 +11:00
Andrew Tridgell
57c573552c
HAL_ChibiOS: check for logger instance before use
2019-02-26 16:18:26 +11:00
Andrew Tridgell
7c61d66d75
HAL_ChibiOS: fixed SPI clocks on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
ca221e7e7a
HAL_ChibiOS: cleanup shared DMA code
2019-02-26 16:18:26 +11:00
Andrew Tridgell
dd8115c9b4
HAL_ChibiOS: check for already allocated TX dma in UART driver
2019-02-26 16:18:26 +11:00
Andrew Tridgell
a4687930b0
HAL_ChibiOS: enable FRAM for storage
2019-02-26 16:18:26 +11:00
Andrew Tridgell
37bcd6e7d8
HAL_ChibiOS: default to timer 5 for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
d96142a37e
HAL_ChibiOS: allow double allocate call in RCOutput
2019-02-26 16:18:26 +11:00
Andrew Tridgell
c02a271c8a
HAL_ChibiOS: fixed shared DMA for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
4c7fa7c6fb
HAL_ChibiOS: make SPI clock test non-blocking
2019-02-26 16:18:26 +11:00
Andrew Tridgell
e6b41fbe0b
HAL_ChibiOS: added initial CubeH7 hwdef
2019-02-26 16:18:26 +11:00
Andrew Tridgell
e581be8df7
HAL_ChibiOS: optionally disable DCache on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
46cb506a22
HAL_ChibiOS: added cache management for H7 in bouncebuffer code
2019-02-26 16:18:26 +11:00
Andrew Tridgell
50b7b7beb5
HAL_ChibiOS: disable DTCM on H7 for now
...
DTCM doesn't allow for DMA yet
2019-02-26 16:18:26 +11:00
Andrew Tridgell
ff21508ce8
HAL_ChibiOS: ensure 32 byte alignment for DMA on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
33699d4f4a
HAL_ChibiOS: fixed shared_dma for H7
...
stream ID any doesn't need to be locked
2019-02-26 16:18:26 +11:00
Andrew Tridgell
c36f677c94
HAL_ChibiOS: initial hwdef for Pixhawk4Pro
2019-02-26 16:18:26 +11:00
Andrew Tridgell
5faec2f869
HAL_ChibiOS: removed HSE bypass for NucleoH743
...
not needed any more
2019-02-26 16:18:26 +11:00
Andrew Tridgell
0691e23219
HAL_ChibiOS: setup some sensors on NucleoH743
2019-02-26 16:18:26 +11:00
Andrew Tridgell
4b01e2c3b3
HAL_ChibiOS: fixed clock tree for no LSE on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
3c9ba02ce9
HAL_ChibiOS: fixed H7 flash
2019-02-26 16:18:26 +11:00
Andrew Tridgell
8c55f7bc49
HAL_ChibiOS: enable debug on SD7 for bootloader for NucleoH743
2019-02-26 16:18:26 +11:00
Andrew Tridgell
599a1a3d67
HAL_ChibiOS: adapt analog driver for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
52b47e499b
HAL_ChibiOS: fixed H7 clock tree for ADC driver
2019-02-26 16:18:26 +11:00
Andrew Tridgell
de335f14d7
HAL_ChibiOS: fixed GPIO init for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
1fa0a2eeca
HAL_ChibiOS: fixed peripheral enables on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
acf77ba49a
HAL_ChibiOS: fixed dma resolver for H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
d9c888ab45
HAL_ChibiOS: port SPI, I2C and UART drivers to H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
ae448a6932
HAL_ChibiOS: enable DMA checking on H7
2019-02-26 16:18:26 +11:00
Andrew Tridgell
51b4d54f70
HAL_ChibiOS: disable show_stack_usage in bootloader
2019-02-26 16:18:26 +11:00
Andrew Tridgell
5201fdf653
HAL_ChibiOS: adjust for changed flash API
2019-02-26 16:18:26 +11:00
Andrew Tridgell
565706cf7e
HAL_ChibiOS: fixed H7 flash handling
2019-02-26 16:18:26 +11:00
Andrew Tridgell
c2746ca9f9
HAL_ChibiOS: simplify H7 hwdef.dat
2019-02-26 16:18:26 +11:00
Andrew Tridgell
84ac98622c
HAL_ChibiOS: fixed charset issue in H7 database
2019-02-26 16:18:26 +11:00
Andrew Tridgell
227ecc53ac
HAL_ChibiOS: support mcuconf for STM32H7 MCU
2019-02-26 16:18:26 +11:00
Andrew Tridgell
972ae519a6
HAL_ChibiOS: added minimal hwdef for STM32H743 Nucleo board
2019-02-26 16:18:26 +11:00
Andrew Tridgell
aab911ac50
HAL_ChibiOS: added hwdef database for STM32H743
2019-02-26 16:18:26 +11:00
Andrew Tridgell
1b06b0f41c
HAL_ChibiOS: fixed F765 build
2019-02-26 16:18:26 +11:00
Andrew Tridgell
ceb0ec70f9
HAL_ChibiOS: disable pipes API
...
not used
2019-02-26 16:18:26 +11:00
Andrew Tridgell
bbd25350eb
HAL_ChibiOS: support ChibiOS kernel major 6
...
preparing for STM32H7 support
2019-02-26 16:18:26 +11:00
Andrew Tridgell
908b444a50
HAL_ChibiOS: update halconf for VER_7_0 API
2019-02-26 16:18:26 +11:00
Andrew Tridgell
247bb433ec
HAL_ChibiOS: update chconf.h for VER_6_0 API
2019-02-26 16:18:26 +11:00
Andrew Tridgell
17d804f051
HAL_ChibiOS: fixed GPIO numbering for KakuteF4
2019-02-22 11:34:43 +11:00
Stephen Dade
de37e2e179
HAL_ChibiOS: Corrected servo output order for KakuteF4
2019-02-22 11:34:43 +11:00
Andrew Tridgell
70a10c6375
HAL_ChibiOS: adjust TBS-F7 bootloader setup
2019-02-22 10:27:17 +11:00
Andrew Tridgell
5319fbb52b
HAL_ChibiOS: enable heater pin on TBS-Colibri-F7
2019-02-22 10:27:17 +11:00
Andrew Tridgell
dde97d2b0e
HAL_ChibiOS: support FMU heater pins
2019-02-22 10:27:17 +11:00
Andrew Tridgell
27a1fec911
HAL_ChibiOS: TBS-F7 is active low on sd power
2019-02-22 10:27:17 +11:00
Andrew Tridgell
94bace91a4
HAL_ChibiOS: bring up sensors rail after boot on TBS F7
...
this prevents a reset loop on GPIO config
2019-02-22 10:27:17 +11:00
Andrew Tridgell
025bd7e0d8
HAL_ChibiOS: added support for TBS-Colibri-F7
...
This is a fmuv5 board varient
2019-02-22 10:27:17 +11:00
Peter Barker
8cfedd8b46
AP_HAL_ChibiOS: implement 'uint16_t millis16'
2019-02-19 11:17:04 +11:00
Andrew Tridgell
54ffeef20e
HAL_ChibiOS: fixed pixhawk4 i2c bus numbers
2019-02-12 15:20:36 +11:00
Andrew Tridgell
5ab75b5ccb
HAL_ChibiOS: updated Pixhawk4 pinout
2019-02-12 15:17:27 +11:00
Tom Pittenger
548a579f18
AP_HAL_ChibiOS: unify singleton naming to _singleton and get_singleton()
2019-02-10 19:09:58 -07:00
Andrew Tridgell
ee97f0dccd
HAL_ChibiOS: setup power brick on mini-pix by default
2019-02-10 19:51:51 +11:00
Andrew Tridgell
bb76143095
HAL_ChibiOS: fixed mini-pix uart order
2019-02-04 08:21:58 +11:00
Siddharth Purohit
2792f015b9
HAL_ChibiOS: disable SLCAN for minimize feature enabled
2019-01-29 13:40:35 +09:00
Andrew Tridgell
ff52ceabba
HAL_ChibiOS: fixed default volt and current pins for VRBrain
2019-01-24 18:41:38 +11:00
LukeMike
e15d2c0f89
HAL_ChibiOS: added ChibiOS configuration of VR Brain 5.4
2019-01-24 18:41:38 +11:00
LukeMike
33f7f5b7b6
HAL_ChibiOS: added ChibiOS configuration for VR Core 1.0
2019-01-24 18:41:38 +11:00
LukeMike
f615ab9a0a
HAL_ChibiOS: added ChibiOS configuration for VR Brain 5.1
2019-01-24 18:41:38 +11:00
LukeMike
db61e50fe8
HAL_ChibiOS: fixed USB_PRODUCT for VR Brain 5.2
2019-01-24 18:41:38 +11:00
Siddharth Purohit
e12cb58b21
HAL_ChibiOS: run code formatter on CANSerialRouter
2019-01-23 15:57:05 +11:00
Siddharth Purohit
e1a9094bf6
HAL_ChibiOS: CANSerialRouter allow for changing serial port for the same boot
2019-01-23 15:57:05 +11:00
Siddharth Purohit
a6b01901f1
HAL_ChibiOS: flush serial bus during switching to and from SLCAN
2019-01-23 15:57:05 +11:00
Siddharth Purohit
664c952460
HAL_ChibiOS: disable code for CAN for non UAVCAN supported
2019-01-23 15:57:05 +11:00
Siddharth Purohit
f6d165d8c1
HAL_ChibiOS: CANSerialRouter unlock the port in timer
2019-01-23 15:57:05 +11:00
Siddharth Purohit
b5fbdc9888
HAL_ChibiOS: invoke serial data event signal for non dma ports as well
2019-01-23 15:57:05 +11:00
Siddharth Purohit
32a71cef92
ChibiOS: add support for timeout and closing SLCAN
2019-01-23 15:57:05 +11:00
Siddharth Purohit
5cefd251f9
ChibiOS: add CAN to Serial bus router
2019-01-23 15:57:05 +11:00
Siddharth Purohit
8f964b08b0
ChibiOS: move CAN driver code into HAL
2019-01-23 15:57:05 +11:00
Andrew Tridgell
18e97bd895
HAL_ChibiOS: fixed CAN on Pixhawk4 and PH4-mini
...
the silent pins floating disabled CAN
2019-01-23 13:24:13 +11:00
Andrew Tridgell
f98bfb1a35
HAL_ChibiOS: enable flash logging on Omnibus and speedybeef4
2019-01-23 09:00:42 +11:00
Andrew Tridgell
c9bab2f36e
HAL_ChibiOS: enable dataflash logging on AirbotF4
2019-01-21 21:57:21 +11:00
Andrew Tridgell
7219ec3482
HAL_ChibiOS: enabled df logging on revo and sparky2
2019-01-21 21:57:21 +11:00
Andrew Tridgell
2882e5d5e1
HAL_ChibiOS: enable dataflash logging on KakuteF4
2019-01-21 21:57:21 +11:00
Andrew Tridgell
2765f6e8f0
HAL_ChibiOS: setup APJ board IDs in environment
2019-01-19 17:19:41 +11:00
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
2019-01-18 18:08:20 +11:00
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
2019-01-18 18:08:20 +11:00
Andrew Tridgell
b8aa6e5834
HAL_ChibiOS: rename VRBrain hwdef folders
...
nicer names in fw download
2019-01-18 11:49:19 +11:00
LukeMike
aa0a2aaba2
HAL_ChibiOS: final base configuration of the Brain VR Micro Brain 5.1.
...
- Bootloader (32k) - Tested
- 3 UART (GPS, Telemetry and AUX - debug enable on Telemetry) - Tested
- MS5611 driver - Tested
- MPU600 driver - Tested
- HMC5883 External - Tested
- SD Card - Tested
- Parameters on Flash (32k reserved) - Tested
- Buzzer (no timer available for tonealarm) - Tested
- External LEDs (Arm and GPS) - Tested
- OnBord LEDs - Tested
- 2 Relay (from 33 to 34) - Tested
- Voltage Battery Monitor - Tested
- 14 PWM available (GPIO mapped from 50 to 63) - Tested
2019-01-18 11:49:19 +11:00
LukeMike
9f3b57f7eb
HAL_ChibiOS: final base configuration of the Brain VR board 5.2.
...
- Bootloader (16k) - Tested
- 3 UART (GPS, Telemetry and AUX - debug enable on Telemetry) - Tested
- MS5611 driver - Tested
- MPU600 driver - Tested
- HMC5883 Internal and External - Tested
- SD Card - Tested
- RAMTRON - Tested
- Buzzer (no timer available for tonealarm) - Tested
- External LEDs (Arm and GPS) - Tested
- OnBord LEDs - Tested
- 3 Relay (from 33 to 35) - Tested
- Voltage and Current Battery Monitor - Tested
- 14 PWM available (GPIO mapped from 50 to 63) - Tested
2019-01-18 11:49:19 +11:00
LukeMike
2146368e7c
HAL_ChibiOS: added ChibiOS support for VR Micro Brain 5.1
2019-01-18 11:49:19 +11:00
LukeMike
13d1d281e1
HAL_ChibiOS: added ChibiOS support for VR Brain 5.2
2019-01-18 11:49:19 +11:00
Nigel Williams
071dca8fe8
HAL_ChibIOS: Fix INS default rotation for OmnibusNanoV6
...
This makes the default orientation match betaflight (i.e. USB
connector top of the board at the front, ESC connector bottom of the
board to the rear).
2019-01-18 11:00:43 +11:00
Andrew Tridgell
17d62be9bb
HAL_ChibiOS: disable USART6_TX on fmuv5
...
this prevents it acting as a pullup on SBUS input for Pixhawk4. Thanks
to David Sidrane for the suggestion.
2019-01-18 10:24:27 +11:00
Andrew Tridgell
155ccdd6e1
HAL_ChibiOS: added extra LEDs for CUAVv5
2019-01-17 12:29:44 +11:00
Michael du Breuil
3aee083540
AP_HAL_ChibiOS: Fix FMUv2 LED lighting up
2019-01-11 17:45:43 +11:00
murata
6bb11b5cc8
HAL_ChibiOS: Get the number of characters in strlen
2019-01-09 10:12:51 +11:00
Michael du Breuil
e8373e1fdf
AP_HAL_ChibiOS: add scripting heap
2018-12-31 19:25:23 -07:00
Andrew Tridgell
ed3194d095
HAL_ChibiOS: fixed timer reset
2018-12-31 08:00:14 +11:00
Andrew Tridgell
960d4c0a80
HAL_ChibiOS: allow mount of microSD after boot
...
when disarmed, try to mount sd card every 3s
2018-12-31 08:00:14 +11:00
Andrew Tridgell
8188b4a039
HAL_ChibiOS: fixed card inserted test for SDC
2018-12-31 08:00:14 +11:00
Andrew Tridgell
24f6d6d647
HAL_ChibiOS: support microSD slowdown
...
allow use of BRD_SD_SLOWDOWN to slow down clock on microSD
2018-12-31 08:00:14 +11:00
Andrew Tridgell
8c43db1a00
HAL_ChibiOS: implement half-duplex delay and read locking
2018-12-29 15:58:22 +11:00
Andrew Tridgell
4886ccd8ba
HAL_ChibiOS: fixed safety switch and LEDs on PH4-mini
...
fixes #10127
2018-12-29 15:50:00 +11:00
Siddharth Purohit
8d850e979a
HAL_ChibiOS: add CubePurple/PH2Slim board config
2018-12-28 14:33:14 +11:00
Matt
d4bd7e790a
HAL_ChibiOS: Add hwdef for Solo's Cube Black & Green
...
Adds hwdef files for the 3DR Solo. CubeBlack-solo is based on the
CubeBlack hwdef, with the only difference being default parameters
required by the Solo. CubeGreen-solo is is also identical to CubeBlack,
but has default parameters required by those with a Green Cube in their
Solo. Parameter default files are pulled from the Tools\Frame_Parms
directory where the Solo's parameter files are maintained.
2018-12-11 10:45:37 +11:00
Andrew Tridgell
735a4b6f18
HAL_ChibiOS: setup PH4 for right voltage scaling
2018-12-10 07:45:34 +11:00
Randy Mackay
8b963e7b92
AP_HAL_ChibiOS: remove debug print when SPI device not found
2018-12-06 16:50:16 +11:00
Jani Hirvinen
d9b9638b4a
HAL_ChibiOS: fixed F405 PE15 afnum
...
should be 15 and not 1
2018-12-06 12:43:47 +11:00
Andrew Tridgell
50683633b3
HAL_ChibiOS: setup for brushed feature in IOMCU
2018-11-30 13:14:14 +11:00
Andrew Tridgell
0faab853cb
HAL_ChibiOS: make atob static
...
only used in this file
2018-11-30 11:29:51 +11:00
Andrew Tridgell
8f51bef0f0
HAL_ChibiOS: added 3 tries to microSD MMC init
...
this makes init for MMC/SPI interfaces more reliable
2018-11-29 19:39:11 +11:00
Siddharth Purohit
3b2fdc9c70
HAL_ChibiOS: add support for unformatted board id
2018-11-29 16:36:29 +11:00
Siddharth Purohit
8df52aba29
HAL_ChibiOS: move vsnprintf call to redirect Ardupilot's instead of ChibiOS's
2018-11-29 16:36:29 +11:00
Andrew Tridgell
7459709acb
HAL_ChibiOS: allow ROMFS to override a file
...
this allows a hwdef.dat with an include to change an embedded file
specified in the include
2018-11-28 10:35:50 +11:00
Michael du Breuil
8c464572d8
AP_HAL_ChibiOS: Use a less clever version of realloc
...
The clever version loses access to memory, and is excessively hard coded
2018-11-26 22:32:56 +00:00
Michael du Breuil
b32c5e6f8d
AP_HAL_ChibiOS: Remove unneeded private member
2018-11-27 07:36:17 +11:00
Andrew Tridgell
1428594daf
HAL_ChibiOS: fixed uart order for PH4-mini
...
thanks to Arthur from Holybro
2018-11-21 09:29:15 +11:00
Andrew Tridgell
8ac18f343f
HAL_ChibiOS: added note on KakuteF7 ESC telem
2018-11-20 19:47:48 +11:00
Andrew Tridgell
08199eb5ff
HAL_ChibiOS: updated KakuteF7 docs
2018-11-20 19:45:08 +11:00
Andrew Tridgell
62f07f36c7
HAL_ChibiOS: updated KakuteF4 docs
2018-11-20 19:16:37 +11:00
Andrew Tridgell
101b12617d
HAL_ChibiOS: updated PH4-mini docs
2018-11-20 18:46:35 +11:00
Andrew Tridgell
eac6435dec
HAL_ChibiOS: allow CAP ports to be used as PWM on PH4-mini
2018-11-20 18:46:34 +11:00
Andrew Tridgell
a6ab885866
HAL_ChibiOS: fixed typo in F767 pin def file
2018-11-20 18:28:11 +11:00
Andrew Tridgell
013f1d55e8
HAL_ChibiOS: added support for swapping UART pins
2018-11-20 18:25:35 +11:00
Andrew Tridgell
cfc6ec5e57
HAL_ChibiOS: added PH4-mini docs
2018-11-20 17:26:14 +11:00
Andrew Tridgell
7c2dc84d45
HAL_ChibiOS: added Pixhawk4 docs
2018-11-20 16:19:00 +11:00
Andrew Tridgell
9f22dae444
HAL_ChibiOS: added docs for CUAVv5
2018-11-20 16:03:34 +11:00
Andrew Tridgell
d422e6a6ff
HAL_ChibiOS: correct SPKT pin numbers for CubeBlack
2018-11-20 15:23:06 +11:00
Andrew Tridgell
742d8b8933
HAL_ChibiOS: pixracer and cube doc updates
2018-11-20 15:09:51 +11:00
Andrew Tridgell
8a85d9db69
HAL_ChibiOS: added CubeBlack docs
2018-11-20 14:52:48 +11:00
Andrew Tridgell
715ac2d6c5
HAL_ChibiOS: fixed error in pixracer docs
2018-11-20 13:37:07 +11:00
Andrew Tridgell
35db9c4b85
HAL_ChibiOS: added Pixracer docs
2018-11-20 13:32:46 +11:00
Andrew Tridgell
62be29fbcf
HAL_ChibiOS: added board docs for KakuteF4
2018-11-18 21:37:56 +11:00
Andrew Tridgell
39003905b9
HAL_ChibiOS: re-arrange KakuteF4 UARTs
...
this allows for FrSky S.PORT on Telem2, and enables it by default
2018-11-18 21:37:56 +11:00
Andrew Tridgell
da402f4fb7
HAL_ChibiOS: fixed KakuteF7 UART order
2018-11-18 15:56:42 +11:00
Andrew Tridgell
fa487fe1bc
HAL_ChibiOS: added Pixhawk1 docs
2018-11-18 15:56:42 +11:00
Andrew Tridgell
774cea0dd5
HAL_ChibiOS: added KakuteF7 docs
2018-11-18 14:59:04 +11:00
Andrew Tridgell
d84bc9f556
HAL_ChibiOS: fixed STM32F7 RXINV flag
2018-11-16 15:48:21 +11:00
Andrew Tridgell
8dd58b4181
HAL_ChibiOS: support reversible DShot motors
2018-11-16 08:33:35 +11:00
Andrew Tridgell
adf7fefc2e
HAL_ChibiOS: detect stuck I2C bus and clear with SCL
...
This detects the I2C bus becoming stuck with SDA low after a timeout
and clears the bus by toggling SCL. Many thanks to @jhw84 for the
suggestion
2018-11-16 08:30:40 +11:00
Andrew Tridgell
a0ed658fcc
HAL_ChibiOS: added palReadLineMode() function
...
used to change and restore line modes
2018-11-16 08:30:40 +11:00
Andrew Tridgell
85243ad522
HAL_ChibiOS: enable support for half-duplex uart config
2018-11-14 19:05:09 +11:00
Andrew Tridgell
b346d82f96
HAL_ChibiOS: allow frsky invert for p3pro and mindpx-v2
2018-11-14 19:05:09 +11:00
Andrew Tridgell
f0c13d4089
HAL_ChibiOS: allow user control of frsky inversion on Pixracer
2018-11-14 19:05:09 +11:00
Andrew Tridgell
acf03980ca
HAL_ChibiOS: added UART inversion options
...
support GPIO pins or STM32F7
2018-11-14 19:05:09 +11:00
Andrew Tridgell
bd117f1548
HAL_ChibiOS: define pins for inverting uarts
2018-11-14 19:05:09 +11:00
Andrew Tridgell
d824cf0a40
HAL_ChibiOS: default the battery2 pins correctly for CubeBlack
2018-11-13 14:33:17 +11:00
Michael du Breuil
be8d4e6c9d
AP_HAL_ChibiOS: Assume that IOMCU implies servo voltage monitoring
2018-11-12 23:29:04 +00:00
Michael du Breuil
a5115930dd
AP_HAL_ChibiOS: Fix board voltage checks being disabled
2018-11-12 23:29:04 +00:00
Andrew Tridgell
f48c3da497
HAL_ChibiOS: fixed undefine typo
2018-11-11 07:07:52 +11:00
vierfuffzig
f8d43bc96b
HAL_ChibiOs: add default support for board versions with ICM20602
2018-11-11 07:07:52 +11:00
Andrew Tridgell
24ba876e88
HAL_ChibiOS: don't use STDOUT_SERIAL on mindpx-v2 or cube-red
...
better to use USB, giving us one more uart
2018-11-10 14:12:42 +11:00
auturgy
575d03796c
AP_HAL_ChibiOS: fix typo in fmuv5 hwdef [NFC]
...
header comment fixed from fmuv3 to fmuv5
2018-11-09 18:58:27 +09:00
vierfuffzig
d204939cb2
AP_HAL_ChibiOS: set default type for boards with onboard OSD
2018-11-09 08:12:51 +11:00
Peter Barker
17f643719a
AP_HAL_ChibiOS: add override keyword in many places
2018-11-08 11:30:12 +11:00
Andrew Tridgell
a0c57979ab
HAL_ChibiOS: use opendrain outputs for LEDs on iomcu
2018-11-07 07:35:45 +11:00
Andrew Tridgell
7168a0297a
HAL_ChibiOS: display RC protocol for iocmu
2018-11-07 07:35:45 +11:00
Andrew Tridgell
a69f66eadd
HAL_ChibiOS: ensure RCIN sigbuf has even number of words
...
ObjectBuffer rounds up by 1, leaving an odd number of words, which
caused DSM RC input corruption
2018-11-07 07:35:45 +11:00
Andrew Tridgell
6c128fcaf2
HAL_ChibiOS: signal2 does not need to be DMA safe
2018-11-07 07:35:45 +11:00
Andrew Tridgell
e3a01c661f
HAL_ChibiOS: switched to USB for console on pixracer
2018-11-07 07:35:45 +11:00
Andrew Tridgell
56203204cc
HAL_ChibiOS: fixed build of bootloaders
2018-11-07 07:35:45 +11:00
Andrew Tridgell
b950b83eea
HAL_ChibiOS: fixed build with EICU RC input
2018-11-07 07:35:45 +11:00
Andrew Tridgell
5dd0086698
HAL_ChibiOS: make SoftSigReader considerably more efficient
...
this reduces interrupt latency on the F100, which allows us to use all
RC input protocols on the pulse based decoder, allowing for more
flexibility in RC input protocols
2018-11-07 07:35:45 +11:00
Andrew Tridgell
dbc05f787b
HAL_ChibiOS: display decoded RC protocol
2018-11-07 07:35:45 +11:00
Andrew Tridgell
d18277487e
HAL_ChibiOS: use RCIN pin for only PPM only on iomcu
...
use uarts for SBUS and other serial protocols
2018-11-07 07:35:45 +11:00
Andrew Tridgell
7c1ba15031
HAL_ChibiOS: fixed syntax error on RCIN pin for iomcu
2018-11-07 07:35:45 +11:00
Andrew Tridgell
86ab3d7669
HAL_ChibiOS: turn off green ring LED on cube
2018-11-07 07:35:45 +11:00
Andrew Tridgell
fcc259ae31
HAL_ChibiOS: separate out F1 CR1 calculations
...
and modify pin speeds for iomcu uarts
2018-11-07 07:35:45 +11:00
Andrew Tridgell
7e66bb69b9
HAL_ChibiOS: enable amber LED on iomcu
2018-11-07 07:35:45 +11:00
Andrew Tridgell
3ab1cd4808
HAL_ChibiOS: fixed build
2018-11-07 07:35:45 +11:00
Eugene Shamaev
032c5ab707
AP_HAL_ChibiOS: Binding update for DSM
2018-11-07 07:35:45 +11:00
Andrew Tridgell
f69360844f
HAL_ChibiOS: enable USART1 for iomcu for spektrum input
2018-11-07 07:35:45 +11:00
Andrew Tridgell
065dba973b
HAL_ChibiOS: fixed build warning on iomcu
2018-11-07 07:35:45 +11:00
Andrew Tridgell
81fe8b7138
HAL_ChibiOS: allow set of safety mask from IOMCU
2018-11-07 07:35:45 +11:00
fat_dell
d1f557e96b
HAL_ChibiOS: added Omnibusf4v6 board, based on omnibusnanov6.
2018-11-04 22:00:15 +11:00
Andrew Tridgell
49ce9d02b1
HAL_ChibiOS: ensure RC in channels are bounded
2018-11-02 22:52:25 +11:00
vierfuffzig
e04ebb1326
HAL_ChibiOS: set BATT_MON default on boards with onboard volt/curr sens
2018-10-31 21:29:33 +11:00
Andrew Tridgell
78a32df2e7
HAL_ChibiOS: make all boards base GPIOs for servos at 50
...
this makes the docs for GPIO pins consistent across boards
2018-10-31 20:10:52 +11:00
fnoop
deeaf6ec09
AP_HAL_ChibiOS: Add UARTS to F405-Wing bootloader
...
AP_HAL_ChibiOS: Add pins to support new UART_ORDER uarts
AP_HAL_ChibiOS: Add UARTs to F405-Wing hwdef-bl.dat to support firmware upload on UARTS
2018-10-31 16:01:39 +11:00
Peter Barker
d2cf065fdf
AP_HAL_ChibiOS: return uart link bandwidth
2018-10-30 19:31:37 +11:00
Andrew Tridgell
7e777d8b28
HAL_ChibiOS: disable loop() delay for iofirmware
2018-10-30 13:00:48 +11:00
Andrew Tridgell
6c761fa864
HAL_ChibiOS: shutdown IOMCU on reboot
2018-10-30 13:00:48 +11:00
Andrew Tridgell
b3946fc458
HAL_ChibiOS: added uart for sbus out in IOMCU
2018-10-30 13:00:48 +11:00
Andrew Tridgell
af4340d1d1
HAL_ChibiOS: enable analog input on IOMCU
2018-10-30 13:00:48 +11:00
Andrew Tridgell
a6b35d6496
HAL_ChibiOS: restore old ODR behaviour for F4 boards
...
This fixes an issue with ESP8366 on Pixracer
2018-10-30 12:49:16 +11:00
Andrew Tridgell
6dd44a6d35
HAL_ChibiOS: fixed LED mapping for fmuv4
2018-10-29 14:04:32 +11:00
vierfuffzig
895cc0713b
ChibiOS: fix F35Lightning default BATT_CURR_SCALE
2018-10-24 07:45:10 +10:00
Andrew Tridgell
d644150871
HAL_ChibiOS: fixes for DrotekP3Pro
2018-10-21 09:59:44 +11:00
Kevin Lopez Alvarez
6f99c706d6
HAL_ChibiOS: add MCU tables for STM32F469
2018-10-21 09:59:44 +11:00
Kevin Lopez Alvarez
bf745d1960
HAL_ChibiOS: add DrotekP3Pro hardware definitions
2018-10-21 09:59:44 +11:00
Phillip Kocmoud
44fb61da37
HAL_ChibiOS: mRo X2.1-777 / hwdef.dat
...
Set proper sensor orientation.
2018-10-21 07:50:44 +11:00
Andrew Tridgell
c622a4c4d6
HAL_ChibiOS: fixed output pins on F100 iomcu
2018-10-17 16:45:37 +11:00
Andrew Tridgell
7b67146bc4
HAL_ChibiOS: use less memory in SoftSigReader
2018-10-17 15:11:28 +11:00
Andrew Tridgell
d083cd87d6
HAL_ChibiOS: disable debug code by default for iomcu
...
use --enable-asserts instead
2018-10-17 15:11:28 +11:00
Andrew Tridgell
d7aaaa35bd
HAL_ChibiOS: disable RCIN and timer threads for iomcu
2018-10-17 15:11:28 +11:00
Andrew Tridgell
8a4e0bd58c
HAL_ChibiOS: fixed RCIN for iomcu
...
we need to disable/re-enable DMA on each IRQ for the STM32F10x
2018-10-17 15:11:28 +11:00
Andrew Tridgell
15141a6a5a
HAL_ChibiOS: allow for no RCIN or TIMER thread
...
saves memory on iomcu
2018-10-17 15:11:28 +11:00
Andrew Tridgell
4674a1c68d
HAL_ChibiOS: fixed system time for clocks other than 1MHz
...
needed for IOMCU
2018-10-17 15:11:28 +11:00
Andrew Tridgell
298a91ac7c
HAL_ChibiOS: allow reduction of memory for SoftSigReader
...
for IOMCU
2018-10-17 15:11:28 +11:00
rain-er
565b370330
UART4 added for BLHeli ESC telemetry
2018-10-17 13:57:19 +11:00
Andrew Tridgell
4416404137
HAL_ChibiOS: removed hal.util->new_semaphore()
...
replaced with HAL_Semaphore
2018-10-17 12:54:22 +11:00
Phillip Kocmoud
f1d223a32a
HAL_ChibiOS: Add support for the mRo X2.1-777
...
a new flight controller from Mayan Robotics based on the x2.1 upgraded to a STM32F777 MCU
2018-10-16 09:37:39 +11:00
vierfuffzig
2243c524db
Chibios: Add board FuriousFPV F35Lightning
2018-10-12 20:28:50 +11:00
Andrew Tridgell
bcc1bd9752
HAL_ChibiOS: added realloc implementation
...
needed for AP_Scripting
2018-10-09 10:08:52 +11:00
Michael du Breuil
8382d377bd
AP_HAL_ChibiOS: Add a BUFSIZ value
2018-10-09 10:08:52 +11:00
Michael du Breuil
11ab6c59e1
AP_HAL_ChibiOS: Handle scripting priority
2018-10-09 10:08:52 +11:00
Randy Mackay
c1ab3afb6c
AP_HAL_ChibiOS: fix safety switch option handling
2018-10-04 16:13:24 +10:00
Andrew Tridgell
8c391291a3
HAL_ChibiOS: fixed a race in DShot code
...
this fixes a problem found by Daniel Met with the copter 3.6 beta
release
2018-10-03 15:28:07 +10:00
Michael du Breuil
9a48a0835e
AP_HAL_ChibiOS: Don't redefine errno
2018-10-03 08:01:13 +10:00
Michael du Breuil
f810b7b9f6
AP_HAL_ChibiOS: Make getcwd() take size_t as per the standard
2018-10-02 06:04:40 +10:00
Michael du Breuil
7fda309d3c
AP_HAL_ChibiOS: Remap unused pins to ADC
2018-09-20 01:07:47 +01:00
Siddharth Purohit
8ac38d73f7
HAL_ChibiOS: add option for NO_FASTBOOT build and enable it for iomcu
2018-09-19 12:14:15 +10:00
Siddharth Purohit
6622c9b8fd
HAL_ChibiOS: wrap sscanf and snprintf methods
2018-09-19 12:14:15 +10:00
Siddharth Purohit
05539cd93b
HAL_ChibiOS:remove print statement left over from previous changes
2018-09-19 12:14:15 +10:00
Siddharth Purohit
2d1153081c
HAL_ChibiOS: do not build float support for bootloader builds
2018-09-19 12:14:15 +10:00
Siddharth Purohit
f9149f45b2
HAL_ChibiOS: explicitly mention if RTC not available
2018-09-19 12:14:15 +10:00
Siddharth Purohit
22f74b0827
HAL_ChibiOS: add option to set iomcu firmware environment var
2018-09-19 12:14:15 +10:00
Siddharth Purohit
42b4730d88
HAL_ChibiOS: add changes to hwdef to support STM32F1 based controller
2018-09-19 12:14:15 +10:00
Siddharth Purohit
1a20fb4ea9
HAL_ChibiOS: disable flash methods where there is no Flash API support
2018-09-19 12:14:15 +10:00
Siddharth Purohit
847aca3c30
HAL_ChibiOS: reduce signal transitions count to save RAM
2018-09-19 12:14:15 +10:00
Siddharth Purohit
b9319cae56
HAL_ChibiOS: disable segments relating to unused features
2018-09-19 12:14:15 +10:00
Siddharth Purohit
87a2dea9d4
HAL_ChibiOS: disable features that require advanced dma
2018-09-19 12:14:15 +10:00
Siddharth Purohit
0f07480faf
HAL_ChibiOS: continue main_loop branching from main instead of allocating a separate thread
2018-09-19 12:14:15 +10:00
Siddharth Purohit
e824a9c360
HAL_ChibiOS: add hwdef files to support IOMCU
2018-09-19 12:14:15 +10:00
Andrew Tridgell
340f1b43e6
HAL_ChibiOS: fixed RSSI voltage from IOMCU
2018-09-15 16:08:32 +10:00
Andrew Tridgell
8c33b4b97d
HAL_ChibiOS: implement set_failsafe_pwm()
2018-09-13 08:15:02 +10:00
Andrew Tridgell
490d6eea20
HAL_ChibiOS: fixed ADC bug
...
this caused bad analog readings when the number of channels being read
was more than the number of hw channels
thanks to @vierfuffzig for reporting!
2018-09-12 07:10:04 +10:00
s0up
066cf90111
HAL_ChibiOS: Add speedybee hardware definition
2018-09-07 08:33:35 +10:00
Paul Atkin
bb99165221
HAL_ChibiOS: updates for KakuteF7
...
fixed PWM and added full tonealarm support
2018-09-06 10:11:34 +10:00
Andrew Tridgell
a9e29f7556
HAL_ChibiOS: added pullup/pulldown support on GPIO
...
using the convention of write() on an input pin to set pullup/pulldown
2018-09-06 07:20:46 +10:00
Michael du Breuil
f6cb196d53
AP_HAL_ChibiOS: Remove unimplemented force_safety_no_wait()
...
ChibiOS doesn't implement the method, so there is nothing to be gained
by calling the function.
2018-09-04 10:23:18 +10:00
Hannes Verschore
fefde53d58
AP_HAL_ChibiOS: Fix comment in Device.cpp
...
This was decreased to 100 in b07c599bf2
. I assume it would be best to also update the comment.
2018-08-31 08:36:47 +09:00
Andrew Tridgell
8c962e6f0f
HAL_ChibiOS: use a larger TX buffer on USB
...
this is needed for fast log download on vehicles with 50Hz main loop
2018-08-28 08:50:50 +10:00
Andrew Tridgell
33076be585
HAL_ChibiOS: fixed handling of 16 bit timers
...
when we have a 16 bit timer then systime_t is 16 bit, and we need to
handle wrap of get_systime_us32()
2018-08-26 18:34:26 +10:00
Andrew Tridgell
dc20e2baed
HAL_ChibiOS: support recursive semaphores
2018-08-25 15:44:36 +10:00
Andrew Tridgell
db9a8f16ed
HAL_ChibiOS: enable terrain on Pixracer, minpx-v2 and mini-pix
2018-08-24 19:43:27 +10:00
Andrew Tridgell
5526dac4fc
HAL_ChibiOS: probe all i2c baros for revo-mini
...
this ensures we build this functionality in CI
2018-08-23 13:29:59 +10:00
Peter Barker
2209e4a697
AP_HAL_ChibiOS: new HAL functor-based methods
...
AP_HAL_ChibiOS: adjust for irq-type enumeration change
AP_HAL_ChibiOS: implement attach-AP_HAL::Proc to interrupt interface
2018-08-21 20:34:01 +09:00
Andrew Tridgell
d3af854949
HAL_ChibiOS: fixed bootloader build
2018-08-16 12:40:10 +10:00
Andrew Tridgell
dabdb969f6
HAL_ChibiOS: added support for HAL_Semaphore type
2018-08-16 12:40:10 +10:00
Alexander Malishev
05099b8b8b
HAL_ChibiOS: restore default dataflash buffer size
...
This fix log corruption in copter
2018-08-15 10:15:09 +10:00
Francisco Ferreira
1b46104a98
AP_HAL_ChibiOS: fix warning when STDOUT is defined
...
../../libraries/AP_HAL_ChibiOS/UARTDriver.cpp:118:12: warning: 'int hal_console_vprintf(const char*, va_list)' defined but not used [-Wunused-function]
static int hal_console_vprintf(const char *fmt, va_list arg)
^
2018-08-14 10:17:38 +10:00
mirkix
c33b692f53
AP_HAL_ChibiOS: fix CubeYellow build
2018-08-14 06:26:22 +10:00
Francisco Ferreira
7278af05e0
AP_HAL_ChibiOS: remove CAN thread management
2018-08-12 13:35:01 +01:00
Francisco Ferreira
e1bf89f32d
AP_HAL_ChibiOS: fix CAN manager initialization
2018-08-12 13:35:01 +01:00
Andrew Tridgell
385f735799
HAL_ChibiOS: avoid 64 bit maths in AP_HAL::micros()
...
this saves a few cycles
2018-08-08 21:24:49 +10:00
vierfuffzig
bc52d430f9
Chibios add bootloader for mini-pix
2018-08-07 07:09:39 +10:00
Andrew Tridgell
846418e5e9
HAL_ChibiOS: raise timer thread priority
...
needs to be above main for guaranteed DShot and oneshot output periods
2018-08-06 11:41:42 +10:00
Andrew Tridgell
3df2a1c228
HAL_ChibiOS: fixed dshot bad frames
...
adding a pre-bit on the DMAR, and ensuring that all groups are setup
for DMA together fixes the remaining bad frames reports in BLHeli32
2018-08-04 19:29:13 +10:00
Andrew Tridgell
946b4db0e6
HAL_ChibiOS: set min dshot separation to 100usec
...
this fixes a problem with BLHeli32 not recognising dshot
2018-08-04 19:29:13 +10:00
Andrew Tridgell
22ba9a0aea
HAL_ChibiOS: fixed timeout of serial read bytes
...
this allows for fast timeout of serial read bytes in BLHeli pass-thru
2018-08-04 19:29:13 +10:00
Lucas De Marchi
668c941717
Global: use new version of ARRAY_SIZE
2018-08-04 15:31:55 +10:00
utkinpol
2912e732b4
HAL_ChibiOS: updated for KakuteF7
2018-08-04 08:24:49 +10:00
Andrew Tridgell
64c8ca514c
HAL_ChibiOS: fixed attach_interrupt check
...
we can't have two handlers on the same pad
2018-08-03 13:44:59 +10:00
Andrew Tridgell
4e6ac85057
HAL_ChibiOS: use 32 bit time intervals
...
this makes for smaller and faster code. We really don't need 64 bit
intervals as long sleeps are done with a loop.
2018-08-03 13:44:59 +10:00
Andrew Tridgell
1bd0ea079b
HAL_ChibiOS: fixed build on older compilers
...
allow build with gcc 4.9.x
2018-08-03 13:44:59 +10:00
Andrew Tridgell
7aba99e229
HAL_ChibiOS: fixes for ChibiOS version update
2018-08-03 13:44:59 +10:00
Andrew Tridgell
f8e2edbc7f
HAL_ChibiOS: fixed cache flush for updated ChibiOS version
2018-08-03 13:44:59 +10:00
Siddharth Purohit
2604b00b43
HAL_ChibiOS: use ch.h header for oslib api
2018-08-03 13:44:59 +10:00
Siddharth Purohit
ff65487ab3
HAL_ChibiOS: follow updated gpio pin setup procedure
2018-08-03 13:44:59 +10:00
Siddharth Purohit
5f88163e17
HAL_ChibiOS: update configuration and rtlib headers for ChibiOS 18.x.x
2018-08-03 13:44:59 +10:00
Siddharth Purohit
395c48933c
HAL_ChibiOS: move tto using updated time conversion API
2018-08-03 13:44:59 +10:00
Siddharth Purohit
4e8d072d6d
HAL_ChibiOS: move to using recent pal driver api for GPIO IRQ events
2018-08-03 13:44:59 +10:00
Mark Whitehorn
86b7adf68f
AP_HAL_Chibios: fix fmuv3/hwdef.dat printf/STDOUT description and clean up
2018-08-03 13:08:37 +10:00
Lucas De Marchi
20778f73f1
AP_HAL_ChibiOS: define HAL_HAVE_SAFETY_SWITCH accordingly
2018-08-02 13:15:02 -07:00
Andrew Tridgell
13f96bcb00
HAL_ChibiOS: fixed an i2c dma callback bug
...
many thanks to Kelly-Foster for chasing me on this one!
2018-08-02 12:29:02 +10:00
Andrew Tridgell
b0badf8caf
HAL_ChibiOS: fixes for F745 builds
2018-08-02 11:56:33 +10:00
Andrew Tridgell
44fd85ff29
HAL_ChibiOS: reduce memory used by serial buffers
...
this does not appear to affect log download speed. It saves about 27k
of memory
2018-08-01 13:11:16 +10:00
Hwurzburg
19f44f80ad
HAL_ChibiOS: Added Omnibus F4 NanoV6 (only V6)
...
bench tested all ports
2018-07-30 19:32:29 +10:00
Andrew Tridgell
4026b9f49d
HAL_ChibiOS: probe all external compasses on mini-pix
2018-07-30 17:26:19 +10:00
Andrew Tridgell
c83567dcba
HAL_ChibiOS: added duration to toneAlarm_set_buzzer_tone
2018-07-30 14:02:12 +10:00
Jonathan Challinger
f5f6220283
AP_HAL_ChibiOS: reflect changes to AP_HAL tonealarm interface
2018-07-30 14:02:12 +10:00
Andrew Tridgell
72ee20c590
HAL_ChibiOS: added RC input for OMNIBUSF7V2
2018-07-30 10:45:55 +10:00
Timothy Knab
d4c19ebc3c
HAL_ChibiOS: Updated OMNIBUSF7V2
...
Compasses on the I2C bus are now detected properly and GPS on UART3 works.
2018-07-30 10:45:55 +10:00
Andrew Tridgell
95aaa01014
HAL_ChibiOS: override COMPASS_AUTO_ROT on several boards
2018-07-28 18:05:12 +10:00
Andrew Tridgell
1eef29e525
HAL_ChibiOS: only set freq on valid IO channels
2018-07-28 15:25:57 +10:00
Andrew Tridgell
2174c53eb6
HAL_ChibiOS: added Pixhawk1 build target
...
this is more obvious to users than fmuv3
2018-07-27 10:02:31 +10:00
Alexander Malishev
1377943eb3
HAL_ChibiOS: fix DTCM size in stm32f745 mcu
2018-07-26 17:52:37 +10:00
Andrew Tridgell
8a26ca1ddf
HAL_ChibiOS: added a DMA reserve heap
...
this ensures we keep some DMA-capable memory aside for when it is
needed
2018-07-20 15:48:21 +10:00
Siddharth Purohit
f9ab7e54d4
HAL_ChibiOS: increase sigread buffer size for protocols with longer length
2018-07-20 15:47:18 +10:00
Andrew Tridgell
73cfd40e7f
HAL_ChibiOS: reduce latency of DMA sharing
...
if we are sharing a DMA channel between i2c and SPI then this saves
latency on SPI by giving up the DMA channel between retries
2018-07-20 14:51:18 +10:00
Andrew Tridgell
4244daeb2d
HAL_ChibiOS: support playing tunes by string
2018-07-20 14:37:16 +10:00
Andrew Tridgell
ec97e7772d
HAL_ChibiOS: rename f4by-ch to F4BY
2018-07-18 21:24:11 +10:00
Alexander Malishev
f265d7e128
AP_Bootloader: add f4by bootloader
2018-07-18 21:10:39 +10:00
Andrew Tridgell
caa553e727
HAL_ChibiOS: fixed internal i2c mask for Pixracer
2018-07-18 12:04:01 +10:00
Andrew Tridgell
59aab9987e
HAL_ChibiOS: account for I2C base in compass masks
2018-07-18 12:04:01 +10:00
Alexander Malishev
4342dae065
HAL_ChibiOS: define BOARD_RSSI_ANA_PIN to simpify tuning
2018-07-16 08:29:49 +10:00
Alexander Malishev
e04f438ce3
HAL_ChibiOS: fix analog pins on MatekF405
2018-07-16 08:29:49 +10:00
Alexander Malishev
89f7d652e0
HAL_ChibiOS: removed wrong led pin
2018-07-16 08:29:49 +10:00
Andrew Tridgell
9ab55f6838
HAL_ChibiOS: probe for external compasses on several boards
...
boards that have no internal compass will now probe for all external
compass types
2018-07-14 17:51:50 +10:00
Andrew Tridgell
476bddd9a3
HAL_ChibiOS: use HAL_I2C_INTERNAL_MASK
2018-07-14 17:51:50 +10:00
Andrew Tridgell
7eabee04a3
HAL_ChibiOS: enable OSD on KakuteF7
2018-07-13 14:53:53 +10:00
Andrew Tridgell
b96f24c80e
HAL_ChibiOS: added KakuteF7
...
thanks to Huibean for the fixes!
2018-07-13 14:53:53 +10:00
Andrew Tridgell
f2d602690e
HAL_ChibiOS: fixed build error with some compilers
2018-07-13 08:50:46 +10:00
Andrew Tridgell
83f38d536e
HAL_ChibiOS: fixed flow control auto-detect without DMA
...
this fixes automatic flow control detection when we are not using DMA
for TX
2018-07-13 07:34:30 +10:00
Andrew Tridgell
0201893f7c
HAL_ChibiOS: fixed peripheral power-up on fmuv5
...
we need to do the powerup before we initialise the UARTs
2018-07-13 07:34:30 +10:00
Andrew Tridgell
409e857f6b
HAL_ChibiOS: use pullup on CTS line
...
this makes life less difficult for SiK radios which go into bootloader
mode on low CTS
2018-07-13 07:34:30 +10:00
Andrew Tridgell
11e09a846c
HAL_ChibiOS: setup RTS pins as pullup
...
this prevents RTS pins from keeping SiK radios in bootloader mode on
peripheral powerup
2018-07-13 07:34:30 +10:00
Andrew Tridgell
63a0a4979c
HAL_ChibiOS: delay peripheral power on for fmuv5
...
this should prevent SiK radios staying in the bootloader
2018-07-13 07:34:30 +10:00
Michael du Breuil
6fba374069
AP_HAL_ChibiOS: Remove GPIO::analogPinToDigitalPin()
2018-07-11 23:09:52 -07:00
Andrew Tridgell
f083b80700
HAL_ChibiOS: added preallocation of DMA bouncebuffers
...
we need 512 bytes for microSD
2018-07-12 14:34:04 +10:00
Andrew Tridgell
e193a161f2
HAL_ChibiOS: enable SDIOv1 bouncebuffers
2018-07-12 14:34:04 +10:00
Andrew Tridgell
f84424cca4
HAL_ChibiOS: added specific builds for the Pixracer and mRoX21 boards
2018-07-12 12:33:32 +10:00
Andrew Tridgell
721f5d86b1
HAL_ChibiOS: fixed mRoX21 IMU setup
2018-07-12 12:33:32 +10:00
Andrew Tridgell
0310bd468c
HAL_ChibiOS: changed uart order for KakuteF4
...
thanks to feedback from Arther
2018-07-12 11:50:10 +10:00
Andrew Tridgell
50f7e55f0b
HAL_ChibiOS: don't clear buffers if no baudrate change
2018-07-12 11:41:31 +10:00
fnoop
374c46bd57
HAL_ChibiOS: MatekF405-Wing UART reorder
2018-07-11 16:26:04 -07:00
Andrew Tridgell
1f2c24ef7b
HAL_ChibiOS: backup storage to microSD if possible
...
very useful for diagnostics.
This also fixes a bug on boards with flash storage, to not switch to
microSD storage if flash storage available
2018-07-11 16:38:03 +10:00
fnoop
922a9762df
HAL_ChibiOS: Fix MatekF405-Wing default compass rotation
2018-07-11 10:10:34 +10:00
Andrew Tridgell
2d8dbc05d0
HAL_ChibiOS: fixed omnibusf4pro I2C
...
many thanks to Kelly-Foster and @sh83
2018-07-11 08:33:49 +10:00
Andrew Tridgell
fff4b3b4a0
HAL_ChibiOS: fixed build on some F4 boards
2018-07-11 07:24:39 +10:00
Andrew Tridgell
ece10082e2
HAL_ChibiOS: added separate builds for Pixhawk4 and CUAVv5
...
this makes it easier to distinguish boards in logs, plus makes life
easier when the user is selecting the right firmware.
It also gives us the flexibility to make parameter changes as needed
2018-07-10 18:29:14 +10:00
Andrew Tridgell
b647dde28f
HAL_ChibiOS: changed which I2C bus is internal on fmuv5
...
match PH4 arrangement
2018-07-10 18:29:14 +10:00
Andrew Tridgell
385713abdd
HAL_ChibiOS: support for PH4-mini board
2018-07-10 18:29:14 +10:00
Andrew Tridgell
63a9b903ba
HAL_ChibiOS: added fallback to microSD for param storage
...
useful for boards without flash sectors setup in bootloader for
storage, but can use microSD
2018-07-10 15:41:44 +10:00
Andrew Tridgell
5d8b4c1e23
HAL_ChibiOS: ensure system_id is nul terminated
2018-07-10 15:40:08 +10:00
Andrew Tridgell
4f9bd50038
HAL_ChibiOS: implement I2C bus masks
2018-07-10 15:39:47 +10:00
Andrew Tridgell
3292abaa19
HAL_ChibiOS: fixed F412 build
2018-07-10 11:48:06 +10:00
Randy Mackay
af6c5ebda1
AP_HAL_ChibiOS: reduce default BRD_PWM_COUNT to 4 for fmv3
...
also default relay pins to use aux out 5 and 6
2018-07-10 05:30:05 +10:00
Andrew Tridgell
a7d9f4eef7
HAL_ChibiOS: don't add defaults.parm when building bootloader
2018-07-09 20:59:51 +10:00
Andrew Tridgell
fd02865a8b
HAL_ChibiOS: use wildcard ROMFS name for fonts
2018-07-09 19:41:56 +10:00
Andrew Tridgell
27c435e217
HAL_ChibiOS: use compressed ROMFS for bootloader update
2018-07-09 19:41:56 +10:00
Andrew Tridgell
a489c93001
HAL_ChibiOS: removed restriction on delay in threads
...
threads other than the main thread should be able to sleep, but not
call the delay callback
2018-07-09 19:41:18 +10:00
Andrew Tridgell
df3ce87e02
HAL_ChibiOS: implement thread_create()
2018-07-09 19:41:18 +10:00
Andrew Tridgell
847cb760b4
HAL_ChibiOS: fixed fmuv4-beta hwdef for dup pin
2018-07-06 10:21:12 +10:00
Andrew Tridgell
bf6906819d
HAL_ChibiOS: fixed configure of cube-red
2018-07-06 10:21:12 +10:00
Alexander Malishev
7a3eb69818
HAL_ChibiOS: allow arm without compass on omnibusf4pro
2018-07-06 09:04:50 +10:00
Andrew Tridgell
fbf24f0492
HAL_ChibiOS: make serial number match HAL_PX4
2018-07-06 09:02:11 +10:00
Andrew Tridgell
840362f355
HAL_ChibiOS: fixed default revo compass orientation
2018-07-05 19:43:12 +10:00
Andrew Tridgell
15ee9593b5
HAL_ChibiOS: fixed duplicate pin definitions
...
thanks to @liang-tang for noticing
2018-07-05 12:07:55 +10:00
Andrew Tridgell
53dcf5bef8
HAL_ChibiOS: fixed build warning with MATEKF405
2018-07-05 11:48:40 +10:00
Andrew Tridgell
5c2c5efc35
HAL_ChibiOS: rename to CubeYellow
2018-07-05 07:53:48 +10:00
Andrew Tridgell
f289c71b89
HAL_ChibiOS: make CubeOrange IDs consistent with CubeBlack
2018-07-05 07:53:48 +10:00
Andrew Tridgell
47fec1859b
HAL_ChibiOS: rename cube-orange to CubeOrange
2018-07-05 07:53:48 +10:00
proficnc
5519986848
HAL_ChibiOS: Added CubeBlack hwdef
2018-07-05 07:53:48 +10:00
Andrew Tridgell
d3bc281a10
HAL_ChibiOS: use generic ROMFS embedding system
2018-07-02 10:43:48 +10:00
Andrew Tridgell
8ba137bd9a
waf: moved ROMFS embed script into waf folder
2018-07-02 10:43:48 +10:00
Andrew Tridgell
e5435e02ad
HAL_ChibiOS: report system ID in mavlink and logs
2018-06-29 20:27:36 +10:00
Andrew Tridgell
ca3beb88b7
HAL_ChibiOS: allow for telem1 and telem2 for bootloader on fmuv3
2018-06-29 08:17:38 +10:00
Andrew Tridgell
6cf205bdbe
HAL_ChibiOS: make sure we populate up to uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
dd059b89f3
HAL_ChibiOS: added uartG for fmuv4 and fmuv5
2018-06-29 08:17:38 +10:00
Andrew Tridgell
0a5d287326
HAL_ChibiOS: support uartG
2018-06-29 08:17:38 +10:00
Andrew Tridgell
963675689c
HAL_ChibiOS: fixed substitution of %BOARD%-BL
2018-06-28 11:35:13 +10:00
Andrew Tridgell
54dc67e2a9
HAL_ChibiOS: default bootloader product string to XX-BL
2018-06-28 11:35:13 +10:00
Andrew Tridgell
946d0208e5
HAL_ChibiOS: fixed stm32f7 cache bug in erase flash page
2018-06-28 11:35:13 +10:00
Andrew Tridgell
d183efa720
HAL_ChibiOS: fixed USB string of fmuv5 bootloader
2018-06-28 11:35:13 +10:00
Andrew Tridgell
2b7b499c63
HAL_ChibiOS: added support for RTC sig for fast boot
2018-06-28 11:35:13 +10:00
Andrew Tridgell
f7f9d2b0e7
HAL_ChibiOS: added fmuv4 bootloader hwdef-bl.dat
2018-06-28 11:35:13 +10:00
Andrew Tridgell
3a5b3b4b1b
HAL_ChibiOS: fixed adding bootloader to ROMFS
2018-06-28 11:35:13 +10:00
Peter Barker
e332bece0f
AP_HAL_ChibiOS: embed any bootloader found for a board
2018-06-28 11:35:13 +10:00
Peter Barker
a81b3c8a7c
AP_HAL_ChibiOS: specify bootloader for sparky2
2018-06-28 11:35:13 +10:00
Peter Barker
f07b6f3d78
AP_HAL_ChibiOS: add support for flashing bootloader
2018-06-28 11:35:13 +10:00
Andrew Tridgell
10533fb249
HAL_ChibiOS: enable OSD font on OMNIBUSF7V2
2018-06-27 14:55:00 +10:00
Alexander Malishev
79b289f97e
HAL_ChibiOS: reverted change in omnibus hwdef.dat
2018-06-27 14:55:00 +10:00
Andrew Tridgell
8e8508a9f3
HAL_ChibiOS: enable OSD for MatekF405
2018-06-27 14:55:00 +10:00
Andrew Tridgell
cf19e7a3ae
HAL_ChibiOS: enabled OSD on KakuteF4
2018-06-27 14:55:00 +10:00
Alexander Malishev
8ce7ef1342
HAL_ChibiOS: added OSD support for MatekF405 and Omnibuspro
2018-06-27 14:55:00 +10:00
Andrew Tridgell
35f835a021
HAL_ChibiOS: improved OMNIBUSF7V2 support
2018-06-27 13:01:30 +10:00
Andrew Tridgell
7cce23671a
HAL_CbibiOS: removed unnecessary BOARD_SUBTYPE define
...
just causes build warnings
2018-06-27 11:37:45 +10:00
Andrew Tridgell
5bf078cc86
HAL_ChibiOS: fixed build with -Werror-sign-compare
2018-06-27 11:37:45 +10:00
Michael du Breuil
153ee6ca8e
AP_HAL_ChibiOS: Clear UART buffers when opening a port
2018-06-26 02:18:18 +01:00
Michael du Breuil
037e53ba8a
AP_HAL_ChibiOS: Reduce flash space of UARTDriver
...
Saves 32 bytes
2018-06-26 02:18:18 +01:00
Andrew Tridgell
a0b4553a26
HAL_ChibiOS: fixed bootloader build issue
2018-06-25 21:22:31 +10:00
Andrew Tridgell
bf6fb72904
HAL_ChibiOS: fixed 32 bit flash writes
2018-06-25 21:22:31 +10:00
Andrew Tridgell
f71d2a7417
HAL_ChibiOS: support bootloaders with no uarts
2018-06-25 21:22:31 +10:00
Andrew Tridgell
277836ccc7
HAL_ChibiOS: added bootloader definition for fmuv3
...
including UART support on 2 UARTs
2018-06-25 21:22:31 +10:00
Andrew Tridgell
e40457d98f
HAL_ChibiOS: avoid malloc in usbcfg
...
this avoids the need for malloc in the bootloader
2018-06-25 21:22:31 +10:00
Andrew Tridgell
369ac5edd0
HAL_ChibiOS: save more space in the bootloader
2018-06-25 21:22:31 +10:00
Andrew Tridgell
e870b5f00a
HAL_ChibiOS: use 32 bit flash operations when possible
2018-06-25 21:22:31 +10:00
Andrew Tridgell
feefa05b41
HAL_ChibiOS: expose stm32_flash_ispageerased()
2018-06-25 21:22:31 +10:00
Andrew Tridgell
dd1bd43a2e
HAL_ChibiOS: added stm32_flash_keep_unlocked()
2018-06-25 21:22:31 +10:00
Alexander Malishev
95f3eb5ab6
HAL_ChibiOS: stop logging before reboot
2018-06-25 17:46:20 +10:00
Alexander Malishev
cfa18b8e70
HAL_ChibiOS: reduce dataflash buffer size on targets with 128KB ram
2018-06-25 17:43:26 +10:00
Andrew Tridgell
dc0f2f9319
HAL_ChibiOS: use USB for stdout on more boards
...
don't waste a UART
2018-06-24 08:26:28 +10:00
Andrew Tridgell
2cfdc98453
HAL_ChibiOS: fixed omnibusf4pro bootloader LED pins
2018-06-24 08:26:28 +10:00
Andrew Tridgell
b149089830
HAL_ChibiOS: fixed board IDs and added more bootloaders
2018-06-24 08:26:28 +10:00
Andrew Tridgell
2f8a534243
HAL_ChibiOS: expand param storage on F4 boards with flash storage
...
this allows for a lot more param space on these boards
2018-06-24 08:26:28 +10:00
Andrew Tridgell
e868a4fe8b
HAL_ChibiOS: set FLASH_RESERVE_START_KB in the environment
...
used to correctly setup an intel hex file
2018-06-23 17:06:38 +10:00
Andrew Tridgell
1c807e0078
HAL_ChibiOS: added option to limit size of bootloader
...
this will ensure our F4 bootloaders stay under 16k
2018-06-23 17:06:38 +10:00
Andrew Tridgell
e11b3f2f0e
HAL_ChibiOS: run CAN thread at 3KHz
...
at 10KHz we were causing occasional CRC errors on the UART to IOMCU
2018-06-22 08:40:12 +10:00
Andrew Tridgell
d88b710ea9
HAL_ChibiOS: added more bootloader hwdef-bl.dat files
2018-06-22 08:00:31 +10:00
Andrew Tridgell
518d41e0d4
HAL_ChibiOS: added OTP defines
2018-06-22 08:00:31 +10:00
Kelly-Foster
ae84202bf2
HAL_ChibiOS: added MatekF405-Wing hwdef.dat
2018-06-22 08:00:31 +10:00
Andrew Tridgell
14f66461a7
HAL_ChibiOS: shrink build size for bootloader
...
thanks to @sh83 for the idea
2018-06-22 08:00:31 +10:00
Alexander Malishev
661259de4e
HAL_ChibiOS: reduce .text aigment to save flash space
2018-06-22 08:00:31 +10:00
Andrew Tridgell
608490f5ae
HAL_ChibiOS: fixed cube-orange bl build
2018-06-22 08:00:31 +10:00
Andrew Tridgell
f9faa0765d
HAL_ChibiOS: fixed bootloader IDs
2018-06-22 08:00:31 +10:00
Andrew Tridgell
3fc6824bfb
HAL_ChibiOS: setup more bootloader config files
2018-06-22 08:00:31 +10:00
Andrew Tridgell
0cd46c063c
HAL_ChibiOS: fixed flash driver for F7
...
we need a data sync barrier due to the F7 cache
2018-06-22 08:00:31 +10:00
Andrew Tridgell
82428dfbc6
HAL_ChibiOS: added f405-bl hwdef.dat
2018-06-22 08:00:31 +10:00
Andrew Tridgell
3ef88e1b8f
HAL_ChibiOS: allow flash support for bootloader
2018-06-22 08:00:31 +10:00
Andrew Tridgell
5216870492
HAL_ChibiOS: avoid strstr in usbcfg
...
saves nearly 2k of flash
2018-06-22 08:00:31 +10:00
Andrew Tridgell
c12d14d7a4
HAL_ChibiOS: check for ChibiOS features
2018-06-22 08:00:31 +10:00
Andrew Tridgell
03f67d82c9
HAL_ChibiOS: allow more ChibiOS functionality to be disabled
...
used by bootloader builds for minimal flash size
2018-06-22 08:00:31 +10:00
Andrew Tridgell
e3a23921a2
HAL_ChibiOS: fixed FLASH_LOAD_ADDRESS
...
needs 0x08000000 base
2018-06-22 08:00:31 +10:00
Andrew Tridgell
1c054f0e4a
HAL_ChibiOS: fixed clock line on fmuv5 I2C4
...
there was a typo in the datasheet
2018-06-21 13:08:20 +10:00
Andrew Tridgell
a8f99882ba
HAL_ChibiOS: allow FrSky_INV to be controlled as GPIO
...
this allows control via relay settings
2018-06-21 07:40:50 +10:00
Andrew Tridgell
e3b68876a9
HAL_ChibiOS: fixed tx_len on tx DMA timeout
2018-06-19 09:08:45 +10:00
Andrew Tridgell
8431a677d9
HAL_ChibiOS: added a timeout to DMA UART TX
...
this prevents a shared DMA channel being held for a long time if a CTS
pin is held either by not being connected or by a radio
2018-06-19 09:08:45 +10:00
Hyungsub
8ae2729022
AP_HAL_ChibiOS: fix memory leaks
...
Fixes #8644
2018-06-18 10:30:56 +01:00
Andrew Tridgell
1c4bf3d804
HAL_ChibiOS: fixed build warning
2018-06-15 11:26:40 +10:00
Lucas De Marchi
46213eb97e
chibios_hwdef: fix wrong uart index
...
calling uart_list.index() will find the first element with that name,
which is not really what we want when we have multiple EMPTY uarts.
2018-06-15 08:21:40 +10:00
Andrew Tridgell
00d919018b
HAL_ChibiOS: added RTC clock implementation
2018-06-15 08:01:22 +10:00
Andrew Tridgell
10ca1e78e8
HAL_ChibiOS: switched to Mode3 on SPI1
...
this is now working correctly
2018-06-13 20:05:26 +10:00
Andrew Tridgell
9d248456e4
HAL_ChibiOS: re-enable I2C4 DMA for F765
...
now we have fixed the error from the datasheet we can do DMA
2018-06-13 20:05:26 +10:00
Andrew Tridgell
ad3eca4e6b
HAL_ChibiOS: fixed I2C4 DMA streams
...
There is an error in the datasheet. See
https://community.st.com/thread/50484-documentation-error-on-dma-channels-for-i2c4-on-stm32f7
2018-06-13 20:05:26 +10:00
Andrew Tridgell
62e8fbb9d3
HAL_ChibiOS: fixed OMNIBUSF7V2 hwdef.dat
2018-06-13 20:05:26 +10:00
Andrew Tridgell
e068106669
HAL_ChibiOS: support I2C devices on STM32F7 without DMA
...
this allows us to support I2C4 on fmuv5
2018-06-13 20:05:26 +10:00
Alexander Malishev
289b93c3d0
HAL_ChibiOS: added parse_timer to chibios_hwdef.dat
2018-06-11 18:32:17 +10:00
Eugene Shamaev
2055f264e5
AP_HAL_ChibiOS: helper func
2018-06-09 22:46:48 -07:00
Andrew Tridgell
ab946b5d76
HAL_ChibiOS: disable debug code for FMUv5
2018-06-08 09:56:41 +10:00
Philip
2424e38ed2
HAL_ChibiOS: Update cube-orange hwdef.dat for USB IDs
2018-06-08 09:56:41 +10:00
Andrew Tridgell
058e83c180
HAL_ChibiOS: switched cube-orange SPI1 devices to Mode0
2018-06-08 09:56:41 +10:00
Andrew Tridgell
2df0a71a4b
HAL_ChibiOS: fixed flash load address in hwdef.h
2018-06-08 09:56:41 +10:00
Andrew Tridgell
3a7c1b4d42
HAL_ChibiOS: switch BMI055 to mode0 on fmuv5
2018-06-08 09:56:41 +10:00
Andrew Tridgell
3be9077ba9
HAL_ChibiOS: added FMUv5 FMU capture pins
2018-06-06 15:01:38 +10:00
Andrew Tridgell
c05086430d
HAL_ChibiOS: fixed hwdef.h generation for PWM on tim12
2018-06-06 15:01:38 +10:00
Andrew Tridgell
63087b6425
HAL_ChibiOS: enable fmu out 7 and 8 for fmuv5
...
these are exposed on the Pixhawk4
2018-06-06 15:01:38 +10:00
Alexander Malishev
eac5d13f1c
HAL_ChibiOS: use 2 channels in SoftSigReaderInt.cpp
2018-06-06 08:23:51 +10:00
Alexander Malishev
fd45b3a69b
HAL_ChibiOS: slightly increase EICU interrupt priority
2018-06-06 08:23:51 +10:00
Alexander Malishev
73d33356ad
HAL_ChibiOS: detect overcapture in SoftSigReaderInt.cpp
2018-06-06 08:23:51 +10:00
Andrew Tridgell
7a1f87eb52
HAL_ChibiOS: added cube-orange hwdef
2018-06-06 08:13:38 +10:00
Michael du Breuil
1123023a6f
AP_HAL_ChibiOS: Wrap process registration with a semaphore
2018-06-06 07:16:58 +10:00
Michael du Breuil
a832bdfd04
AP_HAL_ChibiOS: fix race condition on analog reading
2018-06-06 07:16:58 +10:00
Michael du Breuil
4a9fe1745f
AP_ChibiOS: Remove timer process suspension interface
2018-06-06 07:16:58 +10:00
Andrew Tridgell
1ed6a9d34b
HAL_ChibiOS: added MCU tables for STM32F777
2018-06-06 07:15:41 +10:00
Andrew Tridgell
d1caa86e12
HAL_ChibiOS: adjust DMA priorities for fmuv3
2018-06-06 07:15:41 +10:00
Andrew Tridgell
c273b23940
HAL_ChibiOS: moved MCU config to python database
...
this moves the key MCU config variables related to memory to the
python MCU database, allowing the hwdef.dat to be considerably simpler
2018-06-06 07:15:41 +10:00
Andrew Tridgell
f390e35c99
HAL_ChibiOS: use port_disable in reboot
...
this provides a more reliable way to stop all interrupts
2018-06-06 07:15:41 +10:00
Andrew Tridgell
a1c97d0585
HAL_ChibiOS: disable paranoid checks for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
a945c97ec6
HAL_ChibiOS: fixed 3-way DMA sharing bug
...
when we have 3 way contention across two DMA streams we could get the
dma_deallocate function called in an object from two places at
once. This adds a mutex that prevents that scenario
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0e09dc75c0
HAL_ChibiOS: flush all memory on chSysHalt()
...
this makes debugging a lot easier, as gdb can see the values in dcache
2018-06-06 07:15:41 +10:00
Andrew Tridgell
2493cdbcb6
HAL_ChibiOS: switch to new bouncebuffer system
...
this removes the dma_flush and dma_invalidate methods and uses a
common bouncebuffer system for all CPU types. This enables microSD
support on STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0b1e26a470
HAL_ChibiOS: added bouncebuffer system
...
this makes our bouncebuffers available for ChibiOS system
drivers. This is needed for SDMMCv1 on STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
56ce3f057d
HAL_ChibiOS: added DRDY and SDMMC pins for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
018c9ad40b
HAL_ChibiOS: fixed build warnings
2018-06-06 07:15:41 +10:00
Andrew Tridgell
f25b95f287
HAL_ChibiOS: fixed array length in ADC debug code
2018-06-06 07:15:41 +10:00
Andrew Tridgell
fef1b0ffc6
HAL_ChibiOS: fixed I2C flush/invalidate calls
2018-06-06 07:15:41 +10:00
Andrew Tridgell
0fade4eb9e
HAL_ChibiOS: make sure the UART bounce buffers are DMA safe
2018-06-06 07:15:41 +10:00
Andrew Tridgell
eec4a12cc2
HAL_ChibiOS: switched to using DTCM memory for DMA
...
this uses SRAM1 and SRAM2 for main memory, which enables the use of the
data cache for faster operation, and using DTCM for all DMA operations.
2018-06-06 07:15:41 +10:00
Andrew Tridgell
8b1db792ee
HAL_ChibiOS: ensure ADC memory is aligned for DMA access
2018-06-06 07:15:41 +10:00
Andrew Tridgell
bb2e7a189f
HAL_ChibiOS: added a debug function for showing stack free
...
this can be enabled when needed to investigate stack space remaining
2018-06-06 07:15:41 +10:00
Andrew Tridgell
010cd71ab6
HAL_ChibiOS: enable CAN on FMUv5
...
and fixed voltage scaling defaults
2018-06-06 07:15:41 +10:00
Andrew Tridgell
2087354939
HAL_ChibiOS: align buffers to STM32F7 cache lines
...
this allows for DMA flush and invalidate operations to work on all
dynamically allocated memory
2018-06-06 07:15:41 +10:00
Andrew Tridgell
762e4f9915
HAL_ChibiOS: fixed dma priorities for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
77d95f6744
HAL_ChibiOS: fmuv5 tweaks
2018-06-06 07:15:41 +10:00
Andrew Tridgell
a220220758
HAL_ChibiOS: added comment on IS_DMA_SAFE()
2018-06-06 07:15:41 +10:00
Andrew Tridgell
4d4ea894e8
HAL_ChibiOS: disable i2c device debug code
2018-06-06 07:15:41 +10:00
Andrew Tridgell
edb831653f
HAL_ChibiOS: added dma_flush and dma_invalidate operations
...
these are needed to manage the data cache on the STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
7449e15313
HAL_ChibiOS: disable flash storage option on FMUv5
...
F7 flash driver not working yet
2018-06-06 07:15:41 +10:00
Andrew Tridgell
b961e12456
HAL_ChibiOS: support having no flash storage option
2018-06-06 07:15:41 +10:00
Andrew Tridgell
2d8748ddce
HAL_ChibiOS: enable ADCs and buzzer for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
6aab9232ef
HAL_ChibiOS: enable aux pwm channels on FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
db9bf19e46
HAL_ChibiOS: enable i2c for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
77bb69fa2e
HAL_ChibiOS: enabled UARTs for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
ac44189ab2
HAL_ChibiOS: setup two IMUs for FMUv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
721f3cd5d1
HAL_ChibiOS: fixed flash layout for F7
...
thanks to @alielectric
2018-06-06 07:15:41 +10:00
Andrew Tridgell
01f5d1a17c
HAL_ChibiOS: first IMU working
2018-06-06 07:15:41 +10:00
Andrew Tridgell
eca634ec62
HAL_ChibiOS: support 6 SPI buses
2018-06-06 07:15:41 +10:00
Andrew Tridgell
4ad757b4d1
HAL_ChibiOS: fixed pincount for F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
876899c48d
HAL_ChibiOS: baro and FRAM working for fmuv5
2018-06-06 07:15:41 +10:00
Andrew Tridgell
8d2f57898b
HAL_ChibiOS: adjust pin counts for STM32F7
2018-06-06 07:15:41 +10:00
Andrew Tridgell
1f6ffc48e5
HAL_ChibiOS: allow STM32F7 to build with flash driver
2018-06-06 07:15:41 +10:00
Andrew Tridgell
7c09a1781b
HAL_ChibiOS: started on fmuv5
2018-06-06 07:15:41 +10:00