added drivers
This commit is contained in:
16
app/drivers/mcu_cs/mcu_cs.h
Normal file
16
app/drivers/mcu_cs/mcu_cs.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "main.h"
|
||||
#include "spi_cs_if.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
cs_handle_t super;
|
||||
GPIO_TypeDef *cs_port;
|
||||
uint16_t cs_pin;
|
||||
uint8_t cs_idle;
|
||||
} MCU_cs_t;
|
||||
|
||||
void mcu_cs_init(MCU_cs_t *hcs, GPIO_TypeDef *cs_port, uint16_t cs_pin, uint8_t cs_idle);
|
||||
void mcu_cs_on(cs_handle_t *me);
|
||||
void mcu_cs_off(cs_handle_t *me);
|
||||
Reference in New Issue
Block a user