From f14850dbf6369dc42df913c407bda51efb1c620c Mon Sep 17 00:00:00 2001 From: Leo C Date: Sun, 24 Aug 2014 23:22:58 +0200 Subject: use env var 'baudrate' --- include/config.h | 3 ++- include/rtc.h | 1 - include/serial.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/config.h b/include/config.h index 287a0c5..396fd59 100644 --- a/include/config.h +++ b/include/config.h @@ -5,7 +5,8 @@ #define CONFIG_ENV_OFFSET 0 #define CONFIG_ENVVAR_MAX 20 -#define CONFIG_POWRON_DELAY 2000 /* ms to wait after power on */ +#define CONFIG_BAUDRATE 115200L +#define CONFIG_PWRON_DELAY 2000 /* ms to wait after power on */ #define CONFIG_BOOTDELAY 4 //#define CONFIG_ZERO_BOOTDELAY_CHECK 1 diff --git a/include/rtc.h b/include/rtc.h index 15215a9..51ee424 100644 --- a/include/rtc.h +++ b/include/rtc.h @@ -39,7 +39,6 @@ struct rtc_time { int rtc_get (struct rtc_time *); int rtc_set (struct rtc_time *); -void rtc_reset (void); void GregorianDay (struct rtc_time *); void to_tm (unsigned long, struct rtc_time *); diff --git a/include/serial.h b/include/serial.h index 7414ef1..40ac815 100644 --- a/include/serial.h +++ b/include/serial.h @@ -1,7 +1,7 @@ #ifndef SERIAL_H #define SERIAL_H -void serial_setup(void); +void serial_setup(unsigned long baud); void serial_putc(char); int serial_getc(void); uint_fast8_t serial_tstc(void); -- cgit v1.2.3