mirror of
https://github.com/parasyte/alt64
synced 2024-11-02 08:15:07 -04:00
40 lines
823 B
C
40 lines
823 B
C
|
/*
|
|||
|
* File: mem.h
|
|||
|
* Author: krik
|
|||
|
*
|
|||
|
* Created on 2 <EFBFBD><EFBFBD><EFBFBD><EFBFBD> 2011 <EFBFBD>., 4:07
|
|||
|
*/
|
|||
|
|
|||
|
#ifndef _MEM_H
|
|||
|
#define _MEM_H
|
|||
|
#include "types.h"
|
|||
|
|
|||
|
#define SPI_SPEED_INIT 2
|
|||
|
#define SPI_SPEED_25 1
|
|||
|
#define SPI_SPEED_50 0
|
|||
|
|
|||
|
#define mem_spi evd_SPI
|
|||
|
#define memSpiSetSpeed evd_setSpiSpeed
|
|||
|
#define memSpiIsBusy evd_isSpiBusy
|
|||
|
#define memSpiSSOff evd_spiSSOff
|
|||
|
#define memSpiSSOn evd_spiSSOn
|
|||
|
|
|||
|
|
|||
|
void memSpiSSOn();
|
|||
|
void memSpiSSOff();
|
|||
|
void memSpiBusy();
|
|||
|
u8 memSpiIsBusy();
|
|||
|
void memSpiSetSpeed(u8 speed);
|
|||
|
void spiReadBlock(void *dat);
|
|||
|
void spiWriteBlock(void *dat);
|
|||
|
u8 memSpiRead(void *dst, u16 slen);
|
|||
|
u8 memSpiWrite(void *src);
|
|||
|
//u8 mem_spi(u8 dat);
|
|||
|
void memfill(void *dst, u8 val, u16 len);
|
|||
|
void memcopy(void *src, void *dst, u16 len);
|
|||
|
void memSpiSetDma(u8 mode);
|
|||
|
void memRomWrite32(u32 addr, u32 val);
|
|||
|
u32 memRomRead32(u32 addr);
|
|||
|
#endif /* _MEM_H */
|
|||
|
|