mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
- moved all SPI code to the ARM11 - reimplemented NVRAM reading for the new SPI interface
17 lines
333 B
C
Executable File
17 lines
333 B
C
Executable File
#pragma once
|
|
|
|
#include <types.h>
|
|
|
|
#include "hw/spi.h"
|
|
|
|
#define NVRAM_SR_WIP BIT(0) // work in progress / busy
|
|
#define NVRAM_SR_WEL BIT(1) // write enable latch
|
|
|
|
u32 NVRAM_Status(void);
|
|
u32 NVRAM_ReadID(void);
|
|
|
|
void NVRAM_Read(u32 offset, u32 *buffer, u32 len);
|
|
|
|
void NVRAM_DeepStandby(void);
|
|
void NVRAM_Wakeup(void);
|