git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6262 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
e5e278c89f
commit
867c7c95aa
|
@ -218,7 +218,7 @@ extern "C" {
|
|||
void sduStart(SerialUSBDriver *sdup, const SerialUSBConfig *config);
|
||||
void sduStop(SerialUSBDriver *sdup);
|
||||
void sduConfigureHookI(SerialUSBDriver *sdup);
|
||||
bool_t sduRequestsHook(USBDriver *usbp);
|
||||
bool sduRequestsHook(USBDriver *usbp);
|
||||
void sduDataTransmitted(USBDriver *usbp, usbep_t ep);
|
||||
void sduDataReceived(USBDriver *usbp, usbep_t ep);
|
||||
void sduInterruptTransmitted(USBDriver *usbp, usbep_t ep);
|
||||
|
|
|
@ -319,7 +319,7 @@ typedef void (*usbeventcb_t)(USBDriver *usbp, usbevent_t event);
|
|||
* @retval FALSE Request not recognized by the handler.
|
||||
* @retval TRUE Request handled.
|
||||
*/
|
||||
typedef bool_t (*usbreqhandler_t)(USBDriver *usbp);
|
||||
typedef bool (*usbreqhandler_t)(USBDriver *usbp);
|
||||
|
||||
/**
|
||||
* @brief Type of an USB descriptor-retrieving callback.
|
||||
|
@ -553,10 +553,10 @@ extern "C" {
|
|||
input_queue_t *iqp, size_t n);
|
||||
void usbPrepareQueuedTransmit(USBDriver *usbp, usbep_t ep,
|
||||
output_queue_t *oqp, size_t n);
|
||||
bool_t usbStartReceiveI(USBDriver *usbp, usbep_t ep);
|
||||
bool_t usbStartTransmitI(USBDriver *usbp, usbep_t ep);
|
||||
bool_t usbStallReceiveI(USBDriver *usbp, usbep_t ep);
|
||||
bool_t usbStallTransmitI(USBDriver *usbp, usbep_t ep);
|
||||
bool usbStartReceiveI(USBDriver *usbp, usbep_t ep);
|
||||
bool usbStartTransmitI(USBDriver *usbp, usbep_t ep);
|
||||
bool usbStallReceiveI(USBDriver *usbp, usbep_t ep);
|
||||
bool usbStallTransmitI(USBDriver *usbp, usbep_t ep);
|
||||
void _usb_reset(USBDriver *usbp);
|
||||
void _usb_ep0setup(USBDriver *usbp, usbep_t ep);
|
||||
void _usb_ep0in(USBDriver *usbp, usbep_t ep);
|
||||
|
|
|
@ -216,7 +216,7 @@ void spi_lld_start(SPIDriver *spip) {
|
|||
if (spip->state == SPI_STOP) {
|
||||
#if STM32_SPI_USE_SPI1
|
||||
if (&SPID1 == spip) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(spip->dmarx,
|
||||
STM32_SPI_SPI1_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)spi_lld_serve_rx_interrupt,
|
||||
|
@ -232,7 +232,7 @@ void spi_lld_start(SPIDriver *spip) {
|
|||
#endif
|
||||
#if STM32_SPI_USE_SPI2
|
||||
if (&SPID2 == spip) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(spip->dmarx,
|
||||
STM32_SPI_SPI2_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)spi_lld_serve_rx_interrupt,
|
||||
|
@ -248,7 +248,7 @@ void spi_lld_start(SPIDriver *spip) {
|
|||
#endif
|
||||
#if STM32_SPI_USE_SPI3
|
||||
if (&SPID3 == spip) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(spip->dmarx,
|
||||
STM32_SPI_SPI3_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)spi_lld_serve_rx_interrupt,
|
||||
|
|
|
@ -391,7 +391,7 @@ void uart_lld_start(UARTDriver *uartp) {
|
|||
if (uartp->state == UART_STOP) {
|
||||
#if STM32_UART_USE_USART1
|
||||
if (&UARTD1 == uartp) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(uartp->dmarx,
|
||||
STM32_UART_USART1_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)uart_lld_serve_rx_end_irq,
|
||||
|
@ -411,7 +411,7 @@ void uart_lld_start(UARTDriver *uartp) {
|
|||
|
||||
#if STM32_UART_USE_USART2
|
||||
if (&UARTD2 == uartp) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(uartp->dmarx,
|
||||
STM32_UART_USART2_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)uart_lld_serve_rx_end_irq,
|
||||
|
@ -431,7 +431,7 @@ void uart_lld_start(UARTDriver *uartp) {
|
|||
|
||||
#if STM32_UART_USE_USART3
|
||||
if (&UARTD3 == uartp) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(uartp->dmarx,
|
||||
STM32_UART_USART3_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)uart_lld_serve_rx_end_irq,
|
||||
|
|
|
@ -484,7 +484,7 @@ void can_lld_stop(CANDriver *canp) {
|
|||
*
|
||||
* @notapi
|
||||
*/
|
||||
bool_t can_lld_is_tx_empty(CANDriver *canp, canmbx_t mailbox) {
|
||||
bool can_lld_is_tx_empty(CANDriver *canp, canmbx_t mailbox) {
|
||||
|
||||
switch (mailbox) {
|
||||
case CAN_ANY_MAILBOX:
|
||||
|
@ -557,7 +557,7 @@ void can_lld_transmit(CANDriver *canp,
|
|||
*
|
||||
* @notapi
|
||||
*/
|
||||
bool_t can_lld_is_rx_nonempty(CANDriver *canp, canmbx_t mailbox) {
|
||||
bool can_lld_is_rx_nonempty(CANDriver *canp, canmbx_t mailbox) {
|
||||
|
||||
switch (mailbox) {
|
||||
case CAN_ANY_MAILBOX:
|
||||
|
|
|
@ -341,13 +341,11 @@ extern "C" {
|
|||
void can_lld_init(void);
|
||||
void can_lld_start(CANDriver *canp);
|
||||
void can_lld_stop(CANDriver *canp);
|
||||
bool_t can_lld_is_tx_empty(CANDriver *canp,
|
||||
canmbx_t mailbox);
|
||||
bool can_lld_is_tx_empty(CANDriver *canp, canmbx_t mailbox);
|
||||
void can_lld_transmit(CANDriver *canp,
|
||||
canmbx_t mailbox,
|
||||
const CANTxFrame *crfp);
|
||||
bool_t can_lld_is_rx_nonempty(CANDriver *canp,
|
||||
canmbx_t mailbox);
|
||||
bool can_lld_is_rx_nonempty(CANDriver *canp, canmbx_t mailbox);
|
||||
void can_lld_receive(CANDriver *canp,
|
||||
canmbx_t mailbox,
|
||||
CANRxFrame *ctfp);
|
||||
|
|
|
@ -179,7 +179,7 @@ void adc_lld_start(ADCDriver *adcp) {
|
|||
if (adcp->state == ADC_STOP) {
|
||||
#if STM32_ADC_USE_ADC1
|
||||
if (&ADCD1 == adcp) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(adcp->dmastp,
|
||||
STM32_ADC_ADC1_DMA_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)adc_lld_serve_rx_interrupt,
|
||||
|
|
|
@ -194,7 +194,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Enables the circular buffer mode for the group.
|
||||
*/
|
||||
bool_t circular;
|
||||
bool circular;
|
||||
/**
|
||||
* @brief Number of the analog channels belonging to the conversion group.
|
||||
*/
|
||||
|
|
|
@ -223,7 +223,7 @@ void dmaInit(void) {
|
|||
*
|
||||
* @special
|
||||
*/
|
||||
bool_t dmaStreamAllocate(const stm32_dma_stream_t *dmastp,
|
||||
bool dmaStreamAllocate(const stm32_dma_stream_t *dmastp,
|
||||
uint32_t priority,
|
||||
stm32_dmaisr_t func,
|
||||
void *param) {
|
||||
|
|
|
@ -370,7 +370,7 @@ void adc_lld_start(ADCDriver *adcp) {
|
|||
if (adcp->state == ADC_STOP) {
|
||||
#if STM32_ADC_USE_ADC1
|
||||
if (&ADCD1 == adcp) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(adcp->dmastp,
|
||||
STM32_ADC_ADC12_DMA_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)adc_lld_serve_dma_interrupt,
|
||||
|
@ -382,7 +382,7 @@ void adc_lld_start(ADCDriver *adcp) {
|
|||
|
||||
#if STM32_ADC_USE_ADC3
|
||||
if (&ADCD3 == adcp) {
|
||||
bool_t b;
|
||||
bool b;
|
||||
b = dmaStreamAllocate(adcp->dmastp,
|
||||
STM32_ADC_ADC34_DMA_IRQ_PRIORITY,
|
||||
(stm32_dmaisr_t)adc_lld_serve_dma_interrupt,
|
||||
|
|
|
@ -389,7 +389,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Enables the circular buffer mode for the group.
|
||||
*/
|
||||
bool_t circular;
|
||||
bool circular;
|
||||
/**
|
||||
* @brief Number of the analog channels belonging to the conversion group.
|
||||
*/
|
||||
|
|
|
@ -373,7 +373,7 @@ void dmaInit(void) {
|
|||
*
|
||||
* @special
|
||||
*/
|
||||
bool_t dmaStreamAllocate(const stm32_dma_stream_t *dmastp,
|
||||
bool dmaStreamAllocate(const stm32_dma_stream_t *dmastp,
|
||||
uint32_t priority,
|
||||
stm32_dmaisr_t func,
|
||||
void *param) {
|
||||
|
|
|
@ -345,7 +345,7 @@ typedef struct {
|
|||
/**
|
||||
* @brief Enables the circular buffer mode for the group.
|
||||
*/
|
||||
bool_t circular;
|
||||
bool circular;
|
||||
/**
|
||||
* @brief Number of the analog channels belonging to the conversion group.
|
||||
*/
|
||||
|
|
|
@ -454,7 +454,7 @@ void dmaInit(void) {
|
|||
*
|
||||
* @special
|
||||
*/
|
||||
bool_t dmaStreamAllocate(const stm32_dma_stream_t *dmastp,
|
||||
bool dmaStreamAllocate(const stm32_dma_stream_t *dmastp,
|
||||
uint32_t priority,
|
||||
stm32_dmaisr_t func,
|
||||
void *param) {
|
||||
|
|
|
@ -289,7 +289,7 @@ void sduConfigureHookI(SerialUSBDriver *sdup) {
|
|||
* @retval TRUE Message handled internally.
|
||||
* @retval FALSE Message not handled.
|
||||
*/
|
||||
bool_t sduRequestsHook(USBDriver *usbp) {
|
||||
bool sduRequestsHook(USBDriver *usbp) {
|
||||
|
||||
if ((usbp->setup[0] & USB_RTYPE_TYPE_MASK) == USB_RTYPE_TYPE_CLASS) {
|
||||
switch (usbp->setup[1]) {
|
||||
|
|
|
@ -77,7 +77,7 @@ static void set_address(USBDriver *usbp) {
|
|||
* @retval FALSE Request not recognized by the handler or error.
|
||||
* @retval TRUE Request handled.
|
||||
*/
|
||||
static bool_t default_handler(USBDriver *usbp) {
|
||||
static bool default_handler(USBDriver *usbp) {
|
||||
const USBDescriptor *dp;
|
||||
|
||||
/* Decoding the request.*/
|
||||
|
@ -471,7 +471,7 @@ void usbPrepareQueuedTransmit(USBDriver *usbp, usbep_t ep,
|
|||
*
|
||||
* @iclass
|
||||
*/
|
||||
bool_t usbStartReceiveI(USBDriver *usbp, usbep_t ep) {
|
||||
bool usbStartReceiveI(USBDriver *usbp, usbep_t ep) {
|
||||
|
||||
osalDbgCheckClassI();
|
||||
osalDbgCheck(usbp != NULL);
|
||||
|
@ -498,7 +498,7 @@ bool_t usbStartReceiveI(USBDriver *usbp, usbep_t ep) {
|
|||
*
|
||||
* @iclass
|
||||
*/
|
||||
bool_t usbStartTransmitI(USBDriver *usbp, usbep_t ep) {
|
||||
bool usbStartTransmitI(USBDriver *usbp, usbep_t ep) {
|
||||
|
||||
osalDbgCheckClassI();
|
||||
osalDbgCheck(usbp != NULL);
|
||||
|
@ -523,7 +523,7 @@ bool_t usbStartTransmitI(USBDriver *usbp, usbep_t ep) {
|
|||
*
|
||||
* @iclass
|
||||
*/
|
||||
bool_t usbStallReceiveI(USBDriver *usbp, usbep_t ep) {
|
||||
bool usbStallReceiveI(USBDriver *usbp, usbep_t ep) {
|
||||
|
||||
osalDbgCheckClassI();
|
||||
osalDbgCheck(usbp != NULL);
|
||||
|
@ -547,7 +547,7 @@ bool_t usbStallReceiveI(USBDriver *usbp, usbep_t ep) {
|
|||
*
|
||||
* @iclass
|
||||
*/
|
||||
bool_t usbStallTransmitI(USBDriver *usbp, usbep_t ep) {
|
||||
bool usbStallTransmitI(USBDriver *usbp, usbep_t ep) {
|
||||
|
||||
osalDbgCheckClassI();
|
||||
osalDbgCheck(usbp != NULL);
|
||||
|
|
|
@ -257,7 +257,7 @@ static inline bool chVTIsSystemTimeWithin(systime_t start, systime_t end) {
|
|||
/**
|
||||
* @brief Returns @p true if the specified timer is armed.
|
||||
* @pre The timer must have been initialized using @p chVTObjectInit()
|
||||
* or @p chVTSetI() (or @p chVTSetI() variants).
|
||||
* or @p chVTDoSetI().
|
||||
*
|
||||
* @param[in] vtp the @p virtual_timer_t structure pointer
|
||||
* @return true if the timer is armed.
|
||||
|
@ -274,6 +274,8 @@ static inline bool chVTIsArmedI(virtual_timer_t *vtp) {
|
|||
/**
|
||||
* @brief Disables a Virtual Timer.
|
||||
* @note The timer is first checked and disabled only if armed.
|
||||
* @pre The timer must have been initialized using @p chVTObjectInit()
|
||||
* or @p chVTDoSetI().
|
||||
*
|
||||
* @param[in] vtp the @p virtual_timer_t structure pointer
|
||||
*
|
||||
|
@ -288,6 +290,8 @@ static inline void chVTResetI(virtual_timer_t *vtp) {
|
|||
/**
|
||||
* @brief Disables a Virtual Timer.
|
||||
* @note The timer is first checked and disabled only if armed.
|
||||
* @pre The timer must have been initialized using @p chVTObjectInit()
|
||||
* or @p chVTDoSetI().
|
||||
*
|
||||
* @param[in] vtp the @p virtual_timer_t structure pointer
|
||||
*
|
||||
|
@ -304,6 +308,8 @@ static inline void chVTReset(virtual_timer_t *vtp) {
|
|||
* @brief Enables a virtual timer.
|
||||
* @details If the virtual timer was already enabled then it is re-enabled
|
||||
* using the new parameters.
|
||||
* @pre The timer must have been initialized using @p chVTObjectInit()
|
||||
* or @p chVTDoSetI().
|
||||
*
|
||||
* @param[in] vtp the @p virtual_timer_t structure pointer
|
||||
* @param[in] delay the number of ticks before the operation timeouts.
|
||||
|
@ -326,6 +332,8 @@ static inline void chVTSetI(virtual_timer_t *vtp, systime_t delay,
|
|||
* @brief Enables a virtual timer.
|
||||
* @details If the virtual timer was already enabled then it is re-enabled
|
||||
* using the new parameters.
|
||||
* @pre The timer must have been initialized using @p chVTObjectInit()
|
||||
* or @p chVTDoSetI().
|
||||
*
|
||||
* @param[in] vtp the @p virtual_timer_t structure pointer
|
||||
* @param[in] delay the number of ticks before the operation timeouts.
|
||||
|
|
|
@ -71,7 +71,7 @@ void SVC_Handler(void) {
|
|||
#if CORTEX_USE_FPU
|
||||
/* Restoring the special register FPCCR.*/
|
||||
FPU->FPCCR = (uint32_t)ctxp->fpccr;
|
||||
FPU->FPCAR = FPU->FPCAR + sizeof (struct extctx);
|
||||
FPU->FPCAR = FPU->FPCAR + sizeof (struct port_extctx);
|
||||
#endif
|
||||
|
||||
/* Writing back the modified PSP value.*/
|
||||
|
|
|
@ -261,7 +261,7 @@ void chSysRestoreStatusX(syssts_t sts) {
|
|||
}
|
||||
}
|
||||
|
||||
#if CH_PORT_SUPPORTS_RT || defined(__DOXYGEN__)
|
||||
#if PORT_SUPPORTS_RT || defined(__DOXYGEN__)
|
||||
/**
|
||||
* @brief Realtime window test.
|
||||
* @details This function verifies if the current realtime counter value
|
||||
|
@ -270,7 +270,7 @@ void chSysRestoreStatusX(syssts_t sts) {
|
|||
* @note When start==end then the function returns always true because the
|
||||
* whole time range is specified.
|
||||
* @note This function is only available if the port layer supports the
|
||||
* option @p CH_PORT_SUPPORTS_RT.
|
||||
* option @p PORT_SUPPORTS_RT.
|
||||
*
|
||||
* @param[in] cnt the counter value to be tested
|
||||
* @param[in] start the start of the time window (inclusive)
|
||||
|
@ -291,7 +291,7 @@ bool chSysIsCounterWithinX(rtcnt_t cnt, rtcnt_t start, rtcnt_t end) {
|
|||
* @note The real delay is always few cycles in excess of the specified
|
||||
* value.
|
||||
* @note This function is only available if the port layer supports the
|
||||
* option @p CH_PORT_SUPPORTS_RT.
|
||||
* option @p PORT_SUPPORTS_RT.
|
||||
*
|
||||
* @param[in] cycles number of cycles
|
||||
*
|
||||
|
@ -303,6 +303,6 @@ void chSysPolledDelayX(rtcnt_t cycles) {
|
|||
while (chSysIsCounterWithinX(chSysGetRealtimeCounterX(), start, end))
|
||||
;
|
||||
}
|
||||
#endif /* CH_PORT_SUPPORTS_RT */
|
||||
#endif /* PORT_SUPPORTS_RT */
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -181,7 +181,7 @@ thread_t *chThdCreateI(void *wsp, size_t size,
|
|||
thread_t *tp = wsp;
|
||||
|
||||
chDbgCheckClassI();
|
||||
chDbgCheck((wsp != NULL) && (size >= THD_WA_SIZE(0)) &&
|
||||
chDbgCheck((wsp != NULL) && (size >= THD_WORKING_AREA_SIZE(0)) &&
|
||||
(prio <= HIGHPRIO) && (pf != NULL));
|
||||
|
||||
PORT_SETUP_CONTEXT(tp, wsp, size, pf, arg);
|
||||
|
|
|
@ -109,7 +109,7 @@ void chprintf(BaseSequentialStream *chp, const char *fmt, ...) {
|
|||
va_list ap;
|
||||
char *p, *s, c, filler;
|
||||
int i, precision, width;
|
||||
bool_t is_long, left_align;
|
||||
bool is_long, left_align;
|
||||
long l;
|
||||
#if CHPRINTF_USE_FLOAT
|
||||
float f;
|
||||
|
|
|
@ -76,7 +76,7 @@ static void cmd_info(BaseSequentialStream *chp, int argc, char *argv[]) {
|
|||
#ifdef PORT_COMPILER_NAME
|
||||
chprintf(chp, "Compiler: %s\r\n", PORT_COMPILER_NAME);
|
||||
#endif
|
||||
chprintf(chp, "Architecture: %s\r\n", CH_ARCHITECTURE_NAME);
|
||||
chprintf(chp, "Architecture: %s\r\n", PORT_ARCHITECTURE_NAME);
|
||||
#ifdef PORT_CORE_VARIANT_NAME
|
||||
chprintf(chp, "Core Variant: %s\r\n", PORT_CORE_VARIANT_NAME);
|
||||
#endif
|
||||
|
@ -115,7 +115,7 @@ static ShellCommand local_commands[] = {
|
|||
{NULL, NULL}
|
||||
};
|
||||
|
||||
static bool_t cmdexec(const ShellCommand *scp, BaseSequentialStream *chp,
|
||||
static bool cmdexec(const ShellCommand *scp, BaseSequentialStream *chp,
|
||||
char *name, int argc, char *argv[]) {
|
||||
|
||||
while (scp->sc_name != NULL) {
|
||||
|
@ -248,7 +248,7 @@ thread_t *shellCreateStatic(const ShellConfig *scp, void *wsp,
|
|||
* @retval TRUE the channel was reset or CTRL-D pressed.
|
||||
* @retval FALSE operation successful.
|
||||
*/
|
||||
bool_t shellGetLine(BaseSequentialStream *chp, char *line, unsigned size) {
|
||||
bool shellGetLine(BaseSequentialStream *chp, char *line, unsigned size) {
|
||||
char *p = line;
|
||||
|
||||
while (TRUE) {
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -60,11 +60,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F0_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F0xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f0xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -206,4 +206,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -441,7 +441,7 @@
|
|||
* tickless mode.
|
||||
*/
|
||||
#if !defined(CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__)
|
||||
#define CH_DBG_THREADS_PROFILING TRUE
|
||||
#define CH_DBG_THREADS_PROFILING FALSE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -83,7 +83,7 @@ static const ADCConversionGroup adcgrpcfg2 = {
|
|||
/*
|
||||
* Red LEDs blinker thread, times are in milliseconds.
|
||||
*/
|
||||
static WORKING_AREA(waThread1, 128);
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static msg_t Thread1(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -60,11 +60,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F0_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F0xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f0xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -206,4 +206,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -441,7 +441,7 @@
|
|||
* tickless mode.
|
||||
*/
|
||||
#if !defined(CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__)
|
||||
#define CH_DBG_THREADS_PROFILING TRUE
|
||||
#define CH_DBG_THREADS_PROFILING FALSE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -60,11 +60,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F0_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F0xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f0xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -206,4 +206,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
#define MSG_SEND_LEFT 0
|
||||
#define MSG_SEND_RIGHT 1
|
||||
|
||||
static bool_t saturated;
|
||||
static bool saturated;
|
||||
|
||||
/*
|
||||
* Mailboxes and buffers.
|
||||
|
@ -57,7 +57,7 @@ static msg_t b[NUM_THREADS][MAILBOX_SIZE];
|
|||
/*
|
||||
* Test worker threads.
|
||||
*/
|
||||
static WORKING_AREA(waWorkerThread[NUM_THREADS], 128);
|
||||
static THD_WORKING_AREA(waWorkerThread[NUM_THREADS], 128);
|
||||
static msg_t WorkerThread(void *arg) {
|
||||
static volatile unsigned x = 0;
|
||||
static unsigned cnt = 0;
|
||||
|
@ -239,19 +239,19 @@ int main(void) {
|
|||
println(CH_KERNEL_VERSION);
|
||||
print("*** Compiled: ");
|
||||
println(__DATE__ " - " __TIME__);
|
||||
#ifdef CH_COMPILER_NAME
|
||||
#ifdef PORT_COMPILER_NAME
|
||||
print("*** Compiler: ");
|
||||
println(CH_COMPILER_NAME);
|
||||
println(PORT_COMPILER_NAME);
|
||||
#endif
|
||||
print("*** Architecture: ");
|
||||
println(CH_ARCHITECTURE_NAME);
|
||||
#ifdef CH_CORE_VARIANT_NAME
|
||||
println(PORT_ARCHITECTURE_NAME);
|
||||
#ifdef PORT_CORE_VARIANT_NAME
|
||||
print("*** Core Variant: ");
|
||||
println(CH_CORE_VARIANT_NAME);
|
||||
println(PORT_CORE_VARIANT_NAME);
|
||||
#endif
|
||||
#ifdef CH_PORT_INFO
|
||||
#ifdef PORT_INFO
|
||||
print("*** Port Info: ");
|
||||
println(CH_PORT_INFO);
|
||||
println(PORT_INFO);
|
||||
#endif
|
||||
#ifdef PLATFORM_NAME
|
||||
print("*** Platform: ");
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -60,11 +60,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F0_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F0xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f0xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -206,4 +206,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -60,11 +60,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F0_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F0xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f0xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -206,4 +206,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,7 +48,7 @@ static uint8_t rxbuf[512];
|
|||
/*
|
||||
* SPI bus contender 1.
|
||||
*/
|
||||
static WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static msg_t spi_thread_1(void *p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -69,7 +69,7 @@ static msg_t spi_thread_1(void *p) {
|
|||
/*
|
||||
* SPI bus contender 2.
|
||||
*/
|
||||
static WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static msg_t spi_thread_2(void *p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -90,7 +90,7 @@ static msg_t spi_thread_2(void *p) {
|
|||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
* a LED.
|
||||
*/
|
||||
static WORKING_AREA(blinker_wa, 128);
|
||||
static THD_WORKING_AREA(blinker_wa, 128);
|
||||
static msg_t blinker(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -60,11 +60,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F0_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F0xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F0xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f0xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -206,4 +206,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<folderInfo id="0.1093754934." name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1759793652" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
|
||||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1759793652.1073835528" name=""/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.414217340" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="-1" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.414217340" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1008021590" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.562952538" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
|
||||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.270557492" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
|
||||
|
@ -47,4 +47,6 @@
|
|||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -104,7 +104,7 @@ static const ADCConversionGroup adcgrpcfg2 = {
|
|||
/*
|
||||
* Red LEDs blinker thread, times are in milliseconds.
|
||||
*/
|
||||
static WORKING_AREA(waThread1, 128);
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static msg_t Thread1(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<folderInfo id="0.269849277." name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.689247287" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
|
||||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.689247287.2040844148" name=""/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.250518604" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="-1" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.250518604" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1289173301" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.1429619453" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
|
||||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.448763111" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
|
||||
|
@ -47,4 +47,6 @@
|
|||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -128,7 +128,7 @@ static const ADCConversionGroup adcgrpcfg2 = {
|
|||
/*
|
||||
* Red LEDs blinker thread, times are in milliseconds.
|
||||
*/
|
||||
static WORKING_AREA(waThread1, 128);
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static msg_t Thread1(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -30,7 +30,7 @@ static const CANConfig cancfg = {
|
|||
/*
|
||||
* Receiver thread.
|
||||
*/
|
||||
static WORKING_AREA(can_rx_wa, 256);
|
||||
static THD_WORKING_AREA(can_rx_wa, 256);
|
||||
static msg_t can_rx(void *p) {
|
||||
event_listener_t el;
|
||||
CANRxFrame rxmsg;
|
||||
|
@ -53,7 +53,7 @@ static msg_t can_rx(void *p) {
|
|||
/*
|
||||
* Transmitter thread.
|
||||
*/
|
||||
static WORKING_AREA(can_tx_wa, 256);
|
||||
static THD_WORKING_AREA(can_tx_wa, 256);
|
||||
static msg_t can_tx(void * p) {
|
||||
CANTxFrame txmsg;
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<folderInfo id="0.779783487." name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.504160665" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
|
||||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.504160665.1873829009" name=""/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.1953095184" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="-1" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.1953095184" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.1380710080" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.1057984653" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
|
||||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1281924276" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
|
||||
|
@ -47,4 +47,6 @@
|
|||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -57,7 +57,7 @@ static msg_t b[NUM_THREADS][MAILBOX_SIZE];
|
|||
/*
|
||||
* Test worker threads.
|
||||
*/
|
||||
static WORKING_AREA(waWorkerThread[NUM_THREADS], 128);
|
||||
static THD_WORKING_AREA(waWorkerThread[NUM_THREADS], 128);
|
||||
static msg_t WorkerThread(void *arg) {
|
||||
static volatile unsigned x = 0;
|
||||
static unsigned cnt = 0;
|
||||
|
@ -243,19 +243,19 @@ int main(void) {
|
|||
println(CH_KERNEL_VERSION);
|
||||
print("*** Compiled: ");
|
||||
println(__DATE__ " - " __TIME__);
|
||||
#ifdef CH_COMPILER_NAME
|
||||
#ifdef PORT_COMPILER_NAME
|
||||
print("*** Compiler: ");
|
||||
println(CH_COMPILER_NAME);
|
||||
println(PORT_COMPILER_NAME);
|
||||
#endif
|
||||
print("*** Architecture: ");
|
||||
println(CH_ARCHITECTURE_NAME);
|
||||
#ifdef CH_CORE_VARIANT_NAME
|
||||
println(PORT_ARCHITECTURE_NAME);
|
||||
#ifdef PORT_CORE_VARIANT_NAME
|
||||
print("*** Core Variant: ");
|
||||
println(CH_CORE_VARIANT_NAME);
|
||||
println(PORT_CORE_VARIANT_NAME);
|
||||
#endif
|
||||
#ifdef CH_PORT_INFO
|
||||
#ifdef PORT_INFO
|
||||
print("*** Port Info: ");
|
||||
println(CH_PORT_INFO);
|
||||
println(PORT_INFO);
|
||||
#endif
|
||||
#ifdef PLATFORM_NAME
|
||||
print("*** Platform: ");
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,7 +48,7 @@ static uint8_t rxbuf[512];
|
|||
/*
|
||||
* SPI bus contender 1.
|
||||
*/
|
||||
static WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static msg_t spi_thread_1(void *p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -69,7 +69,7 @@ static msg_t spi_thread_1(void *p) {
|
|||
/*
|
||||
* SPI bus contender 2.
|
||||
*/
|
||||
static WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static msg_t spi_thread_2(void *p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -90,7 +90,7 @@ static msg_t spi_thread_2(void *p) {
|
|||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
* a LED.
|
||||
*/
|
||||
static WORKING_AREA(blinker_wa, 128);
|
||||
static THD_WORKING_AREA(blinker_wa, 128);
|
||||
static msg_t blinker(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
<folderInfo id="0.2073938137." name="/" resourcePath="">
|
||||
<toolChain id="org.eclipse.cdt.build.core.prefbase.toolchain.1743372457" name="No ToolChain" resourceTypeBasedDiscovery="false" superClass="org.eclipse.cdt.build.core.prefbase.toolchain">
|
||||
<targetPlatform id="org.eclipse.cdt.build.core.prefbase.toolchain.1743372457.434488400" name=""/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.1298110239" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="-1" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<builder id="org.eclipse.cdt.build.core.settings.default.builder.1298110239" keepEnvironmentInBuildfile="false" managedBuildOn="false" name="Gnu Make Builder" parallelBuildOn="true" parallelizationNumber="unlimited" superClass="org.eclipse.cdt.build.core.settings.default.builder"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.libs.546527516" name="holder for library settings" superClass="org.eclipse.cdt.build.core.settings.holder.libs"/>
|
||||
<tool id="org.eclipse.cdt.build.core.settings.holder.1727550430" name="Assembly" superClass="org.eclipse.cdt.build.core.settings.holder">
|
||||
<inputType id="org.eclipse.cdt.build.core.settings.holder.inType.1626540872" languageId="org.eclipse.cdt.core.assembly" languageName="Assembly" sourceContentType="org.eclipse.cdt.core.asmSource" superClass="org.eclipse.cdt.build.core.settings.holder.inType"/>
|
||||
|
@ -47,4 +47,6 @@
|
|||
<autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.make.core.GCCStandardMakePerProjectProfile"/>
|
||||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F30x/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F30x/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f30x.mk
|
||||
include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -224,4 +224,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -339,8 +339,8 @@ static const SerialUSBConfig serusbcfg = {
|
|||
/* Command line related. */
|
||||
/*===========================================================================*/
|
||||
|
||||
#define SHELL_WA_SIZE THD_WA_SIZE(2048)
|
||||
#define TEST_WA_SIZE THD_WA_SIZE(256)
|
||||
#define SHELL_WA_SIZE THD_WORKING_AREA_SIZE(2048)
|
||||
#define TEST_WA_SIZE THD_WORKING_AREA_SIZE(256)
|
||||
|
||||
static void cmd_mem(BaseSequentialStream *chp, int argc, char *argv[]) {
|
||||
size_t n, size;
|
||||
|
@ -444,7 +444,7 @@ static const ShellConfig shell_cfg1 = {
|
|||
/*
|
||||
* Red LED blinker thread, times are in milliseconds.
|
||||
*/
|
||||
static WORKING_AREA(waThread1, 128);
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static msg_t Thread1(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -91,7 +91,7 @@ static const ADCConversionGroup adcgrpcfg2 = {
|
|||
/*
|
||||
* Red LEDs blinker thread, times are in milliseconds.
|
||||
*/
|
||||
static WORKING_AREA(waThread1, 128);
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static msg_t Thread1(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -39,8 +39,8 @@ static const CANConfig cancfg = {
|
|||
/*
|
||||
* Receiver thread.
|
||||
*/
|
||||
static WORKING_AREA(can_rx1_wa, 256);
|
||||
static WORKING_AREA(can_rx2_wa, 256);
|
||||
static THD_WORKING_AREA(can_rx1_wa, 256);
|
||||
static THD_WORKING_AREA(can_rx2_wa, 256);
|
||||
static msg_t can_rx(void *p) {
|
||||
struct can_instance *cip = p;
|
||||
event_listener_t el;
|
||||
|
@ -65,7 +65,7 @@ static msg_t can_rx(void *p) {
|
|||
/*
|
||||
* Transmitter thread.
|
||||
*/
|
||||
static WORKING_AREA(can_tx_wa, 256);
|
||||
static THD_WORKING_AREA(can_tx_wa, 256);
|
||||
static msg_t can_tx(void * p) {
|
||||
CANTxFrame txmsg;
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
<link>
|
||||
<name>board</name>
|
||||
<type>2</type>
|
||||
<locationURI>CHIBIOS/boards/ST_STM32F4_DISCOVERY</locationURI>
|
||||
<locationURI>CHIBIOS/os/hal/boards/ST_STM32F4_DISCOVERY</locationURI>
|
||||
</link>
|
||||
<link>
|
||||
<name>os</name>
|
||||
|
|
|
@ -65,11 +65,12 @@ PROJECT = ch
|
|||
|
||||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -115,7 +116,7 @@ TCPPSRC =
|
|||
ASMSRC = $(PORTASM)
|
||||
|
||||
INCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
|
||||
$(HALINC) $(PLATFORMINC) $(BOARDINC) \
|
||||
$(HALINC) $(OSALINC) $(PLATFORMINC) $(BOARDINC) \
|
||||
$(CHIBIOS)/os/various
|
||||
|
||||
#
|
||||
|
@ -219,4 +220,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -40,8 +40,29 @@
|
|||
* @details Frequency of the system timer that drives the system ticks. This
|
||||
* setting also defines the system tick time unit.
|
||||
*/
|
||||
#if !defined(CH_FREQUENCY) || defined(__DOXYGEN__)
|
||||
#define CH_FREQUENCY 1000
|
||||
#if !defined(CH_CFG_ST_FREQUENCY) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_ST_FREQUENCY 10000
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Realtime Counter frequency.
|
||||
* @details Frequency of the system counter used for realtime delays and
|
||||
* measurements.
|
||||
*/
|
||||
#if !defined(CH_CFG_RTC_FREQUENCY) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_RTC_FREQUENCY 168000000
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Time delta constant for the tick-less mode.
|
||||
* @note If this value is zero then the system uses the classic
|
||||
* periodic tick. This value represents the minimum number
|
||||
* of ticks that is safe to specify in a timeout directive.
|
||||
* The value one is not valid, timeouts are rounded up to
|
||||
* this value.
|
||||
*/
|
||||
#if !defined(CH_CFG_TIMEDELTA) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_TIMEDELTA 2
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -51,12 +72,13 @@
|
|||
* disables the preemption for threads with equal priority and the
|
||||
* round robin becomes cooperative. Note that higher priority
|
||||
* threads can still preempt, the kernel is always preemptive.
|
||||
*
|
||||
* @note Disabling the round robin preemption makes the kernel more compact
|
||||
* and generally faster.
|
||||
* @note The round robin preemption is not supported in tickless mode and
|
||||
* must be set to zero in that case.
|
||||
*/
|
||||
#if !defined(CH_TIME_QUANTUM) || defined(__DOXYGEN__)
|
||||
#define CH_TIME_QUANTUM 20
|
||||
#if !defined(CH_CFG_TIME_QUANTUM) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_TIME_QUANTUM 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -68,27 +90,20 @@
|
|||
*
|
||||
* @note In order to let the OS manage the whole RAM the linker script must
|
||||
* provide the @p __heap_base__ and @p __heap_end__ symbols.
|
||||
* @note Requires @p CH_USE_MEMCORE.
|
||||
* @note Requires @p CH_CFG_USE_MEMCORE.
|
||||
*/
|
||||
#if !defined(CH_MEMCORE_SIZE) || defined(__DOXYGEN__)
|
||||
#define CH_MEMCORE_SIZE 0
|
||||
#if !defined(CH_CFG_MEMCORE_SIZE) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_MEMCORE_SIZE 0
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Idle thread automatic spawn suppression.
|
||||
* @details When this option is activated the function @p chSysInit()
|
||||
* does not spawn the idle thread automatically. The application has
|
||||
* then the responsibility to do one of the following:
|
||||
* - Spawn a custom idle thread at priority @p IDLEPRIO.
|
||||
* - Change the main() thread priority to @p IDLEPRIO then enter
|
||||
* an endless loop. In this scenario the @p main() thread acts as
|
||||
* the idle thread.
|
||||
* .
|
||||
* @note Unless an idle thread is spawned the @p main() thread must not
|
||||
* enter a sleep state.
|
||||
*/
|
||||
#if !defined(CH_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||
#define CH_NO_IDLE_THREAD FALSE
|
||||
* does not spawn the idle thread. The application @p main()
|
||||
* function becomes the idle thread and must implement an
|
||||
* infinite loop. */
|
||||
#if !defined(CH_CFG_NO_IDLE_THREAD) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@ -108,8 +123,8 @@
|
|||
* @note This is not related to the compiler optimization options.
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_OPTIMIZE_SPEED) || defined(__DOXYGEN__)
|
||||
#define CH_OPTIMIZE_SPEED TRUE
|
||||
#if !defined(CH_CFG_OPTIMIZE_SPEED) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_OPTIMIZE_SPEED TRUE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@ -121,14 +136,25 @@
|
|||
*/
|
||||
/*===========================================================================*/
|
||||
|
||||
/**
|
||||
* @brief Time Measurement APIs.
|
||||
* @details If enabled then the time measurement APIs are included in
|
||||
* the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_CFG_USE_TM) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_TM TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Threads registry APIs.
|
||||
* @details If enabled then the registry APIs are included in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_REGISTRY) || defined(__DOXYGEN__)
|
||||
#define CH_USE_REGISTRY TRUE
|
||||
#if !defined(CH_CFG_USE_REGISTRY) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_REGISTRY TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -138,8 +164,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_WAITEXIT) || defined(__DOXYGEN__)
|
||||
#define CH_USE_WAITEXIT TRUE
|
||||
#if !defined(CH_CFG_USE_WAITEXIT) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_WAITEXIT TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -148,8 +174,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_SEMAPHORES) || defined(__DOXYGEN__)
|
||||
#define CH_USE_SEMAPHORES TRUE
|
||||
#if !defined(CH_CFG_USE_SEMAPHORES) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_SEMAPHORES TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -157,23 +183,12 @@
|
|||
* @details If enabled then the threads are enqueued on semaphores by
|
||||
* priority rather than in FIFO order.
|
||||
*
|
||||
* @note The default is @p FALSE. Enable this if you have special requirements.
|
||||
* @note Requires @p CH_USE_SEMAPHORES.
|
||||
* @note The default is @p FALSE. Enable this if you have special
|
||||
* requirements.
|
||||
* @note Requires @p CH_CFG_USE_SEMAPHORES.
|
||||
*/
|
||||
#if !defined(CH_USE_SEMAPHORES_PRIORITY) || defined(__DOXYGEN__)
|
||||
#define CH_USE_SEMAPHORES_PRIORITY FALSE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Atomic semaphore API.
|
||||
* @details If enabled then the semaphores the @p chSemSignalWait() API
|
||||
* is included in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_SEMAPHORES.
|
||||
*/
|
||||
#if !defined(CH_USE_SEMSW) || defined(__DOXYGEN__)
|
||||
#define CH_USE_SEMSW TRUE
|
||||
#if !defined(CH_CFG_USE_SEMAPHORES_PRIORITY) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_SEMAPHORES_PRIORITY FALSE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -182,8 +197,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_MUTEXES) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MUTEXES TRUE
|
||||
#if !defined(CH_CFG_USE_MUTEXES) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_MUTEXES TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -192,10 +207,10 @@
|
|||
* in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_MUTEXES.
|
||||
* @note Requires @p CH_CFG_USE_MUTEXES.
|
||||
*/
|
||||
#if !defined(CH_USE_CONDVARS) || defined(__DOXYGEN__)
|
||||
#define CH_USE_CONDVARS TRUE
|
||||
#if !defined(CH_CFG_USE_CONDVARS) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_CONDVARS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -204,10 +219,10 @@
|
|||
* specification are included in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_CONDVARS.
|
||||
* @note Requires @p CH_CFG_USE_CONDVARS.
|
||||
*/
|
||||
#if !defined(CH_USE_CONDVARS_TIMEOUT) || defined(__DOXYGEN__)
|
||||
#define CH_USE_CONDVARS_TIMEOUT TRUE
|
||||
#if !defined(CH_CFG_USE_CONDVARS_TIMEOUT) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_CONDVARS_TIMEOUT TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -216,8 +231,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_EVENTS) || defined(__DOXYGEN__)
|
||||
#define CH_USE_EVENTS TRUE
|
||||
#if !defined(CH_CFG_USE_EVENTS) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_EVENTS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -226,10 +241,10 @@
|
|||
* are included in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_EVENTS.
|
||||
* @note Requires @p CH_CFG_USE_EVENTS.
|
||||
*/
|
||||
#if !defined(CH_USE_EVENTS_TIMEOUT) || defined(__DOXYGEN__)
|
||||
#define CH_USE_EVENTS_TIMEOUT TRUE
|
||||
#if !defined(CH_CFG_USE_EVENTS_TIMEOUT) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_EVENTS_TIMEOUT TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -239,8 +254,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_MESSAGES) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MESSAGES TRUE
|
||||
#if !defined(CH_CFG_USE_MESSAGES) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_MESSAGES TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -248,11 +263,12 @@
|
|||
* @details If enabled then messages are served by priority rather than in
|
||||
* FIFO order.
|
||||
*
|
||||
* @note The default is @p FALSE. Enable this if you have special requirements.
|
||||
* @note Requires @p CH_USE_MESSAGES.
|
||||
* @note The default is @p FALSE. Enable this if you have special
|
||||
* requirements.
|
||||
* @note Requires @p CH_CFG_USE_MESSAGES.
|
||||
*/
|
||||
#if !defined(CH_USE_MESSAGES_PRIORITY) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MESSAGES_PRIORITY FALSE
|
||||
#if !defined(CH_CFG_USE_MESSAGES_PRIORITY) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_MESSAGES_PRIORITY FALSE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -261,10 +277,10 @@
|
|||
* included in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_SEMAPHORES.
|
||||
* @note Requires @p CH_CFG_USE_SEMAPHORES.
|
||||
*/
|
||||
#if !defined(CH_USE_MAILBOXES) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MAILBOXES TRUE
|
||||
#if !defined(CH_CFG_USE_MAILBOXES) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_MAILBOXES TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -273,8 +289,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_QUEUES) || defined(__DOXYGEN__)
|
||||
#define CH_USE_QUEUES TRUE
|
||||
#if !defined(CH_CFG_USE_QUEUES) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_QUEUES TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -284,8 +300,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_MEMCORE) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MEMCORE TRUE
|
||||
#if !defined(CH_CFG_USE_MEMCORE) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_MEMCORE TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -294,26 +310,12 @@
|
|||
* in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_MEMCORE and either @p CH_USE_MUTEXES or
|
||||
* @p CH_USE_SEMAPHORES.
|
||||
* @note Requires @p CH_CFG_USE_MEMCORE and either @p CH_CFG_USE_MUTEXES or
|
||||
* @p CH_CFG_USE_SEMAPHORES.
|
||||
* @note Mutexes are recommended.
|
||||
*/
|
||||
#if !defined(CH_USE_HEAP) || defined(__DOXYGEN__)
|
||||
#define CH_USE_HEAP TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief C-runtime allocator.
|
||||
* @details If enabled the the heap allocator APIs just wrap the C-runtime
|
||||
* @p malloc() and @p free() functions.
|
||||
*
|
||||
* @note The default is @p FALSE.
|
||||
* @note Requires @p CH_USE_HEAP.
|
||||
* @note The C-runtime may or may not require @p CH_USE_MEMCORE, see the
|
||||
* appropriate documentation.
|
||||
*/
|
||||
#if !defined(CH_USE_MALLOC_HEAP) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MALLOC_HEAP FALSE
|
||||
#if !defined(CH_CFG_USE_HEAP) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_HEAP TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -323,8 +325,8 @@
|
|||
*
|
||||
* @note The default is @p TRUE.
|
||||
*/
|
||||
#if !defined(CH_USE_MEMPOOLS) || defined(__DOXYGEN__)
|
||||
#define CH_USE_MEMPOOLS TRUE
|
||||
#if !defined(CH_CFG_USE_MEMPOOLS) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_MEMPOOLS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
|
@ -333,11 +335,11 @@
|
|||
* in the kernel.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note Requires @p CH_USE_WAITEXIT.
|
||||
* @note Requires @p CH_USE_HEAP and/or @p CH_USE_MEMPOOLS.
|
||||
* @note Requires @p CH_CFG_USE_WAITEXIT.
|
||||
* @note Requires @p CH_CFG_USE_HEAP and/or @p CH_CFG_USE_MEMPOOLS.
|
||||
*/
|
||||
#if !defined(CH_USE_DYNAMIC) || defined(__DOXYGEN__)
|
||||
#define CH_USE_DYNAMIC TRUE
|
||||
#if !defined(CH_CFG_USE_DYNAMIC) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_USE_DYNAMIC TRUE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@ -349,6 +351,15 @@
|
|||
*/
|
||||
/*===========================================================================*/
|
||||
|
||||
/**
|
||||
* @brief Debug option, kernel statistics.
|
||||
*
|
||||
* @note The default is @p FALSE.
|
||||
*/
|
||||
#if !defined(CH_DBG_STATISTICS) || defined(__DOXYGEN__)
|
||||
#define CH_DBG_STATISTICS TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Debug option, system state check.
|
||||
* @details If enabled the correct call protocol for system APIs is checked
|
||||
|
@ -422,15 +433,15 @@
|
|||
|
||||
/**
|
||||
* @brief Debug option, threads profiling.
|
||||
* @details If enabled then a field is added to the @p Thread structure that
|
||||
* @details If enabled then a field is added to the @p thread_t structure that
|
||||
* counts the system ticks occurred while executing the thread.
|
||||
*
|
||||
* @note The default is @p TRUE.
|
||||
* @note This debug option is defaulted to TRUE because it is required by
|
||||
* some test cases into the test suite.
|
||||
* @note The default is @p FALSE.
|
||||
* @note This debug option is not currently compatible with the
|
||||
* tickless mode.
|
||||
*/
|
||||
#if !defined(CH_DBG_THREADS_PROFILING) || defined(__DOXYGEN__)
|
||||
#define CH_DBG_THREADS_PROFILING TRUE
|
||||
#define CH_DBG_THREADS_PROFILING FALSE
|
||||
#endif
|
||||
|
||||
/** @} */
|
||||
|
@ -444,10 +455,10 @@
|
|||
|
||||
/**
|
||||
* @brief Threads descriptor structure extension.
|
||||
* @details User fields added to the end of the @p Thread structure.
|
||||
* @details User fields added to the end of the @p thread_t structure.
|
||||
*/
|
||||
#if !defined(THREAD_EXT_FIELDS) || defined(__DOXYGEN__)
|
||||
#define THREAD_EXT_FIELDS \
|
||||
#if !defined(CH_CFG_THREAD_EXTRA_FIELDS) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_THREAD_EXTRA_FIELDS \
|
||||
/* Add threads custom fields here.*/
|
||||
#endif
|
||||
|
||||
|
@ -458,8 +469,8 @@
|
|||
* @note It is invoked from within @p chThdInit() and implicitly from all
|
||||
* the threads creation APIs.
|
||||
*/
|
||||
#if !defined(THREAD_EXT_INIT_HOOK) || defined(__DOXYGEN__)
|
||||
#define THREAD_EXT_INIT_HOOK(tp) { \
|
||||
#if !defined(CH_CFG_THREAD_INIT_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_THREAD_INIT_HOOK(tp) { \
|
||||
/* Add threads initialization code here.*/ \
|
||||
}
|
||||
#endif
|
||||
|
@ -472,8 +483,8 @@
|
|||
* @note It is also invoked when the threads simply return in order to
|
||||
* terminate.
|
||||
*/
|
||||
#if !defined(THREAD_EXT_EXIT_HOOK) || defined(__DOXYGEN__)
|
||||
#define THREAD_EXT_EXIT_HOOK(tp) { \
|
||||
#if !defined(CH_CFG_THREAD_EXIT_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_THREAD_EXIT_HOOK(tp) { \
|
||||
/* Add threads finalization code here.*/ \
|
||||
}
|
||||
#endif
|
||||
|
@ -482,18 +493,40 @@
|
|||
* @brief Context switch hook.
|
||||
* @details This hook is invoked just before switching between threads.
|
||||
*/
|
||||
#if !defined(THREAD_CONTEXT_SWITCH_HOOK) || defined(__DOXYGEN__)
|
||||
#define THREAD_CONTEXT_SWITCH_HOOK(ntp, otp) { \
|
||||
#if !defined(CH_CFG_CONTEXT_SWITCH_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_CONTEXT_SWITCH_HOOK(ntp, otp) { \
|
||||
/* System halt code here.*/ \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Idle thread enter hook.
|
||||
* @note This hook is invoked within a critical zone, no OS functions
|
||||
* should be invoked from here.
|
||||
* @note This macro can be used to activate a power saving mode.
|
||||
*/
|
||||
#if !defined(CH_CFG_IDLE_ENTER_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_IDLE_ENTER_HOOK() { \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Idle thread leave hook.
|
||||
* @note This hook is invoked within a critical zone, no OS functions
|
||||
* should be invoked from here.
|
||||
* @note This macro can be used to deactivate a power saving mode.
|
||||
*/
|
||||
#if !defined(CH_CFG_IDLE_LEAVE_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_IDLE_LEAVE_HOOK() { \
|
||||
}
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Idle Loop hook.
|
||||
* @details This hook is continuously invoked by the idle thread loop.
|
||||
*/
|
||||
#if !defined(IDLE_LOOP_HOOK) || defined(__DOXYGEN__)
|
||||
#define IDLE_LOOP_HOOK() { \
|
||||
#if !defined(CH_CFG_IDLE_LOOP_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_IDLE_LOOP_HOOK() { \
|
||||
/* Idle loop code here.*/ \
|
||||
}
|
||||
#endif
|
||||
|
@ -503,8 +536,8 @@
|
|||
* @details This hook is invoked in the system tick handler immediately
|
||||
* after processing the virtual timers queue.
|
||||
*/
|
||||
#if !defined(SYSTEM_TICK_EVENT_HOOK) || defined(__DOXYGEN__)
|
||||
#define SYSTEM_TICK_EVENT_HOOK() { \
|
||||
#if !defined(CH_CFG_SYSTEM_TICK_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_SYSTEM_TICK_HOOK() { \
|
||||
/* System tick event code here.*/ \
|
||||
}
|
||||
#endif
|
||||
|
@ -514,8 +547,8 @@
|
|||
* @details This hook is invoked in case to a system halting error before
|
||||
* the system is halted.
|
||||
*/
|
||||
#if !defined(SYSTEM_HALT_HOOK) || defined(__DOXYGEN__)
|
||||
#define SYSTEM_HALT_HOOK() { \
|
||||
#if !defined(CH_CFG_SYSTEM_HALT_HOOK) || defined(__DOXYGEN__)
|
||||
#define CH_CFG_SYSTEM_HALT_HOOK(reason) { \
|
||||
/* System halt code here.*/ \
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -30,13 +30,6 @@
|
|||
|
||||
#include "mcuconf.h"
|
||||
|
||||
/**
|
||||
* @brief Enables the TM subsystem.
|
||||
*/
|
||||
#if !defined(HAL_USE_TM) || defined(__DOXYGEN__)
|
||||
#define HAL_USE_TM TRUE
|
||||
#endif
|
||||
|
||||
/**
|
||||
* @brief Enables the PAL subsystem.
|
||||
*/
|
||||
|
|
|
@ -35,7 +35,7 @@ static void adcerrorcallback(ADCDriver *adcp, adcerror_t err) {
|
|||
|
||||
(void)adcp;
|
||||
(void)err;
|
||||
chSysHalt();
|
||||
chSysHalt("ADC error");
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -73,22 +73,24 @@ static const SPIConfig hs_spicfg = {
|
|||
static void tmo(void *p) {
|
||||
|
||||
(void)p;
|
||||
chSysHalt();
|
||||
chSysHalt("timeout");
|
||||
}
|
||||
|
||||
/*
|
||||
* SPI thread.
|
||||
*/
|
||||
static WORKING_AREA(waSPI1, 1024);
|
||||
static WORKING_AREA(waSPI2, 1024);
|
||||
static WORKING_AREA(waSPI3, 1024);
|
||||
static THD_WORKING_AREA(waSPI1, 1024);
|
||||
static THD_WORKING_AREA(waSPI2, 1024);
|
||||
static THD_WORKING_AREA(waSPI3, 1024);
|
||||
static msg_t spi_thread(void *p) {
|
||||
unsigned i;
|
||||
SPIDriver *spip = (SPIDriver *)p;
|
||||
VirtualTimer vt;
|
||||
virtual_timer_t vt;
|
||||
uint8_t txbuf[256];
|
||||
uint8_t rxbuf[256];
|
||||
|
||||
chVTObjectInit(&vt);
|
||||
|
||||
/* Prepare transmit pattern.*/
|
||||
for (i = 0; i < sizeof(txbuf); i++)
|
||||
txbuf[i] = (uint8_t)i;
|
||||
|
@ -97,17 +99,12 @@ static msg_t spi_thread(void *p) {
|
|||
while (TRUE) {
|
||||
/* Starts a VT working as watchdog to catch a malfunction in the SPI
|
||||
driver.*/
|
||||
chSysLock();
|
||||
chVTSetI(&vt, MS2ST(10), tmo, NULL);
|
||||
chSysUnlock();
|
||||
chVTSet(&vt, MS2ST(10), tmo, NULL);
|
||||
|
||||
spiExchange(spip, sizeof(txbuf), txbuf, rxbuf);
|
||||
|
||||
/* Stops the watchdog.*/
|
||||
chSysLock();
|
||||
if (chVTIsArmedI(&vt))
|
||||
chVTResetI(&vt);
|
||||
chSysUnlock();
|
||||
chVTReset(&vt);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -115,7 +112,7 @@ static msg_t spi_thread(void *p) {
|
|||
* This is a periodic thread that does absolutely nothing except flashing
|
||||
* a LED.
|
||||
*/
|
||||
static WORKING_AREA(waThread1, 128);
|
||||
static THD_WORKING_AREA(waThread1, 128);
|
||||
static msg_t Thread1(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
@ -166,9 +163,9 @@ int main(void) {
|
|||
|
||||
/* Allocating two DMA2 streams for memory copy operations.*/
|
||||
if (dmaStreamAllocate(STM32_DMA2_STREAM6, 0, NULL, NULL))
|
||||
chSysHalt();
|
||||
chSysHalt("DMA already in use");
|
||||
if (dmaStreamAllocate(STM32_DMA2_STREAM7, 0, NULL, NULL))
|
||||
chSysHalt();
|
||||
chSysHalt("DMA already in use");
|
||||
for (i = 0; i < sizeof (patterns1); i++)
|
||||
patterns1[i] = (uint8_t)i;
|
||||
for (i = 0; i < sizeof (patterns2); i++)
|
||||
|
@ -177,13 +174,13 @@ int main(void) {
|
|||
/* Normal main() thread activity, it does continues memory copy operations
|
||||
using 2 DMA streams at the lowest priority.*/
|
||||
while (TRUE) {
|
||||
VirtualTimer vt;
|
||||
virtual_timer_t vt;
|
||||
|
||||
chVTObjectInit(&vt);
|
||||
|
||||
/* Starts a VT working as watchdog to catch a malfunction in the DMA
|
||||
driver.*/
|
||||
chSysLock();
|
||||
chVTSetI(&vt, MS2ST(10), tmo, NULL);
|
||||
chSysUnlock();
|
||||
chVTSet(&vt, MS2ST(10), tmo, NULL);
|
||||
|
||||
/* Copy pattern 1.*/
|
||||
dmaStartMemCopy(STM32_DMA2_STREAM6,
|
||||
|
@ -197,9 +194,9 @@ int main(void) {
|
|||
dmaWaitCompletion(STM32_DMA2_STREAM6);
|
||||
dmaWaitCompletion(STM32_DMA2_STREAM7);
|
||||
if (memcmp(patterns1, buf1, sizeof (patterns1)))
|
||||
chSysHalt();
|
||||
chSysHalt("pattern error");
|
||||
if (memcmp(patterns1, buf2, sizeof (patterns1)))
|
||||
chSysHalt();
|
||||
chSysHalt("pattern error");
|
||||
|
||||
/* Copy pattern 2.*/
|
||||
dmaStartMemCopy(STM32_DMA2_STREAM6,
|
||||
|
@ -213,15 +210,12 @@ int main(void) {
|
|||
dmaWaitCompletion(STM32_DMA2_STREAM6);
|
||||
dmaWaitCompletion(STM32_DMA2_STREAM7);
|
||||
if (memcmp(patterns2, buf1, sizeof (patterns2)))
|
||||
chSysHalt();
|
||||
chSysHalt("pattern error");
|
||||
if (memcmp(patterns2, buf2, sizeof (patterns2)))
|
||||
chSysHalt();
|
||||
chSysHalt("pattern error");
|
||||
|
||||
/* Stops the watchdog.*/
|
||||
chSysLock();
|
||||
if (chVTIsArmedI(&vt))
|
||||
chVTResetI(&vt);
|
||||
chSysUnlock();
|
||||
chVTReset(&vt);
|
||||
|
||||
chThdSleepMilliseconds(2);
|
||||
}
|
||||
|
|
|
@ -82,8 +82,8 @@
|
|||
/*
|
||||
* CAN driver system settings.
|
||||
*/
|
||||
#define STM32_CAN_USE_CAN1 FALSE
|
||||
#define STM32_CAN_USE_CAN2 FALSE
|
||||
#define STM32_CAN_USE_CAN1 TRUE
|
||||
#define STM32_CAN_USE_CAN2 TRUE
|
||||
#define STM32_CAN_CAN1_IRQ_PRIORITY 11
|
||||
#define STM32_CAN_CAN2_IRQ_PRIORITY 11
|
||||
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/NONSTANDARD_STM32F4_BARTHESS1/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -57,7 +57,7 @@ static msg_t b[NUM_THREADS][MAILBOX_SIZE];
|
|||
/*
|
||||
* Test worker threads.
|
||||
*/
|
||||
static WORKING_AREA(waWorkerThread[NUM_THREADS], 128);
|
||||
static THD_WORKING_AREA(waWorkerThread[NUM_THREADS], 128);
|
||||
static msg_t WorkerThread(void *arg) {
|
||||
static volatile unsigned x = 0;
|
||||
static unsigned cnt = 0;
|
||||
|
@ -239,19 +239,19 @@ int main(void) {
|
|||
println(CH_KERNEL_VERSION);
|
||||
print("*** Compiled: ");
|
||||
println(__DATE__ " - " __TIME__);
|
||||
#ifdef CH_COMPILER_NAME
|
||||
#ifdef PORT_COMPILER_NAME
|
||||
print("*** Compiler: ");
|
||||
println(CH_COMPILER_NAME);
|
||||
println(PORT_COMPILER_NAME);
|
||||
#endif
|
||||
print("*** Architecture: ");
|
||||
println(CH_ARCHITECTURE_NAME);
|
||||
#ifdef CH_CORE_VARIANT_NAME
|
||||
println(PORT_ARCHITECTURE_NAME);
|
||||
#ifdef PORT_CORE_VARIANT_NAME
|
||||
print("*** Core Variant: ");
|
||||
println(CH_CORE_VARIANT_NAME);
|
||||
println(PORT_CORE_VARIANT_NAME);
|
||||
#endif
|
||||
#ifdef CH_PORT_INFO
|
||||
#ifdef PORT_INFO
|
||||
print("*** Port Info: ");
|
||||
println(CH_PORT_INFO);
|
||||
println(PORT_INFO);
|
||||
#endif
|
||||
#ifdef PLATFORM_NAME
|
||||
print("*** Platform: ");
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -44,7 +44,7 @@ static bool saturated;
|
|||
/*
|
||||
* Test worker thread.
|
||||
*/
|
||||
static WORKING_AREA(waWorkerThread, 128);
|
||||
static THD_WORKING_AREA(waWorkerThread, 128);
|
||||
static msg_t WorkerThread(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
@ -66,7 +66,7 @@ static msg_t WorkerThread(void *arg) {
|
|||
/*
|
||||
* Test periodic thread.
|
||||
*/
|
||||
static WORKING_AREA(waPeriodicThread, 128);
|
||||
static THD_WORKING_AREA(waPeriodicThread, 128);
|
||||
static msg_t PeriodicThread(void *arg) {
|
||||
|
||||
(void)arg;
|
||||
|
@ -218,19 +218,19 @@ int main(void) {
|
|||
println(CH_KERNEL_VERSION);
|
||||
print("*** Compiled: ");
|
||||
println(__DATE__ " - " __TIME__);
|
||||
#ifdef CH_COMPILER_NAME
|
||||
#ifdef PORT_COMPILER_NAME
|
||||
print("*** Compiler: ");
|
||||
println(CH_COMPILER_NAME);
|
||||
println(PORT_COMPILER_NAME);
|
||||
#endif
|
||||
print("*** Architecture: ");
|
||||
println(CH_ARCHITECTURE_NAME);
|
||||
#ifdef CH_CORE_VARIANT_NAME
|
||||
println(PORT_ARCHITECTURE_NAME);
|
||||
#ifdef PORT_CORE_VARIANT_NAME
|
||||
print("*** Core Variant: ");
|
||||
println(CH_CORE_VARIANT_NAME);
|
||||
println(PORT_CORE_VARIANT_NAME);
|
||||
#endif
|
||||
#ifdef CH_PORT_INFO
|
||||
#ifdef PORT_INFO
|
||||
print("*** Port Info: ");
|
||||
println(CH_PORT_INFO);
|
||||
println(PORT_INFO);
|
||||
#endif
|
||||
#ifdef PLATFORM_NAME
|
||||
print("*** Platform: ");
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,7 +66,7 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/boards/NONSTANDARD_STM32F4_BARTHESS1/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
|
|
|
@ -69,7 +69,7 @@ LDSCRIPT= ch.ld
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/boards/NONSTANDARD_STM32F4_BARTHESS1/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
|
|
|
@ -48,4 +48,5 @@
|
|||
</scannerConfigBuildInfo>
|
||||
</storageModule>
|
||||
<storageModule moduleId="org.eclipse.cdt.core.LanguageSettingsProviders"/>
|
||||
<storageModule moduleId="refreshScope"/>
|
||||
</cproject>
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -46,7 +46,7 @@ static uint8_t rxbuf[512];
|
|||
/*
|
||||
* SPI bus contender 1.
|
||||
*/
|
||||
static WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_1_wa, 256);
|
||||
static msg_t spi_thread_1(void *p) {
|
||||
|
||||
(void)p;
|
||||
|
@ -67,7 +67,7 @@ static msg_t spi_thread_1(void *p) {
|
|||
/*
|
||||
* SPI bus contender 2.
|
||||
*/
|
||||
static WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static THD_WORKING_AREA(spi_thread_2_wa, 256);
|
||||
static msg_t spi_thread_2(void *p) {
|
||||
|
||||
(void)p;
|
||||
|
|
|
@ -66,11 +66,11 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/hal/osal/chibios/osal.mk
|
||||
include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/rt/rt.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/devices/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/rt/osal/osal.mk
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/mk/port_stm32f4xx.mk
|
||||
#include $(CHIBIOS)/test/test.mk
|
||||
|
||||
# Define linker script file here
|
||||
|
@ -222,4 +222,4 @@ ifeq ($(USE_FWLIB),yes)
|
|||
USE_OPT += -DUSE_STDPERIPH_DRIVER
|
||||
endif
|
||||
|
||||
include $(CHIBIOS)/os/rt/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/rules.mk
|
||||
|
|
|
@ -66,7 +66,7 @@ PROJECT = ch
|
|||
# Imported source files and paths
|
||||
CHIBIOS = ../../..
|
||||
include $(CHIBIOS)/boards/OLIMEX_STM32_E407/board.mk
|
||||
include $(CHIBIOS)/os/hal/platforms/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/ports/STM32F4xx/platform.mk
|
||||
include $(CHIBIOS)/os/hal/hal.mk
|
||||
include $(CHIBIOS)/os/ports/GCC/ARMCMx/STM32F4xx/port.mk
|
||||
include $(CHIBIOS)/os/kernel/kernel.mk
|
||||
|
|
Loading…
Reference in New Issue