mirror of
https://github.com/Valeh2012/PersonalVotingMachine
synced 2024-09-29 01:11:05 +03:00
48 lines
801 B
C
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*/
|