Power
The SIM(System Integration Module) is another piece of hardware we need for our microcontroller setup. Here, we use a SIM to enable the appropriate clock gate to enable our I/O port.
Function definitions#
- Structure Sim represents a block of memory using structures representing registers in SIM.
- Helper enum containing register definiton to control clock gating for different ports
Implementations#
- Impl new#
Return a struct containing register definition of the Sim.
- Impl enable_clock for Sim#
Enable clock gate by changing the corresponding memory location.