diff options
| author | dmlunar <root@lunar.sh> | 2025-01-22 16:47:21 +0200 |
|---|---|---|
| committer | dmlunar <root@lunar.sh> | 2025-12-02 16:02:10 +0200 |
| commit | 288b138cb59325c42d1a64d9a87e3c879494fd72 (patch) | |
| tree | 03dce50bb5118a3deb46389f191cfb6da5e9bcb9 /firmware/inc/peripheral/spi.h | |
| download | varpa-288b138cb59325c42d1a64d9a87e3c879494fd72.tar.gz varpa-288b138cb59325c42d1a64d9a87e3c879494fd72.zip | |
Diffstat (limited to 'firmware/inc/peripheral/spi.h')
| -rw-r--r-- | firmware/inc/peripheral/spi.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/firmware/inc/peripheral/spi.h b/firmware/inc/peripheral/spi.h new file mode 100644 index 0000000..003fc04 --- /dev/null +++ b/firmware/inc/peripheral/spi.h @@ -0,0 +1,34 @@ +/** + * + * Author: Dylan Muller + * Copyright (c) 2025 + * All rights reserved. + * + * - Commercial/IP use prohibited. + * - Attribution required. + * See License.txt + * + */ + +#ifndef SPI_H_ +#define SPI_H_ + +#include <stdbool.h> +#include <stddef.h> +#include <stdint.h> + +void spi_init(void); + +bool spi_busy(void); + +void spi_flush(void); + +void spi_start( + uint8_t *out, + uint8_t *in, + size_t len, + uint8_t *port, + uint8_t pin +); + +#endif |
