From 256aa0296d921adc78a32542553e0d48b8939bd1 Mon Sep 17 00:00:00 2001 From: Deomid Ryabkov Date: Fri, 15 Jul 2016 16:23:34 +0300 Subject: [PATCH] Fix compilation for non-MGIOT projects That don't have CONSOLE_UART defined PUBLISHED_FROM=7930bb639baf81cff8ce53c6f81e9739668aae08 --- mongoose.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/mongoose.c b/mongoose.c index e42784d9..28967b2b 100644 --- a/mongoose.c +++ b/mongoose.c @@ -9912,14 +9912,6 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) { #include #endif -#if CS_PLATFORM == CS_P_CC3200 -#include -#include -#include -#include -#include -#endif - /* Amalgamated: #include "common/cs_dbg.h" */ /* Amalgamated: #include "common/platform.h" */ @@ -9937,7 +9929,12 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) { #ifndef MG_UART_CHAR_PUT #if CS_PLATFORM == CS_P_CC3200 -#define MG_UART_CHAR_PUT(fd, c) MAP_UARTCharPut(CONSOLE_UART, c); +#include +#include +#include +#include +#include +#define MG_UART_CHAR_PUT(fd, c) MAP_UARTCharPut(UARTA0_BASE, c); #else #define MG_UART_CHAR_PUT(fd, c) #endif /* CS_PLATFORM == CS_P_CC3200 */