HAL_ChibiOS: bring in hal.h where it is needed

This commit is contained in:
Andrew Tridgell 2022-02-21 14:44:56 +11:00
parent b248fdfcbb
commit 638e20a0b9
23 changed files with 34 additions and 2 deletions

View File

@ -38,6 +38,7 @@
* Code by Siddharth Bharat Purohit * Code by Siddharth Bharat Purohit
*/ */
#include <hal.h>
#include "AP_HAL_ChibiOS.h" #include "AP_HAL_ChibiOS.h"
#if HAL_NUM_CAN_IFACES #if HAL_NUM_CAN_IFACES

View File

@ -38,6 +38,7 @@
* Code by Siddharth Bharat Purohit * Code by Siddharth Bharat Purohit
*/ */
#include <hal.h>
#include "AP_HAL_ChibiOS.h" #include "AP_HAL_ChibiOS.h"
#if HAL_NUM_CAN_IFACES #if HAL_NUM_CAN_IFACES

View File

@ -15,6 +15,7 @@
* Code by Andy Piper and the betaflight team * Code by Andy Piper and the betaflight team
*/ */
#include <hal.h>
#include "AP_HAL_ChibiOS.h" #include "AP_HAL_ChibiOS.h"
#if HAL_WITH_DSP #if HAL_WITH_DSP

View File

@ -12,6 +12,8 @@
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <hal.h>
#include "Device.h" #include "Device.h"
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>

View File

@ -14,6 +14,8 @@
* *
* Code by Andrew Tridgell and Siddharth Bharat Purohit * Code by Andrew Tridgell and Siddharth Bharat Purohit
*/ */
#include <hal.h>
#include "GPIO.h" #include "GPIO.h"
#include <AP_BoardConfig/AP_BoardConfig.h> #include <AP_BoardConfig/AP_BoardConfig.h>

View File

@ -19,6 +19,7 @@
#include <assert.h> #include <assert.h>
#include <hal.h>
#include "HAL_ChibiOS_Class.h" #include "HAL_ChibiOS_Class.h"
#include <AP_HAL_Empty/AP_HAL_Empty_Private.h> #include <AP_HAL_Empty/AP_HAL_Empty_Private.h>
#include <AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h> #include <AP_HAL_ChibiOS/AP_HAL_ChibiOS_Private.h>

View File

@ -26,7 +26,6 @@
#endif #endif
#include <stdio.h> #include <stdio.h>
#include "ch.h" #include "ch.h"
#include "hal.h"
class HAL_ChibiOS : public AP_HAL::HAL { class HAL_ChibiOS : public AP_HAL::HAL {
public: public:

View File

@ -12,6 +12,8 @@
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <hal.h>
#include "I2CDevice.h" #include "I2CDevice.h"
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>

View File

@ -17,6 +17,7 @@
* Siddharth Bharat Purohit, Cubepilot Pty. Ltd. * Siddharth Bharat Purohit, Cubepilot Pty. Ltd.
*/ */
#include <hal.h>
#include "QSPIDevice.h" #include "QSPIDevice.h"
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>

View File

@ -14,6 +14,8 @@
* *
* Code by Andrew Tridgell and Siddharth Bharat Purohit * Code by Andrew Tridgell and Siddharth Bharat Purohit
*/ */
#include <hal.h>
#include "RCInput.h" #include "RCInput.h"
#include "hal.h" #include "hal.h"
#include "hwdef/common/ppm.h" #include "hwdef/common/ppm.h"

View File

@ -15,6 +15,8 @@
* Code by Andrew Tridgell and Siddharth Bharat Purohit * Code by Andrew Tridgell and Siddharth Bharat Purohit
* Bi-directional dshot based on Betaflight, code by Andy Piper 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 "RCOutput.h"
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include <AP_BoardConfig/AP_BoardConfig.h> #include <AP_BoardConfig/AP_BoardConfig.h>

View File

@ -14,6 +14,8 @@
* *
* Bi-directional dshot based on Betaflight, code by Andy Piper 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 "RCOutput.h"
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include "hwdef/common/stm32_util.h" #include "hwdef/common/stm32_util.h"

View File

@ -12,6 +12,8 @@
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <hal.h>
#include "RCOutput.h" #include "RCOutput.h"
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include "hwdef/common/stm32_util.h" #include "hwdef/common/stm32_util.h"

View File

@ -12,6 +12,8 @@
* You should have received a copy of the GNU General Public License along * You should have received a copy of the GNU General Public License along
* with this program. If not, see <http://www.gnu.org/licenses/>. * with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include <hal.h>
#include "SPIDevice.h" #include "SPIDevice.h"
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>

View File

@ -16,6 +16,7 @@
*/ */
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include <hal.h>
#include "AP_HAL_ChibiOS.h" #include "AP_HAL_ChibiOS.h"
#include "Scheduler.h" #include "Scheduler.h"
#include "Util.h" #include "Util.h"

View File

@ -14,8 +14,10 @@
* *
* Code by Andrew Tridgell and Siddharth Bharat Purohit * Code by Andrew Tridgell and Siddharth Bharat Purohit
*/ */
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include "Semaphores.h" #include "Semaphores.h"
#include <hal.h>
#include "AP_HAL_ChibiOS.h" #include "AP_HAL_ChibiOS.h"
#if CH_CFG_USE_MUTEXES == TRUE #if CH_CFG_USE_MUTEXES == TRUE

View File

@ -15,6 +15,7 @@
* Code by Andrew Tridgell and Siddharth Bharat Purohit * Code by Andrew Tridgell and Siddharth Bharat Purohit
*/ */
#include <hal.h>
#include "SoftSigReader.h" #include "SoftSigReader.h"
#include "hwdef/common/stm32_util.h" #include "hwdef/common/stm32_util.h"

View File

@ -14,6 +14,7 @@
* *
*/ */
#include <hal.h>
#include "SoftSigReaderInt.h" #include "SoftSigReaderInt.h"
#include "hwdef/common/stm32_util.h" #include "hwdef/common/stm32_util.h"

View File

@ -17,6 +17,8 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !defined(HAL_NO_UARTDRIVER) #if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !defined(HAL_NO_UARTDRIVER)
#include <hal.h>
#include "UARTDriver.h" #include "UARTDriver.h"
#include "GPIO.h" #include "GPIO.h"
#include <usbcfg.h> #include <usbcfg.h>

View File

@ -17,6 +17,7 @@
#include <AP_HAL/AP_HAL.h> #include <AP_HAL/AP_HAL.h>
#include <AP_Math/AP_Math.h> #include <AP_Math/AP_Math.h>
#include <hal.h>
#include "Util.h" #include "Util.h"
#include <ch.h> #include <ch.h>
#include "RCOutput.h" #include "RCOutput.h"

View File

@ -53,7 +53,8 @@ mcu = {
'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard', 'CPU_FLAGS' : '-mcpu=cortex-m7 -mfpu=fpv5-d16 -mfloat-abi=hard',
'DEFINES' : { 'DEFINES' : {
'HAL_HAVE_HARDWARE_DOUBLE' : '1' 'HAL_HAVE_HARDWARE_DOUBLE' : '1',
'HAL_WITH_MCU_MONITORING' : '1'
} }
} }

View File

@ -14,6 +14,7 @@
* *
*/ */
#include <hal.h>
#include "SPIDevice.h" #include "SPIDevice.h"
#include "sdcard.h" #include "sdcard.h"
#include "hwdef/common/spi_hook.h" #include "hwdef/common/spi_hook.h"

View File

@ -14,6 +14,8 @@
* *
* Code by Andrew Tridgell and Siddharth Bharat Purohit * Code by Andrew Tridgell and Siddharth Bharat Purohit
*/ */
#include <hal.h>
#include "shared_dma.h" #include "shared_dma.h"
/* /*