Commit Graph

816 Commits

Author SHA1 Message Date
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