Closed Finomnis closed 1 year ago
Fixes: #138
If the Trng gets initialized before its clock gate is enabled, it seems to malfunction.
Trng
The following workaround is the only way to fix it when using teensy4-bsp:
teensy4-bsp
bsp::hal::ccm::clock_gate::trng().set(&mut ccm, bsp::hal::ccm::clock_gate::ON); trng = bsp::hal::trng::Trng::new( trng.release_disabled(), Default::default(), Default::default(), );
Meaning, to enable the clock gate and then re-initialize the Trng object.
This change fixes that problem by enabling the Trng clock gate in the bsp.
Fixes: #138
If the
Trng
gets initialized before its clock gate is enabled, it seems to malfunction.The following workaround is the only way to fix it when using
teensy4-bsp
:Meaning, to enable the clock gate and then re-initialize the
Trng
object.This change fixes that problem by enabling the
Trng
clock gate in the bsp.