miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
spi.h
Go to the documentation of this file.
1/**************************************************************************/
9#ifndef MINIFOC_HARDWARE_SPI_H_
10#define MINIFOC_HARDWARE_SPI_H_
11
12unsigned short spi_readwrite_halfworld(unsigned short data);
13void spi_config(void);
14
15#endif //MINIFOC_HARDWARE_SPI_H_
void spi_config(void)
configure spi0 periph and its gpios
Definition: spi.c:35
unsigned short spi_readwrite_halfworld(unsigned short data)
spi0 transmit data for sc60228
Definition: spi.c:19