2015-11-21 09:28:12 +00:00
|
|
|
/*
|
|
|
|
* This file is subject to the terms of the GFX License. If a copy of
|
|
|
|
* the license was not distributed with this file, you can obtain one at:
|
|
|
|
*
|
2018-10-01 15:32:39 +00:00
|
|
|
* http://ugfx.io/license.html
|
2015-11-21 09:28:12 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _GDISP_LLD_BOARD_H
|
|
|
|
#define _GDISP_LLD_BOARD_H
|
|
|
|
|
|
|
|
#define init_board(g) SSD1331_init_board()
|
|
|
|
#define post_init_board(g)
|
|
|
|
#define setpin_reset(g, state) SSD1331_setpin_reset(state)
|
|
|
|
#define acquire_bus(g) SSD1331_aquirebus()
|
|
|
|
#define release_bus(g) SSD1331_releasebus()
|
|
|
|
#define write_cmd(g, cmd) SSD1331_write_cmd(cmd)
|
|
|
|
#define write_data(g, data) SSD1331_write_data(data)
|
|
|
|
|
2018-06-23 03:02:07 +00:00
|
|
|
/* This test is needed as this file is also included in the .cpp file providing the below functions */
|
2015-11-21 09:28:12 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void SSD1331_init_board(void);
|
|
|
|
void SSD1331_setpin_reset(int state);
|
|
|
|
void SSD1331_aquirebus(void);
|
|
|
|
void SSD1331_releasebus(void);
|
|
|
|
void SSD1331_write_cmd(uint8_t cmd);
|
|
|
|
void SSD1331_write_data(uint8_t data);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* _GDISP_LLD_BOARD_H */
|