Added SAMA_HAL_IS_SECURE switch

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10620 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
Rocco Marco Guglielmi 2017-09-17 17:07:33 +00:00
parent d7dca11fbf
commit 65874b21bd
2 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@
/*
* HAL driver system settings.
*/
#define SAMA_HAL_IS_SECURE TRUE
#define SAMA_NO_INIT FALSE
#define SAMA_MOSCRC_ENABLED TRUE
#define SAMA_MOSCXT_ENABLED FALSE

View File

@ -196,6 +196,15 @@
* @name Configuration options
* @{
*/
/**
* @brief Defines if the code is running in the secure side of the ARM Trust
* Zone. It must be @p TRUE whenever the code is compiled for the
* secure side.
*/
#if !defined(SAMA_NO_INIT) || defined(__DOXYGEN__)
#define SAMA_HAL_IS_SECURE TRUE
#endif
/**
* @brief Disables the PMC initialization in the HAL.
*/