first commit

This commit is contained in:
2024-10-10 00:45:09 +06:00
commit e56944bbcd
89 changed files with 31498 additions and 0 deletions

24
include/w5500.h Normal file
View File

@@ -0,0 +1,24 @@
#ifndef W5500_H
#define W5500_H
#include <stdint.h>
// Sets the CS pin low
void W5500_Select(void);
// Sets the CS pin high
void W5500_Unselect(void);
// Reads a byte via SPI
uint8_t W5500_ReadByte(void);
// Writes a byte via SPI
void W5500_WriteByte(uint8_t byte);
// Reads multiple bytes via SPI
void W5500_ReadBuff(uint8_t* buff, uint16_t len);
// Writes multiple bytes via SPI
void W5500_WriteBuff(uint8_t* buff, uint16_t len);
#endif // W5500_H