Merge pull request #310 from zykrahgaming/chibios-21.11.x-dev
Update all MCUs to ChibiOS 21.11.x/master
This commit is contained in:
commit
47b1ce69a4
|
@ -2,9 +2,9 @@ name: build tests
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ chibios-21.6.x ]
|
branches: [ chibios-21.11.x ]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ chibios-21.6.x ]
|
branches: [ chibios-21.11.x ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -16,7 +16,7 @@ jobs:
|
||||||
release: '10-2020-q4'
|
release: '10-2020-q4'
|
||||||
- name: setup vars
|
- name: setup vars
|
||||||
run: |
|
run: |
|
||||||
echo "CH_VER=stable_20.3.x" >> $GITHUB_ENV
|
echo "CH_VER=stable_21.11.x" >> $GITHUB_ENV
|
||||||
echo "CHC_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
echo "CHC_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
|
||||||
- name: download Chibios
|
- name: download Chibios
|
||||||
run: |
|
run: |
|
||||||
|
@ -25,11 +25,11 @@ jobs:
|
||||||
- name: decompress ChibiOS ext resources
|
- name: decompress ChibiOS ext resources
|
||||||
run: |
|
run: |
|
||||||
cd $CH_PATH/ext
|
cd $CH_PATH/ext
|
||||||
for i in *.7z; do 7z x -y $i; done
|
for i in *.7z; do 7z x -y "$i"; done
|
||||||
- name: decompress ChibiOS-Contrib ext resources
|
- name: decompress ChibiOS-Contrib ext resources
|
||||||
run: |
|
run: |
|
||||||
cd $CHC_PATH/ext
|
cd $CHC_PATH/ext
|
||||||
for i in *.7z; do 7z x -y $i; done
|
for i in *.7z; do 7z x -y "$i"; done
|
||||||
- name: build STM32
|
- name: build STM32
|
||||||
run: |
|
run: |
|
||||||
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/STM32
|
$CHC_PATH/tools/chbuild.sh $CHC_PATH/testhal/STM32
|
||||||
|
|
|
@ -97,7 +97,7 @@ include $(CHIBIOS_CONTRIB)/os/common/ports/RISCV-ECLIC/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,14 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -107,11 +107,11 @@ include $(BOARDDIR)/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/os/test/test.mk
|
||||||
#include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/FREESCALE_FREEDOM_K20D50M/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/MCHCK_K20/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/MCHCK_K20/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_3_1/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_3_6/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -123,6 +143,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -164,6 +197,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -334,6 +378,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -635,7 +689,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -643,7 +697,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -749,6 +819,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -107,11 +107,11 @@ include $(BOARDDIR)/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
#include $(CHIBIOS)/test/lib/test.mk
|
#include $(CHIBIOS)/os/test/test.mk
|
||||||
#include $(CHIBIOS)/test/rt/rt_test.mk
|
#include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
#include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,10 +99,10 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/PJRC_TEENSY_4_1/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS_CONTRIB)/os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.mk
|
include $(CHIBIOS_CONTRIB)/os/common/ports/ARMCMx/compilers/GCC/utils/fault_handlers_v7m.mk
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
# for printf
|
# for printf
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -123,6 +143,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -164,6 +197,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -334,6 +378,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -635,7 +689,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -643,7 +697,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -749,6 +819,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -180,6 +180,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -180,6 +180,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -100,9 +100,9 @@ include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/OSHCHIP_V1.0/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/WVSHARE_BLE400/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -100,9 +100,9 @@ include $(CHIBIOS)/os/hal/osal/rt-nil/osal.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/various/shell/shell.mk
|
include $(CHIBIOS)/os/various/shell/shell.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM FALSE
|
#define CH_CFG_USE_TM FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ include $(CHIBIOS)/os/hal/boards/ST_STM32F3_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,14 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -107,11 +107,11 @@ include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS_CONTRIB)/os/various/segger_bindings/segger_rtt.mk
|
include $(CHIBIOS_CONTRIB)/os/various/segger_bindings/segger_rtt.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,31 @@
|
||||||
#define STM32_IRQ_EXTI21_PRIORITY 15
|
#define STM32_IRQ_EXTI21_PRIORITY 15
|
||||||
#define STM32_IRQ_EXTI22_PRIORITY 15
|
#define STM32_IRQ_EXTI22_PRIORITY 15
|
||||||
|
|
||||||
|
#define STM32_IRQ_TIM1_BRK_TIM9_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_UP_TIM10_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_TRGCO_TIM11_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||||
|
|
||||||
|
#define STM32_IRQ_USART1_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART2_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART3_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART4_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART5_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART6_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART7_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART8_PRIORITY 12
|
||||||
|
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
@ -138,21 +163,11 @@
|
||||||
#define STM32_GPT_USE_TIM7 FALSE
|
#define STM32_GPT_USE_TIM7 FALSE
|
||||||
#define STM32_GPT_USE_TIM8 FALSE
|
#define STM32_GPT_USE_TIM8 FALSE
|
||||||
#define STM32_GPT_USE_TIM9 FALSE
|
#define STM32_GPT_USE_TIM9 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM10 FALSE
|
||||||
#define STM32_GPT_USE_TIM11 FALSE
|
#define STM32_GPT_USE_TIM11 FALSE
|
||||||
#define STM32_GPT_USE_TIM12 FALSE
|
#define STM32_GPT_USE_TIM12 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM13 FALSE
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM6_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM7_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM9_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM11_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM12_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
|
@ -200,13 +215,11 @@
|
||||||
#define STM32_ICU_USE_TIM5 FALSE
|
#define STM32_ICU_USE_TIM5 FALSE
|
||||||
#define STM32_ICU_USE_TIM8 FALSE
|
#define STM32_ICU_USE_TIM8 FALSE
|
||||||
#define STM32_ICU_USE_TIM9 FALSE
|
#define STM32_ICU_USE_TIM9 FALSE
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM10 FALSE
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM11 FALSE
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM12 FALSE
|
||||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM13 FALSE
|
||||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM14 FALSE
|
||||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MAC driver system settings.
|
* MAC driver system settings.
|
||||||
|
@ -230,13 +243,11 @@
|
||||||
#define STM32_PWM_USE_TIM5 FALSE
|
#define STM32_PWM_USE_TIM5 FALSE
|
||||||
#define STM32_PWM_USE_TIM8 FALSE
|
#define STM32_PWM_USE_TIM8 FALSE
|
||||||
#define STM32_PWM_USE_TIM9 FALSE
|
#define STM32_PWM_USE_TIM9 FALSE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM10 FALSE
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM11 FALSE
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM12 FALSE
|
||||||
#define STM32_PWM_TIM4_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM13 FALSE
|
||||||
#define STM32_PWM_TIM5_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM14 FALSE
|
||||||
#define STM32_PWM_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_PWM_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RTC driver system settings.
|
* RTC driver system settings.
|
||||||
|
@ -266,12 +277,6 @@
|
||||||
#define STM32_SERIAL_USE_UART4 FALSE
|
#define STM32_SERIAL_USE_UART4 FALSE
|
||||||
#define STM32_SERIAL_USE_UART5 FALSE
|
#define STM32_SERIAL_USE_UART5 FALSE
|
||||||
#define STM32_SERIAL_USE_USART6 FALSE
|
#define STM32_SERIAL_USE_USART6 FALSE
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPI driver system settings.
|
* SPI driver system settings.
|
||||||
|
@ -320,12 +325,6 @@
|
||||||
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
|
|
|
@ -107,7 +107,7 @@ include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,14 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -86,6 +86,31 @@
|
||||||
#define STM32_IRQ_EXTI21_PRIORITY 15
|
#define STM32_IRQ_EXTI21_PRIORITY 15
|
||||||
#define STM32_IRQ_EXTI22_PRIORITY 15
|
#define STM32_IRQ_EXTI22_PRIORITY 15
|
||||||
|
|
||||||
|
#define STM32_IRQ_TIM1_BRK_TIM9_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_UP_TIM10_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_TRGCO_TIM11_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||||
|
|
||||||
|
#define STM32_IRQ_USART1_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART2_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART3_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART4_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART5_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART6_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART7_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART8_PRIORITY 12
|
||||||
|
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
@ -137,21 +162,11 @@
|
||||||
#define STM32_GPT_USE_TIM7 FALSE
|
#define STM32_GPT_USE_TIM7 FALSE
|
||||||
#define STM32_GPT_USE_TIM8 FALSE
|
#define STM32_GPT_USE_TIM8 FALSE
|
||||||
#define STM32_GPT_USE_TIM9 FALSE
|
#define STM32_GPT_USE_TIM9 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM10 FALSE
|
||||||
#define STM32_GPT_USE_TIM11 FALSE
|
#define STM32_GPT_USE_TIM11 FALSE
|
||||||
#define STM32_GPT_USE_TIM12 FALSE
|
#define STM32_GPT_USE_TIM12 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM13 FALSE
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM6_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM7_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM9_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM11_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM12_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
|
@ -199,13 +214,11 @@
|
||||||
#define STM32_ICU_USE_TIM5 FALSE
|
#define STM32_ICU_USE_TIM5 FALSE
|
||||||
#define STM32_ICU_USE_TIM8 FALSE
|
#define STM32_ICU_USE_TIM8 FALSE
|
||||||
#define STM32_ICU_USE_TIM9 FALSE
|
#define STM32_ICU_USE_TIM9 FALSE
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM10 FALSE
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM11 FALSE
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM12 FALSE
|
||||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM13 FALSE
|
||||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM14 FALSE
|
||||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MAC driver system settings.
|
* MAC driver system settings.
|
||||||
|
@ -229,13 +242,11 @@
|
||||||
#define STM32_PWM_USE_TIM5 FALSE
|
#define STM32_PWM_USE_TIM5 FALSE
|
||||||
#define STM32_PWM_USE_TIM8 FALSE
|
#define STM32_PWM_USE_TIM8 FALSE
|
||||||
#define STM32_PWM_USE_TIM9 FALSE
|
#define STM32_PWM_USE_TIM9 FALSE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM10 FALSE
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM11 FALSE
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM12 FALSE
|
||||||
#define STM32_PWM_TIM4_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM13 FALSE
|
||||||
#define STM32_PWM_TIM5_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM14 FALSE
|
||||||
#define STM32_PWM_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_PWM_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* RTC driver system settings.
|
* RTC driver system settings.
|
||||||
|
@ -265,12 +276,6 @@
|
||||||
#define STM32_SERIAL_USE_UART4 FALSE
|
#define STM32_SERIAL_USE_UART4 FALSE
|
||||||
#define STM32_SERIAL_USE_UART5 FALSE
|
#define STM32_SERIAL_USE_UART5 FALSE
|
||||||
#define STM32_SERIAL_USE_USART6 FALSE
|
#define STM32_SERIAL_USE_USART6 FALSE
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPI driver system settings.
|
* SPI driver system settings.
|
||||||
|
@ -319,12 +324,6 @@
|
||||||
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
|
|
|
@ -106,7 +106,7 @@ include $(CHIBIOS)/os/hal/boards/ST_STM32F4_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -83,6 +83,31 @@
|
||||||
#define STM32_IRQ_EXTI21_PRIORITY 15
|
#define STM32_IRQ_EXTI21_PRIORITY 15
|
||||||
#define STM32_IRQ_EXTI22_PRIORITY 15
|
#define STM32_IRQ_EXTI22_PRIORITY 15
|
||||||
|
|
||||||
|
#define STM32_IRQ_TIM1_BRK_TIM9_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_UP_TIM10_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_TRGCO_TIM11_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||||
|
|
||||||
|
#define STM32_IRQ_USART1_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART2_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART3_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART4_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART5_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART6_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART7_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART8_PRIORITY 12
|
||||||
|
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
@ -134,21 +159,11 @@
|
||||||
#define STM32_GPT_USE_TIM7 FALSE
|
#define STM32_GPT_USE_TIM7 FALSE
|
||||||
#define STM32_GPT_USE_TIM8 FALSE
|
#define STM32_GPT_USE_TIM8 FALSE
|
||||||
#define STM32_GPT_USE_TIM9 FALSE
|
#define STM32_GPT_USE_TIM9 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM10 FALSE
|
||||||
#define STM32_GPT_USE_TIM11 FALSE
|
#define STM32_GPT_USE_TIM11 FALSE
|
||||||
#define STM32_GPT_USE_TIM12 FALSE
|
#define STM32_GPT_USE_TIM12 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM13 FALSE
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM6_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM7_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM9_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM11_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM12_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
|
@ -196,13 +211,11 @@
|
||||||
#define STM32_ICU_USE_TIM5 FALSE
|
#define STM32_ICU_USE_TIM5 FALSE
|
||||||
#define STM32_ICU_USE_TIM8 FALSE
|
#define STM32_ICU_USE_TIM8 FALSE
|
||||||
#define STM32_ICU_USE_TIM9 FALSE
|
#define STM32_ICU_USE_TIM9 FALSE
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM10 FALSE
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM11 FALSE
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM12 FALSE
|
||||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM13 FALSE
|
||||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM14 FALSE
|
||||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MAC driver system settings.
|
* MAC driver system settings.
|
||||||
|
@ -226,13 +239,11 @@
|
||||||
#define STM32_PWM_USE_TIM5 FALSE
|
#define STM32_PWM_USE_TIM5 FALSE
|
||||||
#define STM32_PWM_USE_TIM8 FALSE
|
#define STM32_PWM_USE_TIM8 FALSE
|
||||||
#define STM32_PWM_USE_TIM9 FALSE
|
#define STM32_PWM_USE_TIM9 FALSE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM10 FALSE
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM11 FALSE
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM12 FALSE
|
||||||
#define STM32_PWM_TIM4_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM13 FALSE
|
||||||
#define STM32_PWM_TIM5_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM14 FALSE
|
||||||
#define STM32_PWM_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_PWM_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SDC driver system settings.
|
* SDC driver system settings.
|
||||||
|
@ -254,12 +265,6 @@
|
||||||
#define STM32_SERIAL_USE_UART4 FALSE
|
#define STM32_SERIAL_USE_UART4 FALSE
|
||||||
#define STM32_SERIAL_USE_UART5 FALSE
|
#define STM32_SERIAL_USE_UART5 FALSE
|
||||||
#define STM32_SERIAL_USE_USART6 FALSE
|
#define STM32_SERIAL_USE_USART6 FALSE
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPI driver system settings.
|
* SPI driver system settings.
|
||||||
|
@ -308,12 +313,6 @@
|
||||||
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
|
|
|
@ -106,11 +106,11 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/ST_STM32F411_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Auto-build files in ./source recursively.
|
# Auto-build files in ./source recursively.
|
||||||
include $(CHIBIOS)/tools/mk/autobuild.mk
|
include $(CHIBIOS)/tools/mk/autobuild.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -33,6 +33,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STM32F4xx_MCUCONF
|
#define STM32F4xx_MCUCONF
|
||||||
|
#define STM32F411_MCUCONF
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HAL driver system settings.
|
* HAL driver system settings.
|
||||||
|
@ -83,6 +84,31 @@
|
||||||
#define STM32_IRQ_EXTI21_PRIORITY 15
|
#define STM32_IRQ_EXTI21_PRIORITY 15
|
||||||
#define STM32_IRQ_EXTI22_PRIORITY 15
|
#define STM32_IRQ_EXTI22_PRIORITY 15
|
||||||
|
|
||||||
|
#define STM32_IRQ_TIM1_BRK_TIM9_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_UP_TIM10_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_TRGCO_TIM11_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||||
|
|
||||||
|
#define STM32_IRQ_USART1_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART2_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART3_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART4_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART5_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART6_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART7_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART8_PRIORITY 12
|
||||||
|
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
@ -134,21 +160,11 @@
|
||||||
#define STM32_GPT_USE_TIM7 FALSE
|
#define STM32_GPT_USE_TIM7 FALSE
|
||||||
#define STM32_GPT_USE_TIM8 FALSE
|
#define STM32_GPT_USE_TIM8 FALSE
|
||||||
#define STM32_GPT_USE_TIM9 FALSE
|
#define STM32_GPT_USE_TIM9 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM10 FALSE
|
||||||
#define STM32_GPT_USE_TIM11 FALSE
|
#define STM32_GPT_USE_TIM11 FALSE
|
||||||
#define STM32_GPT_USE_TIM12 FALSE
|
#define STM32_GPT_USE_TIM12 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM13 FALSE
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM6_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM7_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM9_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM11_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM12_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
|
@ -196,13 +212,11 @@
|
||||||
#define STM32_ICU_USE_TIM5 FALSE
|
#define STM32_ICU_USE_TIM5 FALSE
|
||||||
#define STM32_ICU_USE_TIM8 FALSE
|
#define STM32_ICU_USE_TIM8 FALSE
|
||||||
#define STM32_ICU_USE_TIM9 FALSE
|
#define STM32_ICU_USE_TIM9 FALSE
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM10 FALSE
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM11 FALSE
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM12 FALSE
|
||||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM13 FALSE
|
||||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM14 FALSE
|
||||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MAC driver system settings.
|
* MAC driver system settings.
|
||||||
|
@ -226,13 +240,11 @@
|
||||||
#define STM32_PWM_USE_TIM5 FALSE
|
#define STM32_PWM_USE_TIM5 FALSE
|
||||||
#define STM32_PWM_USE_TIM8 FALSE
|
#define STM32_PWM_USE_TIM8 FALSE
|
||||||
#define STM32_PWM_USE_TIM9 FALSE
|
#define STM32_PWM_USE_TIM9 FALSE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM10 FALSE
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM11 FALSE
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM12 FALSE
|
||||||
#define STM32_PWM_TIM4_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM13 FALSE
|
||||||
#define STM32_PWM_TIM5_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM14 FALSE
|
||||||
#define STM32_PWM_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_PWM_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SDC driver system settings.
|
* SDC driver system settings.
|
||||||
|
@ -254,12 +266,6 @@
|
||||||
#define STM32_SERIAL_USE_UART4 FALSE
|
#define STM32_SERIAL_USE_UART4 FALSE
|
||||||
#define STM32_SERIAL_USE_UART5 FALSE
|
#define STM32_SERIAL_USE_UART5 FALSE
|
||||||
#define STM32_SERIAL_USE_USART6 FALSE
|
#define STM32_SERIAL_USE_USART6 FALSE
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SPI driver system settings.
|
* SPI driver system settings.
|
||||||
|
@ -308,12 +314,6 @@
|
||||||
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS)/os/hal/boards/ST_STM32F429I_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STM32F4xx_MCUCONF
|
#define STM32F4xx_MCUCONF
|
||||||
|
#define STM32F429_MCUCONF
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HAL driver system settings.
|
* HAL driver system settings.
|
||||||
|
@ -82,6 +83,31 @@
|
||||||
#define STM32_IRQ_EXTI21_PRIORITY 15
|
#define STM32_IRQ_EXTI21_PRIORITY 15
|
||||||
#define STM32_IRQ_EXTI22_PRIORITY 15
|
#define STM32_IRQ_EXTI22_PRIORITY 15
|
||||||
|
|
||||||
|
#define STM32_IRQ_TIM1_BRK_TIM9_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_UP_TIM10_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_TRGCO_TIM11_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||||
|
|
||||||
|
#define STM32_IRQ_USART1_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART2_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART3_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART4_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART5_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART6_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART7_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART8_PRIORITY 12
|
||||||
|
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
@ -133,21 +159,11 @@
|
||||||
#define STM32_GPT_USE_TIM7 FALSE
|
#define STM32_GPT_USE_TIM7 FALSE
|
||||||
#define STM32_GPT_USE_TIM8 FALSE
|
#define STM32_GPT_USE_TIM8 FALSE
|
||||||
#define STM32_GPT_USE_TIM9 FALSE
|
#define STM32_GPT_USE_TIM9 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM10 FALSE
|
||||||
#define STM32_GPT_USE_TIM11 FALSE
|
#define STM32_GPT_USE_TIM11 FALSE
|
||||||
#define STM32_GPT_USE_TIM12 FALSE
|
#define STM32_GPT_USE_TIM12 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM13 FALSE
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM6_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM7_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM9_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM11_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM12_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
|
@ -195,13 +211,11 @@
|
||||||
#define STM32_ICU_USE_TIM5 FALSE
|
#define STM32_ICU_USE_TIM5 FALSE
|
||||||
#define STM32_ICU_USE_TIM8 FALSE
|
#define STM32_ICU_USE_TIM8 FALSE
|
||||||
#define STM32_ICU_USE_TIM9 FALSE
|
#define STM32_ICU_USE_TIM9 FALSE
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM10 FALSE
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM11 FALSE
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM12 FALSE
|
||||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM13 FALSE
|
||||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM14 FALSE
|
||||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MAC driver system settings.
|
* MAC driver system settings.
|
||||||
|
@ -225,13 +239,11 @@
|
||||||
#define STM32_PWM_USE_TIM5 FALSE
|
#define STM32_PWM_USE_TIM5 FALSE
|
||||||
#define STM32_PWM_USE_TIM8 FALSE
|
#define STM32_PWM_USE_TIM8 FALSE
|
||||||
#define STM32_PWM_USE_TIM9 FALSE
|
#define STM32_PWM_USE_TIM9 FALSE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM10 FALSE
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM11 FALSE
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM12 FALSE
|
||||||
#define STM32_PWM_TIM4_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM13 FALSE
|
||||||
#define STM32_PWM_TIM5_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM14 FALSE
|
||||||
#define STM32_PWM_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_PWM_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SDC driver system settings.
|
* SDC driver system settings.
|
||||||
|
@ -255,12 +267,7 @@
|
||||||
#define STM32_SERIAL_USE_USART6 FALSE
|
#define STM32_SERIAL_USE_USART6 FALSE
|
||||||
#define STM32_SERIAL_USE_UART7 FALSE
|
#define STM32_SERIAL_USE_UART7 FALSE
|
||||||
#define STM32_SERIAL_USE_UART8 FALSE
|
#define STM32_SERIAL_USE_UART8 FALSE
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART7_PRIORITY 12
|
#define STM32_SERIAL_UART7_PRIORITY 12
|
||||||
#define STM32_SERIAL_UART8_PRIORITY 12
|
#define STM32_SERIAL_UART8_PRIORITY 12
|
||||||
|
|
||||||
|
@ -326,12 +333,6 @@
|
||||||
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS)/os/hal/boards/ST_STM32F429I_DISCOVERY/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STM32F4xx_MCUCONF
|
#define STM32F4xx_MCUCONF
|
||||||
|
#define STM32F429_MCUCONF
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* HAL driver system settings.
|
* HAL driver system settings.
|
||||||
|
@ -82,6 +83,31 @@
|
||||||
#define STM32_IRQ_EXTI21_PRIORITY 15
|
#define STM32_IRQ_EXTI21_PRIORITY 15
|
||||||
#define STM32_IRQ_EXTI22_PRIORITY 15
|
#define STM32_IRQ_EXTI22_PRIORITY 15
|
||||||
|
|
||||||
|
#define STM32_IRQ_TIM1_BRK_TIM9_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_UP_TIM10_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_TRGCO_TIM11_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM1_CC_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM2_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM3_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM4_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM5_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM6_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM7_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_BRK_TIM12_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_UP_TIM13_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_TRGCO_TIM14_PRIORITY 7
|
||||||
|
#define STM32_IRQ_TIM8_CC_PRIORITY 7
|
||||||
|
|
||||||
|
#define STM32_IRQ_USART1_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART2_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART3_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART4_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART5_PRIORITY 12
|
||||||
|
#define STM32_IRQ_USART6_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART7_PRIORITY 12
|
||||||
|
#define STM32_IRQ_UART8_PRIORITY 12
|
||||||
|
#define STM32_IRQ_LPUART1_PRIORITY 12
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ADC driver system settings.
|
* ADC driver system settings.
|
||||||
*/
|
*/
|
||||||
|
@ -133,21 +159,11 @@
|
||||||
#define STM32_GPT_USE_TIM7 FALSE
|
#define STM32_GPT_USE_TIM7 FALSE
|
||||||
#define STM32_GPT_USE_TIM8 FALSE
|
#define STM32_GPT_USE_TIM8 FALSE
|
||||||
#define STM32_GPT_USE_TIM9 FALSE
|
#define STM32_GPT_USE_TIM9 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM10 FALSE
|
||||||
#define STM32_GPT_USE_TIM11 FALSE
|
#define STM32_GPT_USE_TIM11 FALSE
|
||||||
#define STM32_GPT_USE_TIM12 FALSE
|
#define STM32_GPT_USE_TIM12 FALSE
|
||||||
|
#define STM32_GPT_USE_TIM13 FALSE
|
||||||
#define STM32_GPT_USE_TIM14 FALSE
|
#define STM32_GPT_USE_TIM14 FALSE
|
||||||
#define STM32_GPT_TIM1_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM2_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM3_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM4_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM5_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM6_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM7_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM9_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM11_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM12_IRQ_PRIORITY 7
|
|
||||||
#define STM32_GPT_TIM14_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* I2C driver system settings.
|
* I2C driver system settings.
|
||||||
|
@ -195,13 +211,11 @@
|
||||||
#define STM32_ICU_USE_TIM5 FALSE
|
#define STM32_ICU_USE_TIM5 FALSE
|
||||||
#define STM32_ICU_USE_TIM8 FALSE
|
#define STM32_ICU_USE_TIM8 FALSE
|
||||||
#define STM32_ICU_USE_TIM9 FALSE
|
#define STM32_ICU_USE_TIM9 FALSE
|
||||||
#define STM32_ICU_TIM1_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM10 FALSE
|
||||||
#define STM32_ICU_TIM2_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM11 FALSE
|
||||||
#define STM32_ICU_TIM3_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM12 FALSE
|
||||||
#define STM32_ICU_TIM4_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM13 FALSE
|
||||||
#define STM32_ICU_TIM5_IRQ_PRIORITY 7
|
#define STM32_ICU_USE_TIM14 FALSE
|
||||||
#define STM32_ICU_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_ICU_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* MAC driver system settings.
|
* MAC driver system settings.
|
||||||
|
@ -225,13 +239,11 @@
|
||||||
#define STM32_PWM_USE_TIM5 FALSE
|
#define STM32_PWM_USE_TIM5 FALSE
|
||||||
#define STM32_PWM_USE_TIM8 FALSE
|
#define STM32_PWM_USE_TIM8 FALSE
|
||||||
#define STM32_PWM_USE_TIM9 FALSE
|
#define STM32_PWM_USE_TIM9 FALSE
|
||||||
#define STM32_PWM_TIM1_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM10 FALSE
|
||||||
#define STM32_PWM_TIM2_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM11 FALSE
|
||||||
#define STM32_PWM_TIM3_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM12 FALSE
|
||||||
#define STM32_PWM_TIM4_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM13 FALSE
|
||||||
#define STM32_PWM_TIM5_IRQ_PRIORITY 7
|
#define STM32_PWM_USE_TIM14 FALSE
|
||||||
#define STM32_PWM_TIM8_IRQ_PRIORITY 7
|
|
||||||
#define STM32_PWM_TIM9_IRQ_PRIORITY 7
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* SDC driver system settings.
|
* SDC driver system settings.
|
||||||
|
@ -255,12 +267,7 @@
|
||||||
#define STM32_SERIAL_USE_USART6 FALSE
|
#define STM32_SERIAL_USE_USART6 FALSE
|
||||||
#define STM32_SERIAL_USE_UART7 FALSE
|
#define STM32_SERIAL_USE_UART7 FALSE
|
||||||
#define STM32_SERIAL_USE_UART8 FALSE
|
#define STM32_SERIAL_USE_UART8 FALSE
|
||||||
#define STM32_SERIAL_USART1_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART2_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART3_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART4_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART5_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_USART6_PRIORITY 12
|
|
||||||
#define STM32_SERIAL_UART7_PRIORITY 12
|
#define STM32_SERIAL_UART7_PRIORITY 12
|
||||||
#define STM32_SERIAL_UART8_PRIORITY 12
|
#define STM32_SERIAL_UART8_PRIORITY 12
|
||||||
|
|
||||||
|
@ -326,12 +333,6 @@
|
||||||
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
#define STM32_UART_UART5_TX_DMA_STREAM STM32_DMA_STREAM_ID(1, 7)
|
||||||
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
#define STM32_UART_USART6_RX_DMA_STREAM STM32_DMA_STREAM_ID(2, 2)
|
||||||
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
#define STM32_UART_USART6_TX_DMA_STREAM STM32_DMA_STREAM_ID(2, 7)
|
||||||
#define STM32_UART_USART1_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART2_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART3_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART4_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_UART5_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART6_IRQ_PRIORITY 12
|
|
||||||
#define STM32_UART_USART1_DMA_PRIORITY 0
|
#define STM32_UART_USART1_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART2_DMA_PRIORITY 0
|
#define STM32_UART_USART2_DMA_PRIORITY 0
|
||||||
#define STM32_UART_USART3_DMA_PRIORITY 0
|
#define STM32_UART_USART3_DMA_PRIORITY 0
|
||||||
|
|
|
@ -100,9 +100,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/TI_TM4C123G_LAUNCHPAD/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -100,7 +100,7 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/os/various/lwip_bindings/lwip.mk
|
include $(CHIBIOS)/os/various/lwip_bindings/lwip.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -100,9 +100,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/TI_TM4C1294_LAUNCHPAD/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -631,7 +675,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +683,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +805,14 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
6
lgtm.yml
6
lgtm.yml
|
@ -5,7 +5,7 @@ extraction:
|
||||||
- p7zip-full
|
- p7zip-full
|
||||||
after_prepare:
|
after_prepare:
|
||||||
- export GCC=gcc-arm-none-eabi-9-2020-q2-update
|
- export GCC=gcc-arm-none-eabi-9-2020-q2-update
|
||||||
- export CH_VER=stable_20.3.x
|
- export CH_VER=master
|
||||||
- cd ${LGTM_WORKSPACE}
|
- cd ${LGTM_WORKSPACE}
|
||||||
- wget -nv https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -O compiler.tar.xz
|
- wget -nv https://developer.arm.com/-/media/Files/downloads/gnu-rm/9-2020q2/gcc-arm-none-eabi-9-2020-q2-update-x86_64-linux.tar.bz2 -O compiler.tar.xz
|
||||||
- tar xf compiler.tar.xz -C ${LGTM_WORKSPACE}
|
- tar xf compiler.tar.xz -C ${LGTM_WORKSPACE}
|
||||||
|
@ -13,9 +13,9 @@ extraction:
|
||||||
- curl -L https://github.com/ChibiOS/ChibiOS/archive/${CH_VER}.tar.gz | tar xz
|
- curl -L https://github.com/ChibiOS/ChibiOS/archive/${CH_VER}.tar.gz | tar xz
|
||||||
- mv ChibiOS-${CH_VER} ChibiOS
|
- mv ChibiOS-${CH_VER} ChibiOS
|
||||||
- cd ChibiOS/ext
|
- cd ChibiOS/ext
|
||||||
- for i in *.7z; do 7z x -y $i; done
|
- for i in *.7z; do 7z x -y "$i"; done
|
||||||
- cd ${LGTM_SRC}/ext
|
- cd ${LGTM_SRC}/ext
|
||||||
- for i in *.7z; do 7z x -y $i; done
|
- for i in *.7z; do 7z x -y "$i"; done
|
||||||
index:
|
index:
|
||||||
build_command:
|
build_command:
|
||||||
- export PATH=${LGTM_WORKSPACE}/gcc-arm/bin:${PATH}
|
- export PATH=${LGTM_WORKSPACE}/gcc-arm/bin:${PATH}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "fault_handlers.h"
|
#include "fault_handlers.h"
|
||||||
#include <hal.h>
|
#include "hal.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
#ifndef FAULT_NO_PRINT
|
#ifndef FAULT_NO_PRINT
|
||||||
|
@ -133,12 +133,12 @@ static void _init_fault_info(void) {
|
||||||
static void _save_fault_info(void) {
|
static void _save_fault_info(void) {
|
||||||
memset(&fault_info, 0, sizeof(fault_info));
|
memset(&fault_info, 0, sizeof(fault_info));
|
||||||
|
|
||||||
if (ch.rlist.current) {
|
if (currcore->rlist.current) {
|
||||||
fault_printf("Thread: 0x%08x, %s",
|
fault_printf("Thread: 0x%08x, %s",
|
||||||
ch.rlist.current, ch.rlist.current->name);
|
currcore->rlist.current, currcore->rlist.current->name);
|
||||||
|
|
||||||
fault_info.decoded_fault_registers.general.current_thread_address = (uint32_t)ch.rlist.current;
|
fault_info.decoded_fault_registers.general.current_thread_address = (uint32_t)currcore->rlist.current;
|
||||||
fault_info.decoded_fault_registers.general.current_thread_name = ch.rlist.current->name;
|
fault_info.decoded_fault_registers.general.current_thread_name = currcore->rlist.current->name;
|
||||||
} else {
|
} else {
|
||||||
fault_printf("Thread: unknown");
|
fault_printf("Thread: unknown");
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,7 +87,7 @@ typedef enum {
|
||||||
* @brief Represents command block wrapper structure.
|
* @brief Represents command block wrapper structure.
|
||||||
* @details See USB Mass Storage Class Specification.
|
* @details See USB Mass Storage Class Specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint32_t signature;
|
uint32_t signature;
|
||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
uint32_t data_len;
|
uint32_t data_len;
|
||||||
|
@ -101,7 +101,7 @@ typedef struct PACKED_VAR {
|
||||||
* @brief Represents command status wrapper structure.
|
* @brief Represents command status wrapper structure.
|
||||||
* @details See USB Mass Storage Class Specification.
|
* @details See USB Mass Storage Class Specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint32_t signature;
|
uint32_t signature;
|
||||||
uint32_t tag;
|
uint32_t tag;
|
||||||
uint32_t data_residue;
|
uint32_t data_residue;
|
||||||
|
|
|
@ -732,7 +732,7 @@ void usb_lld_init_endpoint(USBDriver *usbp, usbep_t ep) {
|
||||||
} else {
|
} else {
|
||||||
buf_size = 64;
|
buf_size = 64;
|
||||||
}
|
}
|
||||||
buf_offset = usb_buffer_next_offset(usbp, buf_offset, false);
|
buf_offset = usb_buffer_next_offset(usbp, buf_size, false);
|
||||||
epcp->out_state->hw_buf = (uint8_t*)&USB_DPSRAM->DATA[buf_offset];
|
epcp->out_state->hw_buf = (uint8_t*)&USB_DPSRAM->DATA[buf_offset];
|
||||||
epcp->out_state->buf_size = buf_size;
|
epcp->out_state->buf_size = buf_size;
|
||||||
|
|
||||||
|
|
|
@ -110,7 +110,7 @@ typedef enum {
|
||||||
* @brief Represents SCSI sense data structure.
|
* @brief Represents SCSI sense data structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint8_t byte[18];
|
uint8_t byte[18];
|
||||||
} scsi_sense_response_t;
|
} scsi_sense_response_t;
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ typedef struct PACKED_VAR {
|
||||||
* @brief Represents SCSI inquiry response structure.
|
* @brief Represents SCSI inquiry response structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint8_t peripheral;
|
uint8_t peripheral;
|
||||||
uint8_t removable;
|
uint8_t removable;
|
||||||
uint8_t version;
|
uint8_t version;
|
||||||
|
@ -136,7 +136,7 @@ typedef struct PACKED_VAR {
|
||||||
* @brief Represents SCSI unit serial number inquiry response structure.
|
* @brief Represents SCSI unit serial number inquiry response structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint8_t peripheral;
|
uint8_t peripheral;
|
||||||
uint8_t page_code;
|
uint8_t page_code;
|
||||||
uint8_t reserved;
|
uint8_t reserved;
|
||||||
|
@ -147,7 +147,7 @@ typedef struct PACKED_VAR {
|
||||||
* @brief Represents SCSI mode sense (6) request structure.
|
* @brief Represents SCSI mode sense (6) request structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint8_t byte[6];
|
uint8_t byte[6];
|
||||||
} scsi_mode_sense6_request_t;
|
} scsi_mode_sense6_request_t;
|
||||||
|
|
||||||
|
@ -155,7 +155,7 @@ typedef struct PACKED_VAR {
|
||||||
* @brief Represents SCSI mode sense (6) response structure.
|
* @brief Represents SCSI mode sense (6) response structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR{
|
typedef struct {
|
||||||
uint8_t byte[4];
|
uint8_t byte[4];
|
||||||
} scsi_mode_sense6_response_t;
|
} scsi_mode_sense6_response_t;
|
||||||
|
|
||||||
|
@ -163,7 +163,7 @@ typedef struct PACKED_VAR{
|
||||||
* @brief Represents SCSI read capacity (10) response structure.
|
* @brief Represents SCSI read capacity (10) response structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint32_t last_block_addr;
|
uint32_t last_block_addr;
|
||||||
uint32_t block_size;
|
uint32_t block_size;
|
||||||
} scsi_read_capacity10_response_t;
|
} scsi_read_capacity10_response_t;
|
||||||
|
@ -172,7 +172,7 @@ typedef struct PACKED_VAR {
|
||||||
* @brief Represents SCSI read format capacity response structure.
|
* @brief Represents SCSI read format capacity response structure.
|
||||||
* @details See SCSI specification.
|
* @details See SCSI specification.
|
||||||
*/
|
*/
|
||||||
typedef struct PACKED_VAR {
|
typedef struct {
|
||||||
uint8_t header[4];
|
uint8_t header[4];
|
||||||
uint8_t blocknum[4];
|
uint8_t blocknum[4];
|
||||||
uint8_t blocklen[4];
|
uint8_t blocklen[4];
|
||||||
|
|
|
@ -100,7 +100,7 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/FREESCALE_FREEDOM_K20D50M/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,9 +99,9 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/FREESCALE_FREEDOM_K20D50M/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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/ARMv7-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
include $(CHIBIOS)/test/lib/test.mk
|
include $(CHIBIOS)/os/test/test.mk
|
||||||
include $(CHIBIOS)/test/rt/rt_test.mk
|
include $(CHIBIOS)/test/rt/rt_test.mk
|
||||||
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
include $(CHIBIOS)/test/oslib/oslib_test.mk
|
||||||
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
include $(CHIBIOS)/os/hal/lib/streams/streams.mk
|
||||||
|
|
|
@ -29,7 +29,27 @@
|
||||||
#define CHCONF_H
|
#define CHCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_RT_CONF_
|
#define _CHIBIOS_RT_CONF_
|
||||||
#define _CHIBIOS_RT_CONF_VER_6_1_
|
#define _CHIBIOS_RT_CONF_VER_7_0_
|
||||||
|
|
||||||
|
/*===========================================================================*/
|
||||||
|
/**
|
||||||
|
* @name System settings
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/*===========================================================================*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Handling of instances.
|
||||||
|
* @note If enabled then threads assigned to various instances can
|
||||||
|
* interact each other using the same synchronization objects.
|
||||||
|
* If disabled then each OS instance is a separate world, no
|
||||||
|
* direct interactions are handled by the OS.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_SMP_MODE)
|
||||||
|
#define CH_CFG_SMP_MODE FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/**
|
/**
|
||||||
|
@ -119,6 +139,19 @@
|
||||||
#define CH_CFG_NO_IDLE_THREAD FALSE
|
#define CH_CFG_NO_IDLE_THREAD FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Kernel hardening level.
|
||||||
|
* @details This option is the level of functional-safety checks enabled
|
||||||
|
* in the kerkel. The meaning is:
|
||||||
|
* - 0: No checks, maximum performance.
|
||||||
|
* - 1: Reasonable checks.
|
||||||
|
* - 2: All checks.
|
||||||
|
* .
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_HARDENING_LEVEL)
|
||||||
|
#define CH_CFG_HARDENING_LEVEL 0
|
||||||
|
#endif
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
@ -160,6 +193,17 @@
|
||||||
#define CH_CFG_USE_TM TRUE
|
#define CH_CFG_USE_TM TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Time Stamps APIs.
|
||||||
|
* @details If enabled then the time time stamps APIs are included in
|
||||||
|
* the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_TIMESTAMP)
|
||||||
|
#define CH_CFG_USE_TIMESTAMP TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Threads registry APIs.
|
* @brief Threads registry APIs.
|
||||||
* @details If enabled then the registry APIs are included in the kernel.
|
* @details If enabled then the registry APIs are included in the kernel.
|
||||||
|
@ -330,6 +374,16 @@
|
||||||
#define CH_CFG_USE_MAILBOXES TRUE
|
#define CH_CFG_USE_MAILBOXES TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Memory checks APIs.
|
||||||
|
* @details If enabled then the memory checks APIs are included in the kernel.
|
||||||
|
*
|
||||||
|
* @note The default is @p TRUE.
|
||||||
|
*/
|
||||||
|
#if !defined(CH_CFG_USE_MEMCHECKS)
|
||||||
|
#define CH_CFG_USE_MEMCHECKS TRUE
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Core Memory Manager APIs.
|
* @brief Core Memory Manager APIs.
|
||||||
* @details If enabled then the core memory manager APIs are included
|
* @details If enabled then the core memory manager APIs are included
|
||||||
|
@ -631,7 +685,7 @@
|
||||||
* @details User fields added to the end of the @p ch_system_t structure.
|
* @details User fields added to the end of the @p ch_system_t structure.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
#define CH_CFG_SYSTEM_EXTRA_FIELDS \
|
||||||
/* Add threads custom fields here.*/
|
/* Add system custom fields here.*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief System initialization hook.
|
* @brief System initialization hook.
|
||||||
|
@ -639,7 +693,23 @@
|
||||||
* just before interrupts are enabled globally.
|
* just before interrupts are enabled globally.
|
||||||
*/
|
*/
|
||||||
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
#define CH_CFG_SYSTEM_INIT_HOOK() { \
|
||||||
/* Add threads initialization code here.*/ \
|
/* Add system initialization code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance structure extension.
|
||||||
|
* @details User fields added to the end of the @p os_instance_t structure.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_EXTRA_FIELDS \
|
||||||
|
/* Add OS instance custom fields here.*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief OS instance initialization hook.
|
||||||
|
*
|
||||||
|
* @param[in] oip pointer to the @p os_instance_t structure
|
||||||
|
*/
|
||||||
|
#define CH_CFG_OS_INSTANCE_INIT_HOOK(oip) { \
|
||||||
|
/* Add OS instance initialization code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -745,6 +815,13 @@
|
||||||
/* Trace code here.*/ \
|
/* Trace code here.*/ \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Runtime Faults Collection Unit hook.
|
||||||
|
* @details This hook is invoked each time new faults are collected and stored.
|
||||||
|
*/
|
||||||
|
#define CH_CFG_RUNTIME_FAULTS_HOOK(mask) { \
|
||||||
|
/* Faults handling code here.*/ \
|
||||||
|
}
|
||||||
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#define HALCONF_H
|
#define HALCONF_H
|
||||||
|
|
||||||
#define _CHIBIOS_HAL_CONF_
|
#define _CHIBIOS_HAL_CONF_
|
||||||
#define _CHIBIOS_HAL_CONF_VER_7_1_
|
#define _CHIBIOS_HAL_CONF_VER_8_0_
|
||||||
|
|
||||||
#include "mcuconf.h"
|
#include "mcuconf.h"
|
||||||
|
|
||||||
|
|
|
@ -99,7 +99,7 @@ include $(CHIBIOS_CONTRIB)/os/hal/boards/FREESCALE_FREEDOM_KL25Z/board.mk
|
||||||
include $(CHIBIOS)/os/hal/osal/rt-nil/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_v6m.mk
|
include $(CHIBIOS)/os/common/ports/ARMv6-M/compilers/GCC/mk/port.mk
|
||||||
# Other files (optional).
|
# Other files (optional).
|
||||||
|
|
||||||
# Define linker script file here
|
# Define linker script file here
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue