[Cryptech-Commits] [sw/stm32] 07/07: Added call to ice40mkm_configure() to the 'hsm' project startup code.

git at cryptech.is git at cryptech.is
Mon Sep 13 09:04:51 UTC 2021


This is an automated email from the git hooks/post-receive script.

meisterpaul1 at yandex.ru pushed a commit to branch ice40mkm
in repository sw/stm32.

commit 1d6609566a71dee86fc1ae33175052ebbfdba24a
Author: Pavel V. Shatov (Meister) <meisterpaul1 at yandex.ru>
AuthorDate: Mon Sep 13 12:04:09 2021 +0300

    Added call to ice40mkm_configure() to the 'hsm' project startup code.
---
 projects/hsm/hsm.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/projects/hsm/hsm.c b/projects/hsm/hsm.c
index 52157c9..e4e823a 100644
--- a/projects/hsm/hsm.c
+++ b/projects/hsm/hsm.c
@@ -49,6 +49,7 @@
 #include "stm-fmc.h"
 #include "stm-uart.h"
 #include "stm-sdram.h"
+#include "stm-ice40mkm.h"
 #include "task.h"
 
 #include "mgmt-cli.h"
@@ -466,6 +467,9 @@ int main(void)
     stm_init();
     led_on(LED_GREEN);
 
+    if (ice40mkm_configure() != 0)
+    	Error_Handler();
+
     if (hal_rpc_server_init() != LIBHAL_OK)
         Error_Handler();
 



More information about the Commits mailing list