Skip to content

Commit ab3ea10

Browse files
committed
Use CK_JITTER to enable/disable ROSC randomisation
1 parent 8b7b2bf commit ab3ea10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

enc_bootloader/enc_bootloader.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ extern void decrypt(uint8_t* key4way, uint8_t* iv, uint8_t(*buf)[16], int nblk);
2828
#define ROSC_HZ 300*MHZ
2929
#define OTHER_CLK_DIV 30
3030

31+
#if CK_JITTER
3132
void runtime_init_clocks(void) {
3233
// Disable resus that may be enabled from previous software
3334
clocks_hw->resus.ctrl = 0;
@@ -138,6 +139,7 @@ void runtime_init_clocks(void) {
138139
ROSC_HZ,
139140
OTHER_CLK_DIV);
140141
}
142+
#endif
141143

142144

143145
bi_decl(bi_ptr_int32(0, 0, otp_key_page, 30));

0 commit comments

Comments
 (0)