diff options
author | edolomb <none@example.com> | 2018-01-15 20:20:32 +0000 |
---|---|---|
committer | edolomb <none@example.com> | 2018-01-15 20:20:32 +0000 |
commit | 8ad821c6880c772612ddd9b1139b537f1714d510 (patch) | |
tree | e62c72d5b23dd8620dbf96d4c41f1a404f79b8aa /os/hal/ports/SAMA/LLD/MACv1 | |
parent | 96fcbfd22103beae2f7cc8ff2cd1fca85135a2c5 (diff) | |
download | ChibiOS-8ad821c6880c772612ddd9b1139b537f1714d510.tar.gz ChibiOS-8ad821c6880c772612ddd9b1139b537f1714d510.tar.bz2 ChibiOS-8ad821c6880c772612ddd9b1139b537f1714d510.zip |
Added security configuration
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11283 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/LLD/MACv1')
-rw-r--r-- | os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c b/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c index 3ee457b8c..00a8c421d 100644 --- a/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c +++ b/os/hal/ports/SAMA/LLD/MACv1/hal_mac_lld.c @@ -244,8 +244,13 @@ OSAL_IRQ_HANDLER(SAMA_ETH_HANDLER) { * @notapi
*/
void mac_lld_init(void) {
+
unsigned i;
+#if SAMA_HAL_IS_SECURE
+ mtxConfigPeriphSecurity(MATRIX1, ID_GMAC0, SECURE_PER);
+#endif /* SAMA_HAL_IS_SECURE */
+
configurePinsETH();
macObjectInit(ÐD0);
ETHD0.link_up = false;
|