mirror of
https://github.com/openhwgroup/cvw.git
synced 2025-06-28 17:43:09 -04:00
Added inital spi based sd card code. Working on CRC7 code that works.
This commit is contained in:
parent
6018ab82ab
commit
cc32e90f66
4 changed files with 41 additions and 1 deletions
9
fpga/zsbl/sd.h
Normal file
9
fpga/zsbl/sd.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
uint8_t crc7(uint8_t prev, uint8_t in);
|
||||
uint16_t crc16(uint16_t crc, uint8_t data);
|
||||
uint8_t sd_cmd(uint8_t cmd, uint32_t arg, uint8_t crc);
|
||||
void init_sd();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue