|
|
@ -63,7 +63,10 @@ |
|
|
|
#define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn |
|
|
|
#endif |
|
|
|
|
|
|
|
#ifdef TARGET_LPC1768 |
|
|
|
uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr); |
|
|
|
#endif |
|
|
|
|
|
|
|
#define U8G_COM_SSD_I2C_HAL u8g_com_arduino_ssd_i2c_fn |
|
|
|
|
|
|
|
#if PIN_EXISTS(FSMC_CS) |
|
|
@ -73,7 +76,8 @@ |
|
|
|
#define U8G_COM_HAL_FSMC_FN u8g_com_null_fn |
|
|
|
#endif |
|
|
|
|
|
|
|
#elif TARGET_LPC1768 |
|
|
|
#elif defined(TARGET_LPC1768) |
|
|
|
|
|
|
|
uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr); |
|
|
|
#define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_LPC1768_sw_spi_fn |
|
|
|
|
|
|
@ -92,6 +96,7 @@ |
|
|
|
#define U8G_COM_HAL_FSMC_FN u8g_com_null_fn |
|
|
|
|
|
|
|
#else // need to give them some definition or else get compiler errors
|
|
|
|
|
|
|
|
uint8_t u8g_com_null_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr); |
|
|
|
#define U8G_COM_HAL_SW_SPI_FN u8g_com_null_fn |
|
|
|
#define U8G_COM_HAL_HW_SPI_FN u8g_com_null_fn |
|
|
@ -99,4 +104,5 @@ |
|
|
|
#define U8G_COM_ST7920_HAL_HW_SPI u8g_com_null_fn |
|
|
|
#define U8G_COM_SSD_I2C_HAL u8g_com_null_fn |
|
|
|
#define U8G_COM_HAL_FSMC_FN u8g_com_null_fn |
|
|
|
|
|
|
|
#endif |
|
|
|