[En-Nut-Discussion] Platform independent HD44780 driver (remove old ones)

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Tue Sep 16 17:34:27 CEST 2014


>>>>> "Thiago" == Thiago A Corrêa <thiago.correa at gmail.com> writes:

    Thiago> I think it would be best to strip code that is not used instead
    Thiago> of trying make it build as an unusable module. Then client code
    Thiago> at least gets a build error instead of a runtime error if they
    Thiago> forget to set something in the configurator.


    Thiago> I will just add something like:

After a SVN update, there are still problems when compiling for eir10c:

eir10cIn file included from /devel/ethernut_sf/build/../nut/dev/hd44780.c:101:0:
/devel/ethernut_sf/build/../nut/include/cfg/arch/porttran.h:547:0: error: "GPIO_FILTER_ON" redefined [-Werror]
 #define GPIO_FILTER_ON(b)
 ^
In file included from /devel/ethernut_sf/build/../nut/dev/hd44780.c:94:0:
/devel/ethernut_sf/build/../nut/include/cfg/arch/porttran.h:543:0: note: this is the location of the previous definition
 #define GPIO_FILTER_ON(b)   outr(GPIO_IFE_REG, _BV(b))
 ^
In file included from /devel/ethernut_sf/build/../nut/dev/hd44780.c:101:0:
/devel/ethernut_sf/build/../nut/include/cfg/arch/porttran.h:555:0: error: "GPIO_FILTER_OFF" redefined [-Werror]
 #define GPIO_FILTER_OFF(b)
 ^
In file included from /devel/ethernut_sf/build/../nut/dev/hd44780.c:94:0:
/devel/ethernut_sf/build/../nut/include/cfg/arch/porttran.h:551:0: note: this is the location of the previous definition
 #define GPIO_FILTER_OFF(b)  outr(GPIO_IFD_REG, _BV(b))
 ^
/devel/ethernut_sf/build/../nut/dev/hd44780.c: In function 'LcdWriteByte':
/devel/ethernut_sf/build/../nut/dev/hd44780.c:198:5: error: implicit declaration of function 'LcdNanoDelay' [-Werror=implicit-function-declaration]
     LcdNanoDelay(LCD_SHORT_DELAY);
     ^



-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------


More information about the En-Nut-Discussion mailing list