mirror of
https://github.com/apache/nuttx.git
synced 2025-12-14 07:25:51 +08:00
risc-v/esp32c3: Configure clock and call board initialize at startup.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
This commit is contained in:
committed by
Xiang Xiao
parent
c76e201ebd
commit
39016f6d68
@@ -29,10 +29,11 @@
|
||||
|
||||
#include <arch/board/board.h>
|
||||
|
||||
#include "chip.h"
|
||||
#include "esp32c3.h"
|
||||
#include "esp32c3_clockconfig.h"
|
||||
#include "esp32c3_irq.h"
|
||||
#include "esp32c3_lowputc.h"
|
||||
#include "esp32c3_start.h"
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
@@ -66,6 +67,10 @@ void __esp32c3_start(void)
|
||||
{
|
||||
uint32_t *dest;
|
||||
|
||||
/* Set CPU frequency */
|
||||
|
||||
esp32c3_clockconfig();
|
||||
|
||||
/* Configure the UART so we can get debug output */
|
||||
|
||||
esp32c3_lowsetup();
|
||||
@@ -83,7 +88,11 @@ void __esp32c3_start(void)
|
||||
|
||||
showprogress('B');
|
||||
|
||||
/* Call nx_start() */
|
||||
/* Initialize onboard resources */
|
||||
|
||||
esp32c3_board_initialize();
|
||||
|
||||
/* Bring up NuttX */
|
||||
|
||||
nx_start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user