Witam, chcę podłączyć do projektu bibliotekę do obsługi wyświetlacza LCD. Kompilator pokazuje, że nie zostały zadeklarowane makra w bibliotece. Do pliku.c próbowałem dodać jeszcze te biblioteki, które podłączone są w pliku.h, ale to nic nie dało. Wcześniej nie miałem takiego problemu z tą biblioteką. Sz
To co wyświetla mi kompilator:
HD44780.c: In function '_LCD_OutNibble':
make[2]: Leaving directory 'D:/AVR Projects/wafefrom_generator.X'
HD44780.c:21: error: 'PORTA' undeclared (first use in this function)
nbproject/Makefile-default.mk:95: recipe for target '.build-conf' failed
HD44780.c:21: error: (Each undeclared identifier is reported only once
make[1]: Leaving directory 'D:/AVR Projects/generator.X'
HD44780.c:21: error: for each function it appears in.)
nbproject/Makefile-impl.mk:39: recipe for target '.build-impl' failed
HD44780.c:21: error: 'PA4' undeclared (first use in this function)
HD44780.c:26: error: 'PA5' undeclared (first use in this function)
HD44780.c:31: error: 'PA6' undeclared (first use in this function)
HD44780.c:36: error: 'PA7' undeclared (first use in this function)
HD44780.c: In function '_LCD_Write':
HD44780.c:47: error: 'PORTA' undeclared (first use in this function)
HD44780.c:47: error: 'PA3' undeclared (first use in this function)
HD44780.c: In function 'LCD_WriteCommand':
HD44780.c:62: error: 'PORTA' undeclared (first use in this function)
HD44780.c:62: error: 'PA2' undeclared (first use in this function)
HD44780.c: In function 'LCD_WriteData':
HD44780.c:72: error: 'PORTA' undeclared (first use in this function)
HD44780.c:72: error: 'PA2' undeclared (first use in this function)
HD44780.c: In function 'LCD_Initalize':
HD44780.c:122: error: 'DDRA' undeclared (first use in this function)
HD44780.c:122: error: 'PA4' undeclared (first use in this function)
HD44780.c:123: error: 'PA5' undeclared (first use in this function)
HD44780.c:124: error: 'PA6' undeclared (first use in this function)
HD44780.c:125: error: 'PA7' undeclared (first use in this function)
HD44780.c:126: error: 'PA3' undeclared (first use in this function)
HD44780.c:127: error: 'PA2' undeclared (first use in this function)
HD44780.c:129: error: 'PORTA' undeclared (first use in this function)
make[2]: *** [build/default/production/HD44780.o] Error 1
make[1]: *** [.build-conf] Error 2
make: *** [.build-impl] Error 2
BUILD FAILED (exit value 2, total time: 112ms)