![]() |
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.
|
this is the header file of spi.c. More...
Go to the source code of this file.
Functions | |
unsigned short | spi_readwrite_halfworld (unsigned short data) |
spi0 transmit data for sc60228 More... | |
void | spi_config (void) |
configure spi0 periph and its gpios More... | |
void spi_config | ( | void | ) |
configure spi0 periph and its gpios
Definition at line 35 of file spi.c.
References SPI_PRESCALE.
Referenced by main().
unsigned short spi_readwrite_halfworld | ( | unsigned short | data | ) |
spi0 transmit data for sc60228
[in] | data | data to transmit |
data | received from slave |
Definition at line 19 of file spi.c.
Referenced by encoder_read_data().