|
@@ -35,78 +35,83 @@
|
35
|
35
|
|
36
|
36
|
#ifdef __SAM3X8E__
|
37
|
37
|
uint8_t u8g_com_HAL_DUE_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
38
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_DUE_sw_spi_fn
|
|
38
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_DUE_sw_spi_fn
|
39
|
39
|
uint8_t u8g_com_HAL_DUE_shared_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
40
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_HAL_DUE_shared_hw_spi_fn
|
|
40
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_HAL_DUE_shared_hw_spi_fn
|
41
|
41
|
uint8_t u8g_com_HAL_DUE_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
42
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_HAL_DUE_ST7920_sw_spi_fn
|
43
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
|
42
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_HAL_DUE_ST7920_sw_spi_fn
|
|
43
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
44
|
44
|
#elif defined(__STM32F1__)
|
45
|
45
|
uint8_t u8g_com_HAL_STM32F1_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
46
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_STM32F1_sw_spi_fn
|
|
46
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_STM32F1_sw_spi_fn
|
47
|
47
|
uint8_t u8g_com_stm32duino_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
48
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_stm32duino_hw_spi_fn
|
49
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_std_sw_spi_fn
|
50
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_stm32duino_hw_spi_fn
|
|
48
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_stm32duino_hw_spi_fn
|
|
49
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_std_sw_spi_fn
|
|
50
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_stm32duino_hw_spi_fn
|
51
|
51
|
#elif defined(ARDUINO_ARCH_STM32)
|
52
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_arduino_std_sw_spi_fn
|
|
52
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_arduino_std_sw_spi_fn
|
53
|
53
|
uint8_t u8g_com_stm32duino_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
54
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_stm32duino_hw_spi_fn
|
55
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
56
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
|
54
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_stm32duino_hw_spi_fn
|
|
55
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
|
56
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
57
|
57
|
#elif defined(__AVR__)
|
58
|
58
|
uint8_t u8g_com_HAL_AVR_sw_sp_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
59
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_AVR_sw_sp_fn
|
60
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_arduino_hw_spi_fn
|
61
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
62
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
|
59
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_AVR_sw_sp_fn
|
|
60
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_arduino_hw_spi_fn
|
|
61
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
|
62
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
|
63
|
+ #elif defined(__SAMD51__)
|
|
64
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_arduino_std_sw_spi_fn
|
|
65
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_samd51_hw_spi_fn
|
|
66
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
|
67
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_samd51_st7920_hw_spi_fn
|
63
|
68
|
#else
|
64
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_arduino_std_sw_spi_fn
|
65
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_arduino_hw_spi_fn
|
66
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
67
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
|
69
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_arduino_std_sw_spi_fn
|
|
70
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_arduino_hw_spi_fn
|
|
71
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_arduino_st7920_spi_fn
|
|
72
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_arduino_st7920_hw_spi_fn
|
68
|
73
|
#endif
|
69
|
74
|
|
70
|
75
|
#ifdef TARGET_LPC1768
|
71
|
76
|
uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
72
|
77
|
#endif
|
73
|
78
|
|
74
|
|
- #define U8G_COM_SSD_I2C_HAL u8g_com_arduino_ssd_i2c_fn
|
|
79
|
+ #define U8G_COM_SSD_I2C_HAL u8g_com_arduino_ssd_i2c_fn
|
75
|
80
|
|
76
|
81
|
#if PIN_EXISTS(FSMC_CS)
|
77
|
82
|
uint8_t u8g_com_stm32duino_fsmc_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
78
|
|
- #define U8G_COM_HAL_FSMC_FN u8g_com_stm32duino_fsmc_fn
|
|
83
|
+ #define U8G_COM_HAL_FSMC_FN u8g_com_stm32duino_fsmc_fn
|
79
|
84
|
#else
|
80
|
|
- #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
|
|
85
|
+ #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
|
81
|
86
|
#endif
|
82
|
87
|
|
83
|
88
|
#elif defined(TARGET_LPC1768)
|
84
|
89
|
|
85
|
90
|
uint8_t u8g_com_HAL_LPC1768_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
86
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_LPC1768_sw_spi_fn
|
|
91
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_HAL_LPC1768_sw_spi_fn
|
87
|
92
|
|
88
|
93
|
uint8_t u8g_com_HAL_LPC1768_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
89
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_HAL_LPC1768_hw_spi_fn
|
|
94
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_HAL_LPC1768_hw_spi_fn
|
90
|
95
|
|
91
|
96
|
uint8_t u8g_com_HAL_LPC1768_ST7920_sw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
92
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_HAL_LPC1768_ST7920_sw_spi_fn
|
|
97
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_HAL_LPC1768_ST7920_sw_spi_fn
|
93
|
98
|
|
94
|
99
|
uint8_t u8g_com_HAL_LPC1768_ST7920_hw_spi_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
95
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_HAL_LPC1768_ST7920_hw_spi_fn
|
|
100
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_HAL_LPC1768_ST7920_hw_spi_fn
|
96
|
101
|
|
97
|
102
|
uint8_t u8g_com_HAL_LPC1768_ssd_hw_i2c_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
98
|
|
- #define U8G_COM_SSD_I2C_HAL u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
|
|
103
|
+ #define U8G_COM_SSD_I2C_HAL u8g_com_HAL_LPC1768_ssd_hw_i2c_fn
|
99
|
104
|
|
100
|
|
- #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
|
|
105
|
+ #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
|
101
|
106
|
|
102
|
107
|
#else // need to give them some definition or else get compiler errors
|
103
|
108
|
|
104
|
109
|
uint8_t u8g_com_null_fn(u8g_t *u8g, uint8_t msg, uint8_t arg_val, void *arg_ptr);
|
105
|
|
- #define U8G_COM_HAL_SW_SPI_FN u8g_com_null_fn
|
106
|
|
- #define U8G_COM_HAL_HW_SPI_FN u8g_com_null_fn
|
107
|
|
- #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_null_fn
|
108
|
|
- #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_null_fn
|
109
|
|
- #define U8G_COM_SSD_I2C_HAL u8g_com_null_fn
|
110
|
|
- #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
|
|
110
|
+ #define U8G_COM_HAL_SW_SPI_FN u8g_com_null_fn
|
|
111
|
+ #define U8G_COM_HAL_HW_SPI_FN u8g_com_null_fn
|
|
112
|
+ #define U8G_COM_ST7920_HAL_SW_SPI u8g_com_null_fn
|
|
113
|
+ #define U8G_COM_ST7920_HAL_HW_SPI u8g_com_null_fn
|
|
114
|
+ #define U8G_COM_SSD_I2C_HAL u8g_com_null_fn
|
|
115
|
+ #define U8G_COM_HAL_FSMC_FN u8g_com_null_fn
|
111
|
116
|
|
112
|
117
|
#endif
|