mirror of
https://github.com/apache/nuttx.git
synced 2025-12-15 08:44:44 +08:00
risc-v/esp32c3: Add basic UART support for console
This commit is contained in:
committed by
Brennan Ashton
parent
b11a5ca8b2
commit
998f7e5d4c
@@ -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 (; ; );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user