[Cryptech-Commits] [sw/stm32] branch ksng updated: Initialize PINs before trying to use them in bootloader.
git at cryptech.is
git at cryptech.is
Thu Dec 22 02:33:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
sra at hactrn.net pushed a commit to branch ksng
in repository sw/stm32.
The following commit(s) were added to refs/heads/ksng by this push:
new 4d0b433 Initialize PINs before trying to use them in bootloader.
4d0b433 is described below
commit 4d0b433281e1189d3d26d6aaf0cdc06705694882
Author: Rob Austein <sra at hactrn.net>
AuthorDate: Wed Dec 21 21:29:28 2016 -0500
Initialize PINs before trying to use them in bootloader.
---
projects/bootloader/dfu.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/projects/bootloader/dfu.c b/projects/bootloader/dfu.c
index eeaa035..f4a9cf9 100644
--- a/projects/bootloader/dfu.c
+++ b/projects/bootloader/dfu.c
@@ -38,10 +38,11 @@
#include "stm-led.h"
#include "stm-uart.h"
#include "stm-flash.h"
-
#undef HAL_OK
+
#define HAL_OK LIBHAL_OK
#include "hal.h"
+#include "hal_internal.h"
#undef HAL_OK
#include <string.h>
@@ -99,6 +100,8 @@ static int do_login(void)
uart_flush();
+ hal_ks_init_read_only_pins_only();
+
if (hal_rpc_login(client, user, pin, n) != LIBHAL_OK) {
uart_send_string2(STM_UART_MGMT, "\r\nAccess denied\r\n");
return -1;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Commits
mailing list