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.
hardware
spi.h
Go to the documentation of this file.
1
/**************************************************************************/
9
#ifndef MINIFOC_HARDWARE_SPI_H_
10
#define MINIFOC_HARDWARE_SPI_H_
11
12
unsigned
short
spi_readwrite_halfworld
(
unsigned
short
data);
13
void
spi_config
(
void
);
14
15
#endif
//MINIFOC_HARDWARE_SPI_H_
spi_config
void spi_config(void)
configure spi0 periph and its gpios
Definition:
spi.c:35
spi_readwrite_halfworld
unsigned short spi_readwrite_halfworld(unsigned short data)
spi0 transmit data for sc60228
Definition:
spi.c:19
Generated by
1.9.4