|
@@ -24,35 +24,31 @@
|
24
|
24
|
* LPC1768 LCD-specific defines
|
25
|
25
|
*/
|
26
|
26
|
|
27
|
|
-#ifdef TARGET_LPC1768
|
28
|
|
-
|
29
|
|
- // pointers to low level routines - must always supply these
|
30
|
|
- //#define U8G_HAL_LINKS
|
31
|
|
- #define HAL_LCD_pin_routines "HAL_LPC1768/HAL_LCD_pin_routines.h"
|
32
|
|
- #define HAL_LCD_I2C_routines "HAL_LPC1768/HAL_LCD_I2C_routines.h"
|
33
|
|
- #define HAL_LCD_delay "HAL_LPC1768/HAL_LCD_delay.h"
|
34
|
|
-
|
35
|
|
- // The following are optional depending on the platform.
|
36
|
|
-
|
37
|
|
- // definitions of HAL specific com and device drivers.
|
38
|
|
- uint8_t u8g_com_HAL_LPC1768_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
39
|
|
- uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
40
|
|
- uint8_t u8g_com_HAL_LPC1768_ST7920_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
41
|
|
- uint8_t u8g_com_HAL_LPC1768_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
42
|
|
- uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
43
|
|
-
|
44
|
|
-
|
45
|
|
- // connect U8g com generic com names to the desired driver
|
46
|
|
- #define U8G_COM_HW_SPI u8g_com_HAL_LPC1768_hw_spi_fn // use LPC1768 specific hardware SPI routine
|
47
|
|
- #define U8G_COM_SW_SPI u8g_com_HAL_LPC1768_sw_spi_fn // use LPC1768 specific software SPI routine
|
48
|
|
- #define U8G_COM_ST7920_HW_SPI u8g_com_HAL_LPC1768_ST7920_hw_spi_fn
|
49
|
|
- #define U8G_COM_ST7920_SW_SPI u8g_com_HAL_LPC1768_ST7920_sw_spi_fn
|
50
|
|
- #define U8G_COM_SSD_I2C u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
|
51
|
|
-
|
52
|
|
- // let these default for now
|
53
|
|
- #define U8G_COM_PARALLEL u8g_com_null_fn
|
54
|
|
- #define U8G_COM_T6963 u8g_com_null_fn
|
55
|
|
- #define U8G_COM_FAST_PARALLEL u8g_com_null_fn
|
56
|
|
- #define U8G_COM_UC_I2C u8g_com_null_fn
|
57
|
|
-
|
58
|
|
-#endif
|
|
27
|
+// pointers to low level routines - must always supply these
|
|
28
|
+//#define U8G_HAL_LINKS
|
|
29
|
+#define HAL_LCD_pin_routines "HAL_LPC1768/HAL_LCD_pin_routines.h"
|
|
30
|
+#define HAL_LCD_I2C_routines "HAL_LPC1768/HAL_LCD_I2C_routines.h"
|
|
31
|
+#define HAL_LCD_delay "HAL_LPC1768/HAL_LCD_delay.h"
|
|
32
|
+
|
|
33
|
+// The following are optional depending on the platform.
|
|
34
|
+
|
|
35
|
+// definitions of HAL specific com and device drivers.
|
|
36
|
+uint8_t u8g_com_HAL_LPC1768_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
37
|
+uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
38
|
+uint8_t u8g_com_HAL_LPC1768_ST7920_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
39
|
+uint8_t u8g_com_HAL_LPC1768_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
40
|
+uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+// connect U8g com generic com names to the desired driver
|
|
44
|
+#define U8G_COM_HW_SPI u8g_com_HAL_LPC1768_hw_spi_fn // use LPC1768 specific hardware SPI routine
|
|
45
|
+#define U8G_COM_SW_SPI u8g_com_HAL_LPC1768_sw_spi_fn // use LPC1768 specific software SPI routine
|
|
46
|
+#define U8G_COM_ST7920_HW_SPI u8g_com_HAL_LPC1768_ST7920_hw_spi_fn
|
|
47
|
+#define U8G_COM_ST7920_SW_SPI u8g_com_HAL_LPC1768_ST7920_sw_spi_fn
|
|
48
|
+#define U8G_COM_SSD_I2C u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
|
|
49
|
+
|
|
50
|
+// let these default for now
|
|
51
|
+#define U8G_COM_PARALLEL u8g_com_null_fn
|
|
52
|
+#define U8G_COM_T6963 u8g_com_null_fn
|
|
53
|
+#define U8G_COM_FAST_PARALLEL u8g_com_null_fn
|
|
54
|
+#define U8G_COM_UC_I2C u8g_com_null_fn
|