enable -std=gnu11 for driver dir with corrected os_printf* decls

This commit is contained in:
devsaurus 2016-01-23 00:17:53 +01:00
parent 0c3fc6cc78
commit 9f54c8f5d4
3 changed files with 7 additions and 0 deletions

View File

@ -15,6 +15,7 @@ ifndef PDIR
GEN_LIBS = libdriver.a GEN_LIBS = libdriver.a
endif endif
STD_CFLAGS=-std=gnu11 -Wimplicit
############################################################# #############################################################
# Configuration i.e. compile options etc. # Configuration i.e. compile options etc.

View File

@ -140,4 +140,7 @@ void Cache_Read_Disable(void);
void ets_intr_lock(void); void ets_intr_lock(void);
void ets_intr_unlock(void); void ets_intr_unlock(void);
void ets_install_putc1(void *routine);
void uart_div_modify(int no, unsigned int freq);
#endif #endif

View File

@ -4,6 +4,9 @@
#include "rom.h" #include "rom.h"
void ets_timer_arm_new (ETSTimer *a, int b, int c, int isMstimer); void ets_timer_arm_new (ETSTimer *a, int b, int c, int isMstimer);
int os_printf(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
int os_printf_plus(const char *format, ...) __attribute__ ((format (printf, 1, 2)));
#include_next "osapi.h" #include_next "osapi.h"
#endif #endif