FreeCalypso > hg > freecalypso-sw
diff gsm-fw/bsp/abb+spi/spi_api.h @ 149:971e84124a6f
gsm-fw/bsp/abb+spi: preening of header files, first pass
author | Michael Spacefalcon <msokolov@ivan.Harhan.ORG> |
---|---|
date | Sat, 16 Nov 2013 19:41:30 +0000 |
parents | 63750f70796d |
children | cc0944d35698 |
line wrap: on
line diff
--- a/gsm-fw/bsp/abb+spi/spi_api.h Sat Nov 16 19:03:37 2013 +0000 +++ b/gsm-fw/bsp/abb+spi/spi_api.h Sat Nov 16 19:41:30 2013 +0000 @@ -18,9 +18,9 @@ #ifndef __SPI_API_H_ #define __SPI_API_H_ +#include "../../riviera/rv/rv_general.h" -#include "rv/rv_general.h" -#include "abb/abb.h" +#include "abb.h" #ifdef __cplusplus extern "C" @@ -45,32 +45,32 @@ /* structures of messages send to SPI */ /*****************************************/ -typedef struct -{ T_RV_HDR os_hdr; - UINT16 page; - UINT16 address; - UINT16 data; +typedef struct { + T_RV_HDR os_hdr; + UINT16 page; + UINT16 address; + UINT16 data; } T_SPI_WRITE; -typedef struct -{ T_RV_HDR os_hdr; - UINT16 page; - UINT16 address; +typedef struct { + T_RV_HDR os_hdr; + UINT16 page; + UINT16 address; } T_SPI_READ; -typedef struct -{ T_RV_HDR os_hdr; - UINT16 channels; - UINT16 itval; +typedef struct { + T_RV_HDR os_hdr; + UINT16 channels; + UINT16 itval; } T_SPI_ABB_CONF_ADC; -typedef struct -{ T_RV_HDR os_hdr; - UINT16 *Buff; - CALLBACK_FUNC_NO_PARAM callback_func; +typedef struct { + T_RV_HDR os_hdr; + UINT16 *Buff; + CALLBACK_FUNC_NO_PARAM callback_func; } T_SPI_ABB_READ_ADC; @@ -175,4 +175,3 @@ T_RV_RET spi_abb_read_ADC(UINT16 *Buff, CALLBACK_FUNC_NO_PARAM CallBack); #endif /* __SPI_API_H_ */ -