diff --git a/include/lc7981.h b/include/lc7981.h index 4980927..02a5104 100644 --- a/include/lc7981.h +++ b/include/lc7981.h @@ -69,7 +69,7 @@ #define PIXEL_OFF 0 //!< see lcd_plot_pixel void lcd_init(uint8_t mode); -void lcd_clear(); +void lcd_clear(void); void lcd_write_text(char *txt); void lcd_gotoxy(uint8_t x, uint8_t y); @@ -82,9 +82,9 @@ void lcd_plot_text(uint8_t x_off, uint8_t y_off, const char *text, uint8_t fw, u void lcd_plot_pgmtext(uint8_t x_off, uint8_t y_off, PGM_P text, uint8_t fw, uint8_t fh, PGM_P font); -static inline void lcd_strobe(); +static inline void lcd_strobe(void); static inline void lcd_write_command(uint8_t cmd, uint8_t data); -static inline uint8_t lcd_read_byte(); +static inline uint8_t lcd_read_byte(void); // Static inline functions, that can be used in the library and in the main programm @@ -94,7 +94,7 @@ static inline uint8_t lcd_read_byte(); * Generates the strobe signal for writing data. * This function is meant for internal usage only. */ -static inline void lcd_strobe() { +static inline void lcd_strobe(void) { lcd_en_high(); _delay_us(1); lcd_en_low(); @@ -131,7 +131,7 @@ static inline void lcd_write_command(uint8_t cmd, uint8_t data) { * @return the byte which has been read * @see lcd_gotoxy */ -static inline uint8_t lcd_read_byte() { +static inline uint8_t lcd_read_byte(void) { uint8_t i,data; for(i = 0; i < 2; i++) { diff --git a/include/touch.h b/include/touch.h index 7ab88ee..fdbfd83 100644 --- a/include/touch.h +++ b/include/touch.h @@ -22,9 +22,9 @@ #define TOUCH_PRESSED_LEVEL 1000 -uint8_t touch_is_pressed(); +uint8_t touch_is_pressed(void); -int16_t touch_readX(); -int16_t touch_readY() ; +int16_t touch_readX(void); +int16_t touch_readY(void); #endif /* TOUCH_H_ */ diff --git a/makefile b/makefile index 7818772..8de7fe6 100644 --- a/makefile +++ b/makefile @@ -430,7 +430,7 @@ end: # Display size of file. HEXSIZE = $(SIZE) --target=$(FORMAT) $(TARGET).hex -ELFSIZE = $(SIZE) --mcu=$(MCU) --format=avr $(TARGET).elf +ELFSIZE = $(SIZE) $(TARGET).elf sizebefore: @if test -f $(TARGET).elf; then echo; echo $(MSG_SIZE_BEFORE); $(ELFSIZE); \ diff --git a/writing_demo.h b/writing_demo.h index 42daba6..acfa1e6 100644 --- a/writing_demo.h +++ b/writing_demo.h @@ -13,6 +13,6 @@ #include "include/adc.h" #include "include/touch.h" -void writing_demo(); +void writing_demo(void); #endif /* PARTICEL_DEMO_H_ */