From: asterix Date: Fri, 5 Nov 2010 11:07:04 +0000 (+0000) Subject: Add lcd foldback implementation. X-Git-Tag: 2.6.0~5^2~10 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=c250b4c3248572246ca103b85148c29bcfef8732;p=bertos.git Add lcd foldback implementation. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@4510 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/hw/hw_lcd.h b/bertos/hw/hw_lcd.h new file mode 100644 index 00000000..e6657dd0 --- /dev/null +++ b/bertos/hw/hw_lcd.h @@ -0,0 +1,65 @@ +/** + * \file + * + * + * \brief Atmel SAM3N-EK testcase + * + * \author Luca Ottaviano + * \author Daniele Basile + */ + +#ifndef HW_LCD_H +#define HW_LCD_H + +#warning FIXME: This is an example implementation, you must implement it + +#include + +#include +#include + +#define LCD_BACKLIGHT_MAX // Max backlight level +#define LCD_BACKLIGHT_PIN // Port C +#define LCD_SPICLOCK // Minimum cycle len = 80 ns according specs + + +#define LCD_BACKLIGHT_LEVEL_UP() do { /* Implement me! */ } while(0) + + +INLINE void lcd_setBacklight(uint8_t level) +{ + (void)level; + /* Implement me! */ +} + +#define LCD_BACKLIGHT_INIT() do { /* Implement me! */ } while(0) + +#endif /* HW_LCD_H */