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
#
Implementationsnew
#
- Impl Return a struct containing register definition of the Sim.
enable_clock
for Sim
#
- Impl Enable clock gate by changing the corresponding memory location.