Skip to content

Commit f40b01d

Browse files
twcook86danielinux
authored andcommitted
initialize casper for rsa signing
1 parent cf3a7d9 commit f40b01d

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

hal/lpc55s69.c

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ static void hal_flash_fix_ecc(void)
9595

9696

9797
extern int wc_hashcrypt_init(void);
98+
extern int wc_casper_init(void);
9899

99100
void hal_init(void)
100101
{
@@ -103,14 +104,19 @@ void hal_init(void)
103104
BOARD_BootClockFROHF96M();
104105
// BOARD_BootClockPLL150M();
105106

107+
# ifdef DEBUG_UART
108+
uart_init();
109+
uart_write("lpc55s69 init\n", 14);
110+
# endif
111+
106112
# ifdef WOLFSSL_NXP_HASHCRYPT
107113
CLOCK_EnableClock(kCLOCK_HashCrypt);
108114
wc_hashcrypt_init();
109115
# endif
110116

111-
# ifdef DEBUG_UART
112-
uart_init();
113-
uart_write("lpc55s69 init\n", 14);
117+
# ifdef WOLFSSL_NXP_CASPER
118+
CLOCK_EnableClock(kCLOCK_Casper);
119+
wc_casper_init();
114120
# endif
115121

116122
#endif /* __WOLFBOOT */

0 commit comments

Comments
 (0)