@ -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
#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 "Device.h"
#include <AP_HAL/AP_HAL.h>
@ -14,6 +14,8 @@
*
* Code by Andrew Tridgell and Siddharth Bharat Purohit
#include "GPIO.h"
#include <AP_BoardConfig/AP_BoardConfig.h>
@ -19,6 +19,7 @@
#include <assert.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:
#include "I2CDevice.h"
@ -17,6 +17,7 @@
* Siddharth Bharat Purohit, Cubepilot Pty. Ltd.
#include "QSPIDevice.h"
#include "RCInput.h"
#include "hwdef/common/ppm.h"
@ -15,6 +15,8 @@
* Bi-directional dshot based on Betaflight, code by Andy Piper and Siddharth Bharat Purohit
#include "RCOutput.h"
#include <AP_Math/AP_Math.h>
#include "hwdef/common/stm32_util.h"
#include "SPIDevice.h"
@ -16,6 +16,7 @@
#include "Scheduler.h"
#include "Util.h"
@ -14,8 +14,10 @@
#include "Semaphores.h"
#if CH_CFG_USE_MUTEXES == TRUE
#include "SoftSigReader.h"
@ -14,6 +14,7 @@
#include "SoftSigReaderInt.h"
@ -17,6 +17,8 @@
#if CONFIG_HAL_BOARD == HAL_BOARD_CHIBIOS && !defined(HAL_NO_UARTDRIVER)
#include "UARTDriver.h"
#include <usbcfg.h>
#include <ch.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'
}
#include "sdcard.h"
#include "hwdef/common/spi_hook.h"
#include "shared_dma.h"
/*