PersonalVotingMachine/extended-setup/components/drv/disp_spi.h
2020-12-22 14:30:09 +02:00

48 lines
801 B
C

/**
* @file disp_spi.h
*
*/
#ifndef DISP_SPI_H
#define DISP_SPI_H
#ifdef __cplusplus
extern "C" {
#endif
/*********************
* INCLUDES
*********************/
#include <stdint.h>
/*********************
* DEFINES
*********************/
#define DISP_SPI_MOSI CONFIG_OVC_PIN_MOSI
#define DISP_SPI_CLK CONFIG_OVC_PIN_CLK
#define DISP_SPI_CS CONFIG_OVC_PIN_CS
/**********************
* TYPEDEFS
**********************/
/**********************
* GLOBAL PROTOTYPES
**********************/
void disp_spi_init(void);
void disp_spi_send_data(uint8_t * data, uint16_t length);
void disp_spi_send_colors(uint8_t * data, uint16_t length);
/**********************
* MACROS
**********************/
#ifdef __cplusplus
} /* extern "C" */
#endif
#endif /*DISP_SPI_H*/