mirror of
https://github.com/marqs85/ossc
synced 2026-11-04 06:07:22 +03:00
SD SPI implementation finished
This commit is contained in:
1 parent
71d60144e8
commit
f55e9a877e
46 files changed
+2349
-3392
No files matched your search
@@ -8,6 +8,7 @@
|
||||
#ifndef _SPI_IO_H_
|
||||
#define _SPI_IO_H_
|
||||
|
||||
#include "sysconfig.h"
|
||||
#include "integer.h" /* Type redefinition for portability */
|
||||
|
||||
|
||||
@@ -20,6 +21,20 @@
|
||||
*/
|
||||
void SPI_Init (void);
|
||||
|
||||
/**
|
||||
\brief Read sequence of bytes
|
||||
\param *rd Pointer to array where read bytes are written.
|
||||
\param len Length of the array.
|
||||
*/
|
||||
void SPI_R (BYTE *rd, int len);
|
||||
|
||||
/**
|
||||
\brief Write sequence of bytes
|
||||
\param *wd Pointer to array which holds the bytes.
|
||||
\param len Length of the array.
|
||||
*/
|
||||
void SPI_W (BYTE *wd, int len);
|
||||
|
||||
/**
|
||||
\brief Read/Write a single byte.
|
||||
\param d Byte to send.
|
||||
|
||||
Reference in new issue
Block a user