Commit 256aa029 authored by Deomid Ryabkov's avatar Deomid Ryabkov Committed by Cesanta Bot

Fix compilation for non-MGIOT projects

That don't have CONSOLE_UART defined

PUBLISHED_FROM=7930bb639baf81cff8ce53c6f81e9739668aae08
parent 2eb506c5
...@@ -9912,14 +9912,6 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) { ...@@ -9912,14 +9912,6 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) {
#include <file.h> #include <file.h>
#endif #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/cs_dbg.h" */
/* Amalgamated: #include "common/platform.h" */ /* Amalgamated: #include "common/platform.h" */
...@@ -9937,7 +9929,12 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) { ...@@ -9937,7 +9929,12 @@ void fs_slfs_set_new_file_size(const char *name, size_t size) {
#ifndef MG_UART_CHAR_PUT #ifndef MG_UART_CHAR_PUT
#if CS_PLATFORM == CS_P_CC3200 #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 #else
#define MG_UART_CHAR_PUT(fd, c) #define MG_UART_CHAR_PUT(fd, c)
#endif /* CS_PLATFORM == CS_P_CC3200 */ #endif /* CS_PLATFORM == CS_P_CC3200 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment