feat: SPI DMA

Squashed commit of the following:

commit c3e1f696b4fbafb6dd30c6934e4c7c181562e055
Author: kuwoyuki <kuwoyuki@cock.li>
Date:   Sat Oct 12 20:43:12 2024 +0600

    chore: spi dma

commit d1e7df60be3e06ed85ce8639516e299085d3c72b
Author: kuwoyuki <kuwoyuki@cock.li>
Date:   Sat Oct 12 15:14:11 2024 +0600

    static dummies

commit 81682428b471f825e3350e37aa74c373b46d4fef
Author: kuwoyuki <kuwoyuki@cock.li>
Date:   Sat Oct 12 14:45:39 2024 +0600

    dma works?

commit 150c97a4b566712a502d8a2861a2dc0864324d61
Author: kuwoyuki <kuwoyuki@cock.li>
Date:   Sat Oct 12 02:07:39 2024 +0600

    dma?
This commit is contained in:
2024-10-12 20:43:38 +06:00
parent 259d63197e
commit ec9dcc76f7
11 changed files with 362 additions and 229 deletions

View File

@@ -4,21 +4,27 @@
#include <stdint.h>
// Sets the CS pin low
void W5500_Select(void);
void w5500_select(void);
// Sets the CS pin high
void W5500_Unselect(void);
void w5500_unselect(void);
// Reads a byte via SPI
uint8_t W5500_ReadByte(void);
uint8_t w5500_read_byte(void);
// Writes a byte via SPI
void W5500_WriteByte(uint8_t byte);
void w5500_write_byte(uint8_t byte);
// Reads multiple bytes via SPI
void W5500_ReadBuff(uint8_t* buff, uint16_t len);
void w5500_read_buffer(uint8_t* buff, uint16_t len);
// Writes multiple bytes via SPI
void W5500_WriteBuff(uint8_t* buff, uint16_t len);
void w5500_write_buffer(uint8_t* buff, uint16_t len);
// Initializes the W5500 chip
void configure_network(void);
// resolves a domain name
void resolve_domain_name(const char* domain_name);
#endif // W5500_H