Chodzi o to, że Eclipse ma problem z kilkoma liniami.
Konsola:
Kod:
18:00:46 **** Build of configuration Release for project AVR450_v14_charger_cpp ****
make all
'Building file: ../display/5110.cpp'
'Invoking: AVR C++ Compiler'
avr-g++ -Wall -Os -fpack-struct -fshort-enums -ffunction-sections -fdata-sections -funsigned-char -funsigned-bitfields -fno-exceptions -mmcu=atmega328 -DF_CPU=8000000UL -MMD -MP -MF"display/5110.d" -MT"display/5110.o" -c -o "display/5110.o" "../display/5110.cpp"
In file included from ../display/5110.cpp:8:0:
../display/../../AVR450_v14_charger_cpp/display/5110.h:22:2: error: 'uint8_t' does not name a type
uint8_t m_dq_SCE, m_dq_RST, m_dq_DC, m_dq_DATA, m_dq_CLK;
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:23:11: error: 'uint8_t' does not name a type
volatile uint8_t *m_port_SCE, *m_port_RST, *m_port_DC, *m_port_DATA, *m_port_CLK;
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:27:11: error: 'uint8_t' does not name a type
volatile uint8_t* Port2DDR(volatile uint8_t *port) {
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:35:12: error: 'uint8_t' does not name a type
volatile uint8_t *port_SCE, uint8_t dq_SCE,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:35:22: error: ISO C++ forbids declaration of 'port_SCE' with no type [-fpermissive]
volatile uint8_t *port_SCE, uint8_t dq_SCE,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:35:32: error: 'uint8_t' has not been declared
volatile uint8_t *port_SCE, uint8_t dq_SCE,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:36:12: error: 'uint8_t' does not name a type
volatile uint8_t *port_RST, uint8_t dq_RST,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:36:22: error: ISO C++ forbids declaration of 'port_RST' with no type [-fpermissive]
volatile uint8_t *port_RST, uint8_t dq_RST,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:36:32: error: 'uint8_t' has not been declared
volatile uint8_t *port_RST, uint8_t dq_RST,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:37:12: error: 'uint8_t' does not name a type
volatile uint8_t *port_DC, uint8_t dq_DC,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:37:22: error: ISO C++ forbids declaration of 'port_DC' with no type [-fpermissive]
volatile uint8_t *port_DC, uint8_t dq_DC,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:37:31: error: 'uint8_t' has not been declared
volatile uint8_t *port_DC, uint8_t dq_DC,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:38:12: error: 'uint8_t' does not name a type
volatile uint8_t *port_DATA, uint8_t dq_DATA,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:38:22: error: ISO C++ forbids declaration of 'port_DATA' with no type [-fpermissive]
volatile uint8_t *port_DATA, uint8_t dq_DATA,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:38:33: error: 'uint8_t' has not been declared
volatile uint8_t *port_DATA, uint8_t dq_DATA,
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:39:12: error: 'uint8_t' does not name a type
volatile uint8_t *port_CLK, uint8_t dq_CLK
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:39:22: error: ISO C++ forbids declaration of 'port_CLK' with no type [-fpermissive]
volatile uint8_t *port_CLK, uint8_t dq_CLK
^
../display/../../AVR450_v14_charger_cpp/display/5110.h:39:32: error: 'uint8_t' has not been declared
volatile uint8_t *port_CLK, uint8_t dq_CLK
^
../display/5110.cpp:129:6: error: prototype for 'void LCD_5110::lcd_init(volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t, volatile uint8_t*, uint8_t)' does not match any in class 'LCD_5110'
void LCD_5110::lcd_init(
^
In file included from ../display/5110.cpp:8:0:
../display/../../AVR450_v14_charger_cpp/display/5110.h:34:7: error: candidate is: void LCD_5110::lcd_init(volatile int*, int, volatile int*, int, volatile int*, int, volatile int*, int, volatile int*, int)
void lcd_init(
^
../display/5110.cpp: In member function 'void LCD_5110::lcd_clear_area(unsigned char, unsigned char, unsigned char)':
../display/5110.cpp:211:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(unsigned int i = start; i < end; i++) lcd_send(0, LCD_DATA);
^
../display/5110.cpp: In member function 'void LCD_5110::lcd_send(unsigned char, LCD_5110::LcdCmdData)':
../display/5110.cpp:281:15: error: 'm_port_DATA' was not declared in this scope
Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);
^
../display/5110.cpp:281:26: error: 'Port2DDR' was not declared in this scope
Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);
^
../display/5110.cpp:281:29: error: 'm_dq_DATA' was not declared in this scope
Set(Port2DDR(m_port_DATA), m_dq_DATA, 1);
^
../display/5110.cpp:282:15: error: 'm_port_DC' was not declared in this scope
Set(Port2DDR(m_port_DC), m_dq_DC, 1);
^
../display/5110.cpp:282:27: error: 'm_dq_DC' was not declared in this scope
Set(Port2DDR(m_port_DC), m_dq_DC, 1);
^
../display/5110.cpp:285:9: error: 'm_port_SCE' was not declared in this scope
Set(m_port_SCE, m_dq_SCE, 0);//LCD_PORT &= ~LCD_SCE_PIN;
^
../display/5110.cpp:285:21: error: 'm_dq_SCE' was not declared in this scope
Set(m_port_SCE, m_dq_SCE, 0);//LCD_PORT &= ~LCD_SCE_PIN;
^
../display/5110.cpp:306:7: error: 'm_port_CLK' was not declared in this scope
Set(m_port_CLK, m_dq_CLK, 1);//LCD_PORT |= LCD_CLK_PIN;
^
../display/5110.cpp:306:19: error: 'm_dq_CLK' was not declared in this scope
Set(m_port_CLK, m_dq_CLK, 1);//LCD_PORT |= LCD_CLK_PIN;
^
make: *** [display/5110.o] Błąd 1
18:00:48 Build Finished (took 2s.677ms)
oraz w liniach 5110.cpp:
język cpp
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
język cpp
Musisz się zalogować, aby zobaczyć kod źródłowy. Tylko zalogowani użytkownicy mogą widzieć kod.
i w 5110.h
![Obrazek](https://obrazkiforum.atnel.pl/thumb/3028/7af54f64d111f3328a87a2de0cf13408.jpg)