STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
board_devbus.h
Go to the documentation of this file.
1
#ifndef STAR_BOARD_DEVBUS_H
2
#define STAR_BOARD_DEVBUS_H
3
4
/*
5
* Binds a portable driver's dev_bus_t to one chip on board_spi: each xfer is
6
* one locked chip-select frame with a BOARD_DEVBUS_FRAME_MS deadline, and
7
* delay_ms is osDelay (>= ms, see board_devbus.c).
8
*/
9
10
#include "
board_spi.h
"
11
#include "
dev_bus.h
"
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
17
#define BOARD_DEVBUS_FRAME_MS 5U
18
19
dev_bus_t
board_devbus
(
board_spi_device_t
device);
20
21
#ifdef __cplusplus
22
}
23
#endif
24
#endif
board_devbus
dev_bus_t board_devbus(board_spi_device_t device)
Definition
board_devbus.c:27
board_spi.h
board_spi_device_t
board_spi_device_t
Definition
board_spi.h:26
dev_bus.h
dev_bus_t
Definition
dev_bus.h:26
firmware
Flight_Computer
src
board
board_devbus.h
Generated by
1.15.0