mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-19 14:23:57 -04:00
HAL_ChibiOS: bring in hal.h where it is needed
This commit is contained in:
parent
b248fdfcbb
commit
638e20a0b9
@ -38,6 +38,7 @@
|
||||
* Code by Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "AP_HAL_ChibiOS.h"
|
||||
|
||||
#if HAL_NUM_CAN_IFACES
|
||||
|
@ -38,6 +38,7 @@
|
||||
* Code by Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "AP_HAL_ChibiOS.h"
|
||||
|
||||
#if HAL_NUM_CAN_IFACES
|
||||
|
@ -15,6 +15,7 @@
|
||||
* Code by Andy Piper and the betaflight team
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "AP_HAL_ChibiOS.h"
|
||||
|
||||
#if HAL_WITH_DSP
|
||||
|
@ -12,6 +12,8 @@
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "Device.h"
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
@ -14,6 +14,8 @@
|
||||
*
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "GPIO.h"
|
||||
|
||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||
|
@ -19,6 +19,7 @@
|
||||
|
||||
#include <assert.h>
|
||||
|
||||
#include <hal.h>
|
||||
#include "HAL_ChibiOS_Class.h"
|
||||
#include <AP_HAL_Empty/AP_HAL_Empty_Private.h>
|
||||
#include <AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h>
|
||||
|
@ -26,7 +26,6 @@
|
||||
#endif
|
||||
#include <stdio.h>
|
||||
#include "ch.h"
|
||||
#include "hal.h"
|
||||
|
||||
class HAL_ChibiOS : public AP_HAL::HAL {
|
||||
public:
|
||||
|
@ -12,6 +12,8 @@
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "I2CDevice.h"
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
@ -17,6 +17,7 @@
|
||||
* Siddharth Bharat Purohit, Cubepilot Pty. Ltd.
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "QSPIDevice.h"
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
@ -14,6 +14,8 @@
|
||||
*
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "RCInput.h"
|
||||
#include "hal.h"
|
||||
#include "hwdef/common/ppm.h"
|
||||
|
@ -15,6 +15,8 @@
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
* Bi-directional dshot based on Betaflight, code by Andy Piper and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "RCOutput.h"
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include <AP_BoardConfig/AP_BoardConfig.h>
|
||||
|
@ -14,6 +14,8 @@
|
||||
*
|
||||
* Bi-directional dshot based on Betaflight, code by Andy Piper and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "RCOutput.h"
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include "hwdef/common/stm32_util.h"
|
||||
|
@ -12,6 +12,8 @@
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "RCOutput.h"
|
||||
#include <AP_Math/AP_Math.h>
|
||||
#include "hwdef/common/stm32_util.h"
|
||||
|
@ -12,6 +12,8 @@
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "SPIDevice.h"
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
@ -16,6 +16,7 @@
|
||||
*/
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#include <hal.h>
|
||||
#include "AP_HAL_ChibiOS.h"
|
||||
#include "Scheduler.h"
|
||||
#include "Util.h"
|
||||
|
@ -14,8 +14,10 @@
|
||||
*
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include "Semaphores.h"
|
||||
#include <hal.h>
|
||||
#include "AP_HAL_ChibiOS.h"
|
||||
|
||||
#if CH_CFG_USE_MUTEXES == TRUE
|
||||
|
@ -15,6 +15,7 @@
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "SoftSigReader.h"
|
||||
#include "hwdef/common/stm32_util.h"
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "SoftSigReaderInt.h"
|
||||
#include "hwdef/common/stm32_util.h"
|
||||
|
||||
|
@ -17,6 +17,8 @@
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
|
||||
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !defined(HAL_NO_UARTDRIVER)
|
||||
|
||||
#include <hal.h>
|
||||
#include "UARTDriver.h"
|
||||
#include "GPIO.h"
|
||||
#include <usbcfg.h>
|
||||
|
@ -17,6 +17,7 @@
|
||||
#include <AP_HAL/AP_HAL.h>
|
||||
#include <AP_Math/AP_Math.h>
|
||||
|
||||
#include <hal.h>
|
||||
#include "Util.h"
|
||||
#include <ch.h>
|
||||
#include "RCOutput.h"
|
||||
|
@ -53,7 +53,8 @@ mcu = {
|
||||
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
|
||||
|
||||
'DEFINES' : {
|
||||
'HAL_HAVE_HARDWARE_DOUBLE' : '1'
|
||||
'HAL_HAVE_HARDWARE_DOUBLE' : '1',
|
||||
'HAL_WITH_MCU_MONITORING' : '1'
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "SPIDevice.h"
|
||||
#include "sdcard.h"
|
||||
#include "hwdef/common/spi_hook.h"
|
||||
|
@ -14,6 +14,8 @@
|
||||
*
|
||||
* Code by Andrew Tridgell and Siddharth Bharat Purohit
|
||||
*/
|
||||
|
||||
#include <hal.h>
|
||||
#include "shared_dma.h"
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user