|
|
|
@ -24,35 +24,31 @@
|
|
|
|
|
* LPC1768 LCD-specific defines
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifdef TARGET_LPC1768
|
|
|
|
|
// pointers to low level routines - must always supply these
|
|
|
|
|
//#define U8G_HAL_LINKS
|
|
|
|
|
#define HAL_LCD_pin_routines "HAL_LPC1768/HAL_LCD_pin_routines.h"
|
|
|
|
|
#define HAL_LCD_I2C_routines "HAL_LPC1768/HAL_LCD_I2C_routines.h"
|
|
|
|
|
#define HAL_LCD_delay "HAL_LPC1768/HAL_LCD_delay.h"
|
|
|
|
|
|
|
|
|
|
// pointers to low level routines - must always supply these
|
|
|
|
|
//#define U8G_HAL_LINKS
|
|
|
|
|
#define HAL_LCD_pin_routines "HAL_LPC1768/HAL_LCD_pin_routines.h"
|
|
|
|
|
#define HAL_LCD_I2C_routines "HAL_LPC1768/HAL_LCD_I2C_routines.h"
|
|
|
|
|
#define HAL_LCD_delay "HAL_LPC1768/HAL_LCD_delay.h"
|
|
|
|
|
// The following are optional depending on the platform.
|
|
|
|
|
|
|
|
|
|
// The following are optional depending on the platform.
|
|
|
|
|
|
|
|
|
|
// definitions of HAL specific com and device drivers.
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_ST7920_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
// definitions of HAL specific com and device drivers.
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_ST7920_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// connect U8g com generic com names to the desired driver
|
|
|
|
|
#define U8G_COM_HW_SPI u8g_com_HAL_LPC1768_hw_spi_fn // use LPC1768 specific hardware SPI routine
|
|
|
|
|
#define U8G_COM_SW_SPI u8g_com_HAL_LPC1768_sw_spi_fn // use LPC1768 specific software SPI routine
|
|
|
|
|
#define U8G_COM_ST7920_HW_SPI u8g_com_HAL_LPC1768_ST7920_hw_spi_fn
|
|
|
|
|
#define U8G_COM_ST7920_SW_SPI u8g_com_HAL_LPC1768_ST7920_sw_spi_fn
|
|
|
|
|
#define U8G_COM_SSD_I2C u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
|
|
|
|
|
// connect U8g com generic com names to the desired driver
|
|
|
|
|
#define U8G_COM_HW_SPI u8g_com_HAL_LPC1768_hw_spi_fn // use LPC1768 specific hardware SPI routine
|
|
|
|
|
#define U8G_COM_SW_SPI u8g_com_HAL_LPC1768_sw_spi_fn // use LPC1768 specific software SPI routine
|
|
|
|
|
#define U8G_COM_ST7920_HW_SPI u8g_com_HAL_LPC1768_ST7920_hw_spi_fn
|
|
|
|
|
#define U8G_COM_ST7920_SW_SPI u8g_com_HAL_LPC1768_ST7920_sw_spi_fn
|
|
|
|
|
#define U8G_COM_SSD_I2C u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
|
|
|
|
|
|
|
|
|
|
// let these default for now
|
|
|
|
|
#define U8G_COM_PARALLEL u8g_com_null_fn
|
|
|
|
|
#define U8G_COM_T6963 u8g_com_null_fn
|
|
|
|
|
#define U8G_COM_FAST_PARALLEL u8g_com_null_fn
|
|
|
|
|
#define U8G_COM_UC_I2C u8g_com_null_fn
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
// let these default for now
|
|
|
|
|
#define U8G_COM_PARALLEL u8g_com_null_fn
|
|
|
|
|
#define U8G_COM_T6963 u8g_com_null_fn
|
|
|
|
|
#define U8G_COM_FAST_PARALLEL u8g_com_null_fn
|
|
|
|
|
#define U8G_COM_UC_I2C u8g_com_null_fn
|
|
|
|
|