mirror of https://github.com/rusefi/ChibiOS.git
Crypto-related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12482 110e8d01-0319-4d1e-a829-52ad28d1bb01
This commit is contained in:
parent
1abe0779f5
commit
2b17172903
|
@ -54,7 +54,7 @@
|
||||||
* @note The default is @p FALSE.
|
* @note The default is @p FALSE.
|
||||||
*/
|
*/
|
||||||
#if !defined(STM32_CRY_USE_HASH1) || defined(__DOXYGEN__)
|
#if !defined(STM32_CRY_USE_HASH1) || defined(__DOXYGEN__)
|
||||||
#define STM32_CRY_USE_HASH1 FALSE
|
#define STM32_CRY_USE_HASH1 TRUE
|
||||||
#endif
|
#endif
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
||||||
#if (STM32_CRY_USE_CRYP1 == TRUE) || (STM32_CRY_USE_HASH1 == TRUE) || \
|
#if (STM32_CRY_USE_CRYP1 == TRUE) || (STM32_CRY_USE_HASH1 == TRUE) || \
|
||||||
(STM32_CRY_USE_RNG1 == TRUE) || defined (__DOXYGEN__)
|
defined (__DOXYGEN__)
|
||||||
#define STM32_CRY_ENABLED1 TRUE
|
#define STM32_CRY_ENABLED1 TRUE
|
||||||
#else
|
#else
|
||||||
#define STM32_CRY_ENABLED1 FALSE
|
#define STM32_CRY_ENABLED1 FALSE
|
||||||
|
@ -77,10 +77,6 @@
|
||||||
#define STM32_HAS_HASH1 FALSE
|
#define STM32_HAS_HASH1 FALSE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined (STM32_HAS_RNG1)
|
|
||||||
#define STM32_HAS_RNG1 FALSE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if STM32_CRY_USE_CRYP1 && !STM32_HAS_CRYP1
|
#if STM32_CRY_USE_CRYP1 && !STM32_HAS_CRYP1
|
||||||
#error "CRYP1 not present in the selected device"
|
#error "CRYP1 not present in the selected device"
|
||||||
#endif
|
#endif
|
||||||
|
@ -89,12 +85,8 @@
|
||||||
#error "HASH1 not present in the selected device"
|
#error "HASH1 not present in the selected device"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if STM32_CRY_USE_RNG1 && !STM32_HAS_RNG1
|
|
||||||
#error "RNG1 not present in the selected device"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if !STM32_CRY_ENABLED1
|
#if !STM32_CRY_ENABLED1
|
||||||
#error "CRY driver activated but no CRYP or HASH or RNG peripheral assigned"
|
#error "CRY driver activated but no CRYP or HASH peripheral assigned"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -135,7 +127,6 @@
|
||||||
#define CRY_LLD_SUPPORTS_HMAC_SHA256 FALSE
|
#define CRY_LLD_SUPPORTS_HMAC_SHA256 FALSE
|
||||||
#define CRY_LLD_SUPPORTS_HMAC_SHA512 FALSE
|
#define CRY_LLD_SUPPORTS_HMAC_SHA512 FALSE
|
||||||
#endif
|
#endif
|
||||||
#endif
|
|
||||||
/** @} */
|
/** @} */
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -23,6 +23,7 @@ endif
|
||||||
# Drivers compatible with the platform.
|
# Drivers compatible with the platform.
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
|
||||||
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CRYPv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
|
||||||
|
|
|
@ -62,6 +62,15 @@
|
||||||
nvicEnableVector(STM32_RTC_ALARM_NUMBER, STM32_IRQ_EXTI18_PRIORITY); \
|
nvicEnableVector(STM32_RTC_ALARM_NUMBER, STM32_IRQ_EXTI18_PRIORITY); \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
|
#if defined(STM32L4S5xx) || defined(STM32L4S7xx) || defined(STM32L4S9xx) || \
|
||||||
|
defined(__DOXYGEN__)
|
||||||
|
#define STM32_HAS_HASH1 TRUE
|
||||||
|
#define STM32_HAS_AES1 TRUE
|
||||||
|
#else
|
||||||
|
#define STM32_HAS_HASH1 FALSE
|
||||||
|
#define STM32_HAS_AES1 FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* STM32L4yyxx+. */
|
/* STM32L4yyxx+. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
|
@ -23,6 +23,7 @@ endif
|
||||||
# Drivers compatible with the platform.
|
# Drivers compatible with the platform.
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/ADCv3/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CANv1/driver.mk
|
||||||
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/CRYPv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DACv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/DMAv1/driver.mk
|
||||||
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
|
include $(CHIBIOS)/os/hal/ports/STM32/LLD/EXTIv1/driver.mk
|
||||||
|
|
|
@ -62,6 +62,15 @@
|
||||||
nvicEnableVector(STM32_RTC_ALARM_NUMBER, STM32_IRQ_EXTI18_PRIORITY); \
|
nvicEnableVector(STM32_RTC_ALARM_NUMBER, STM32_IRQ_EXTI18_PRIORITY); \
|
||||||
} while (false)
|
} while (false)
|
||||||
|
|
||||||
|
#if defined(STM32L486xx) || defined(STM32L4A6xx) || \
|
||||||
|
defined(__DOXYGEN__)
|
||||||
|
#define STM32_HAS_HASH1 TRUE
|
||||||
|
#define STM32_HAS_AES1 TRUE
|
||||||
|
#else
|
||||||
|
#define STM32_HAS_HASH1 FALSE
|
||||||
|
#define STM32_HAS_AES1 FALSE
|
||||||
|
#endif
|
||||||
|
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
/* STM32L432xx. */
|
/* STM32L432xx. */
|
||||||
/*===========================================================================*/
|
/*===========================================================================*/
|
||||||
|
|
Loading…
Reference in New Issue