mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
HAL_ChibiOS: fixes for build with master ChibiOS
This commit is contained in:
parent
230ca049c1
commit
a7a4c08589
@ -1336,7 +1336,7 @@ bool RCOutput::serial_write_bytes(const uint8_t *bytes, uint16_t len)
|
|||||||
*/
|
*/
|
||||||
void RCOutput::serial_bit_irq(void)
|
void RCOutput::serial_bit_irq(void)
|
||||||
{
|
{
|
||||||
systime_t now = chVTGetSystemTimeX();
|
systime_t now = AP_HAL::micros();
|
||||||
uint8_t bit = palReadLine(irq.line);
|
uint8_t bit = palReadLine(irq.line);
|
||||||
bool send_signal = false;
|
bool send_signal = false;
|
||||||
|
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "hwdef.h"
|
#include "hwdef.h"
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_0_
|
#define _CHIBIOS_RT_CONF_VER_6_1_
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
* @name System timers settings
|
* @name System timers settings
|
||||||
@ -410,6 +410,39 @@
|
|||||||
#define CH_CFG_USE_PIPES FALSE
|
#define CH_CFG_USE_PIPES FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Objects Caches APIs.
|
||||||
|
* @details If enabled then the objects caches APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_OBJ_CACHES)
|
||||||
|
#define CH_CFG_USE_OBJ_CACHES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Delegate threads APIs.
|
||||||
|
* @details If enabled then the delegate threads APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_DELEGATES)
|
||||||
|
#define CH_CFG_USE_DELEGATES TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Jobs Queues APIs.
|
||||||
|
* @details If enabled then the jobs queues APIs are included
|
||||||
|
* in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_JOBS)
|
||||||
|
#define CH_CFG_USE_JOBS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Dynamic Threads APIs.
|
* @brief Dynamic Threads APIs.
|
||||||
* @details If enabled then the dynamic threads creation APIs are included
|
* @details If enabled then the dynamic threads creation APIs are included
|
||||||
|
@ -96,7 +96,7 @@ include $(CHIBIOS)/$(CHIBIOS_STARTUP_MK)
|
|||||||
# HAL-OSAL files (optional).
|
# HAL-OSAL files (optional).
|
||||||
include $(CHIBIOS)/os/hal/hal.mk
|
include $(CHIBIOS)/os/hal/hal.mk
|
||||||
include $(CHIBIOS)/$(CHIBIOS_PLATFORM_MK)
|
include $(CHIBIOS)/$(CHIBIOS_PLATFORM_MK)
|
||||||
include $(CHIBIOS)/os/hal/osal/rt/osal.mk
|
include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
|
||||||
# RTOS files (optional).
|
# RTOS files (optional).
|
||||||
include $(CHIBIOS)/os/rt/rt.mk
|
include $(CHIBIOS)/os/rt/rt.mk
|
||||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
|
||||||
|
@ -54,18 +54,18 @@ SECTIONS
|
|||||||
|
|
||||||
constructors : ALIGN(4) SUBALIGN(4)
|
constructors : ALIGN(4) SUBALIGN(4)
|
||||||
{
|
{
|
||||||
__init_array_start = .;
|
__init_array_base__ = .;
|
||||||
KEEP(*(SORT(.init_array.*)))
|
KEEP(*(SORT(.init_array.*)))
|
||||||
KEEP(*(.init_array))
|
KEEP(*(.init_array))
|
||||||
__init_array_end = .;
|
__init_array_end__ = .;
|
||||||
} > flash
|
} > flash
|
||||||
|
|
||||||
destructors : ALIGN(4) SUBALIGN(4)
|
destructors : ALIGN(4) SUBALIGN(4)
|
||||||
{
|
{
|
||||||
__fini_array_start = .;
|
__fini_array_base__ = .;
|
||||||
KEEP(*(.fini_array))
|
KEEP(*(.fini_array))
|
||||||
KEEP(*(SORT(.fini_array.*)))
|
KEEP(*(SORT(.fini_array.*)))
|
||||||
__fini_array_end = .;
|
__fini_array_end__ = .;
|
||||||
} > flash
|
} > flash
|
||||||
|
|
||||||
.text : ALIGN(4) SUBALIGN(4)
|
.text : ALIGN(4) SUBALIGN(4)
|
||||||
@ -138,25 +138,25 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
PROVIDE(_textdata = LOADADDR(.data));
|
PROVIDE(_textdata = LOADADDR(.data));
|
||||||
PROVIDE(_data = .);
|
PROVIDE(_data = .);
|
||||||
_textdata_start = LOADADDR(.data);
|
__textdata_base__ = LOADADDR(.data);
|
||||||
_data_start = .;
|
__data_base__ = .;
|
||||||
*(.data)
|
*(.data)
|
||||||
*(.data.*)
|
*(.data.*)
|
||||||
*(.ramtext)
|
*(.ramtext)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
PROVIDE(_edata = .);
|
PROVIDE(_edata = .);
|
||||||
_data_end = .;
|
__data_end__ = .;
|
||||||
} > DATA_RAM AT > flash
|
} > DATA_RAM AT > flash
|
||||||
|
|
||||||
.bss (NOLOAD) : ALIGN(4)
|
.bss (NOLOAD) : ALIGN(4)
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss_start = .;
|
__bss_base__ = .;
|
||||||
*(.bss)
|
*(.bss)
|
||||||
*(.bss.*)
|
*(.bss.*)
|
||||||
*(COMMON)
|
*(COMMON)
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_bss_end = .;
|
__bss_end__ = .;
|
||||||
PROVIDE(end = .);
|
PROVIDE(end = .);
|
||||||
} > BSS_RAM
|
} > BSS_RAM
|
||||||
|
|
||||||
|
@ -43,7 +43,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_0_
|
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -81,6 +82,13 @@
|
|||||||
#define HAL_USE_DAC FALSE
|
#define HAL_USE_DAC FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Enables the EFlash subsystem.
|
||||||
|
*/
|
||||||
|
#if !defined(HAL_USE_EFL) || defined(__DOXYGEN__)
|
||||||
|
#define HAL_USE_EFL FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enables the GPT subsystem. We don't need it on most boards
|
* @brief Enables the GPT subsystem. We don't need it on most boards
|
||||||
* in ArduPilot, so it is disabled by default
|
* in ArduPilot, so it is disabled by default
|
||||||
|
Loading…
Reference in New Issue
Block a user