risc-v/esp32c3: Add basic UART support for console

This commit is contained in:
Sara Souza
2021-02-11 22:42:52 +01:00
committed by Brennan Ashton
parent b11a5ca8b2
commit 998f7e5d4c
10 changed files with 3535 additions and 11 deletions

View File

@@ -32,13 +32,14 @@
#include "chip.h"
#include "esp32c3.h"
#include "esp32c3_irq.h"
#include "esp32c3_lowputc.h"
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
#ifdef CONFIG_DEBUG_FEATURES
# define showprogress(c) ets_printf("%c", c)
# define showprogress(c) up_lowputc(c)
#else
# define showprogress(c)
#endif
@@ -65,6 +66,10 @@ void __esp32c3_start(void)
{
uint32_t *dest;
/* Configure the UART so we can get debug output */
esp32c3_lowsetup();
showprogress('A');
/* Clear .bss. We'll do this inline (vs. calling memset) just to be
@@ -82,7 +87,5 @@ void __esp32c3_start(void)
nx_start();
/* Shouldn't get here */
for (; ; );
}