Line 300: |
Line 300: |
| | 54 || IOSError SetPPCACRPerms(u8 enable) || Enable/Disable PPC AHBPROT setting (can only be called from ES) || 0 on success, -1 on error | | | 54 || IOSError SetPPCACRPerms(u8 enable) || Enable/Disable PPC AHBPROT setting (can only be called from ES) || 0 on success, -1 on error |
| |- | | |- |
− | | 55 || u32 GetCoreClk(void) || Returns either 162 (GC) or 243 (Wii), based on the bottom bit of [[Hardware/Hollywood_Registers#HW_CLOCKS|HW_CLOCKS]] (if the bit is set, it is in GC mode). | + | | 55 || u32 GetBusSpeed(void) || Returns the bus speed in megahertz: 162 in GC mode (if the bottom bit of [[Hardware/Hollywood_Registers#HW_CLOCKS|HW_CLOCKS]]), and 243 in Wii mode typically, though the Wii value can vary based on [[Hardware/Hollywood_Registers#HW_PLLSYS|HW_PLLSYS]] and [[Hardware/Hollywood_Registers#HW_PLLSYSEXT|HW_PLLSYSEXT]]. |
| |- | | |- |
| | 56 || IOSError ACRRegWrite(u32 offset, u32 value) || Set gpio reg to value (can only be called from STM) || 0 on success, -1 on error | | | 56 || IOSError ACRRegWrite(u32 offset, u32 value) || Set gpio reg to value (can only be called from STM) || 0 on success, -1 on error |
Line 306: |
Line 306: |
| | 57 || IOSError DDRRegWrite(u32 offset, u32 value) || Writes a 32-bit value to the specified Memory Controller register. Can only be called from the STM module. || Returns 0 on success, -1 on error. | | | 57 || IOSError DDRRegWrite(u32 offset, u32 value) || Writes a 32-bit value to the specified Memory Controller register. Can only be called from the STM module. || Returns 0 on success, -1 on error. |
| |- | | |- |
− | | 58 || void OutputLed(u8 value) || Set [[Hardware/Hollywood GPIOs|GPIO]] lines 16-23 (DEBUG0-7, the [[debug port]]) to the provided value. | + | | 58 || void OutputDebugPort(u8 value) || Set [[Hardware/Hollywood GPIOs|GPIO]] lines 16-23 (DEBUG0-7, the [[debug port]]) to the provided value. |
| |- | | |- |
| | 59 || IOSError SetIpcAccessRights(u8 *rights) || Related to PPC IPC. Can only be called from the ES module. Called when bootstrapping PPC. || 0 on success, negative for error. | | | 59 || IOSError SetIpcAccessRights(u8 *rights) || Related to PPC IPC. Can only be called from the ES module. Called when bootstrapping PPC. || 0 on success, negative for error. |