Commit 477ff5ba authored by sigvartmh's avatar sigvartmh Committed by Fabio Utzig
Browse files

Bugfix: nRF Cryptocell not being disabled

Copy paste bug in cc310 glue layer for nRF where disable does not set
the enable register to 0. Thanks to @solsbarry for pointing this out.

Fixes: #586

Signed-off-by: default avatarsigvartmh <sigvart.m@gmail.com>
parent 8554ed5b
Loading
Loading
Loading
Loading
+1 −1
Changes for ext/nrf/cc310_glue.h: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ static inline void nrf_cc310_enable(void)

static inline void nrf_cc310_disable(void)
{
    NRF_CRYPTOCELL->ENABLE=1;
    NRF_CRYPTOCELL->ENABLE=0;
}

/* Enable and disable cc310 to reduce power consumption */