Fix compilation for non-MGIOT projects

That don't have CONSOLE_UART defined

PUBLISHED_FROM=7930bb639baf81cff8ce53c6f81e9739668aae08
This commit is contained in:
Deomid Ryabkov authored and Cesanta Bot committed 2016-07-15 13:34:59 +00:00
1 parent 2eb506c5e0
commit 256aa0296d
1 file changed
+6 -9
+6 -9
View File
@@ -9912,14 +9912,6 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) {
#include <file.h>
#endif
#if CS_PLATFORM == CS_P_CC3200
#include <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <driverlib/rom.h>
#include <driverlib/rom_map.h>
#include <driverlib/uart.h>
#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 <inc/hw_types.h>
#include <inc/hw_memmap.h>
#include <driverlib/rom.h>
#include <driverlib/rom_map.h>
#include <driverlib/uart.h>
#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 */