mirror of
https://github.com/eclipse-threadx/threadx.git
synced 2026-08-17 17:43:54 +08:00
Support XuanTie E906 CPU
- Place the E906 implementation in the ports/risc-v32/gnu directory; - Remove code unrelated to the xuantie_smartl_fpga demo;
This commit is contained in:
+2
-3
@@ -10,7 +10,6 @@ set(SRCS
|
||||
${CMAKE_CURRENT_LIST_DIR}/boards/board_riscv_dummy/src/uart/board_uart.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/boards/board_riscv_dummy/src/board_init.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/components/csi/csi2/src/csi_misc.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/components/csi/csi2/src/csi_ringbuf.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/components/libc_threadx/mini_printf.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/components/libc_threadx/newlib_stub.c
|
||||
${CMAKE_CURRENT_LIST_DIR}/components/chip_riscv_dummy/src/arch/e906fdp/startup.S
|
||||
@@ -31,7 +30,7 @@ set(SRCS
|
||||
)
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../../../../../common/inc
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../../../../common/inc
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../inc
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
${CMAKE_CURRENT_LIST_DIR}/boards/board_riscv_dummy/include
|
||||
@@ -67,7 +66,7 @@ add_link_options(
|
||||
-Wl,-Map=${PROJECT_NAME}.map
|
||||
)
|
||||
|
||||
link_directories(${CMAKE_CURRENT_LIST_DIR}/../../../../../../build)
|
||||
link_directories(${CMAKE_CURRENT_LIST_DIR}/../../../../../build)
|
||||
add_executable(${PROJECT_NAME} ${SRCS})
|
||||
set_target_properties(${PROJECT_NAME} PROPERTIES OUTPUT_NAME "${PROJECT_NAME}.elf")
|
||||
target_link_libraries(${PROJECT_NAME} PRIVATE threadx)
|
||||
+5
-5
@@ -17,7 +17,7 @@
|
||||
*/
|
||||
|
||||
/*
|
||||
This is an example board.h for Board Compment, New Board should flow the macro defines.
|
||||
This is an example board.h for Board Component, New Board should follow the macro defines.
|
||||
*/
|
||||
|
||||
#ifndef __BOARD_H__
|
||||
@@ -44,7 +44,7 @@ extern "C" {
|
||||
· WIFI
|
||||
· BT
|
||||
· AUDIO
|
||||
BOARD_XXX Macro descripted below should be defined if the board support.
|
||||
BOARD_XXX Macro described below should be defined if the board support.
|
||||
*/
|
||||
|
||||
/****************************************************************************/
|
||||
@@ -120,8 +120,8 @@ extern "C" {
|
||||
// UART
|
||||
|
||||
/*
|
||||
The total supported uart numbers on this board, 0 meas No uart support.
|
||||
the BOARD_UART<x>_XXX, x in rang of (0, BOARD_UART_NUM - 1)
|
||||
The total supported uart numbers on this board, 0 means No uart support.
|
||||
the BOARD_UART<x>_XXX, x in range of (0, BOARD_UART_NUM - 1)
|
||||
*/
|
||||
#ifndef BOARD_UART_NUM
|
||||
#define BOARD_UART_NUM (1)
|
||||
@@ -441,4 +441,4 @@ void board_audio_init(void);
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __BOARD_H__ */
|
||||
#endif /* __BOARD_H__ */
|
||||
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
pushd ../../../../../
|
||||
rm -rf build
|
||||
cmake -Bbuild -GNinja -DCMAKE_TOOLCHAIN_FILE=ports/risc-v32/gnu/example_build/xuantie_smartl_fpga/xuantie_e906_gnu.cmake .
|
||||
cmake --build ./build/
|
||||
popd
|
||||
-2
@@ -22,8 +22,6 @@
|
||||
#include <drv/irq.h>
|
||||
#include <drv/dma.h>
|
||||
#include <drv/tick.h>
|
||||
#include <drv/etb.h>
|
||||
#include <drv/spiflash.h>
|
||||
#include "riscv_csr.h"
|
||||
|
||||
#if (defined(CONFIG_KERNEL_RHINO) || defined(CONFIG_KERNEL_FREERTOS) || defined(CONFIG_KERNEL_RTTHREAD)) && defined(CONFIG_KERNEL_NONE)
|
||||
+2
@@ -896,3 +896,5 @@ is_interrupt:
|
||||
.weak \handler_name
|
||||
.set \handler_name, Default_Handler
|
||||
.endm
|
||||
|
||||
def_irq_handler tspend_handler
|
||||
+4
-4
@@ -22,10 +22,10 @@
|
||||
#include <drv/uart.h>
|
||||
#include <drv/timer.h>
|
||||
#include <drv/dma.h>
|
||||
#include <drv/iic.h>
|
||||
#include <drv/rtc.h>
|
||||
#include <drv/spi.h>
|
||||
#include <drv/adc.h>
|
||||
// #include <drv/iic.h>
|
||||
// #include <drv/rtc.h>
|
||||
// #include <drv/spi.h>
|
||||
// #include <drv/adc.h>
|
||||
#include <drv/gpio.h>
|
||||
#include <drv/irq.h>
|
||||
#include <drv/pin.h>
|
||||
+1
-1
@@ -19,7 +19,7 @@
|
||||
#include <stdint.h>
|
||||
#include <soc.h>
|
||||
#include <sys_clk.h>
|
||||
#include <drv/io.h>
|
||||
// #include <drv/io.h>
|
||||
|
||||
uint32_t g_system_clock = IHS_VALUE;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user