mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-23 03:03:10 +00:00
9ed8bebba1
* spi device config * fix api_interrupt_call warning * added configs for spi2 bus devices * simplified spi bus api * use new spi device api
18 lines
No EOL
283 B
C
18 lines
No EOL
283 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct {
|
|
SPI_HandleTypeDef* spi;
|
|
const SPI_InitTypeDef config;
|
|
} SPIDevice;
|
|
|
|
extern const SPIDevice sd_fast_spi;
|
|
extern const SPIDevice sd_slow_spi;
|
|
extern const SPIDevice display_spi;
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif |