[feat][zephyr] Drop arch includes at blx02.h files
This move riscv specific includes to source files that require the definitions. It drop all arch files dependencies at blX02.h file. Signed-off-by: Gerson Fernando Budke <nandojve@gmail.com>
This commit is contained in:
parent
3bbbab5e5b
commit
48fbbbbc65
@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "hal_mtimer.h"
|
#include "hal_mtimer.h"
|
||||||
#include "bl602_glb.h"
|
#include "bl602_glb.h"
|
||||||
|
#include "risc-v/Core/Include/clic.h"
|
||||||
|
|
||||||
static void (*systick_callback)(void);
|
static void (*systick_callback)(void);
|
||||||
static uint64_t next_compare_tick = 0;
|
static uint64_t next_compare_tick = 0;
|
||||||
|
@ -247,25 +247,5 @@ typedef enum {
|
|||||||
*/
|
*/
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <system_bl602.h>
|
#include <system_bl602.h>
|
||||||
/* ARM CPU include files */
|
|
||||||
#ifdef ARCH_ARM
|
|
||||||
#ifdef CPU_AP_CM4
|
|
||||||
#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
|
|
||||||
#endif
|
|
||||||
#ifdef CPU_NP_CM0
|
|
||||||
#include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
/* RISCV CPU include files */
|
|
||||||
#ifdef ARCH_RISCV
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#include "../risc-v/Core/Include/clic.h"
|
|
||||||
#include "../risc-v/Core/Include/riscv_encoding.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @}
|
|
||||||
*/
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "bl602_common.h"
|
#include "bl602_common.h"
|
||||||
#include "bflb_platform.h"
|
#include "bflb_platform.h"
|
||||||
|
#include "risc-v/Core/Include/clic.h"
|
||||||
|
#include "risc-v/Core/Include/riscv_encoding.h"
|
||||||
|
|
||||||
pFunc __Interrupt_Handlers[IRQn_LAST] = { 0 };
|
pFunc __Interrupt_Handlers[IRQn_LAST] = { 0 };
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#include "bl602.h"
|
#include "bl602.h"
|
||||||
#include "bl602_glb.h"
|
#include "bl602_glb.h"
|
||||||
#include "bl602_hbn.h"
|
#include "bl602_hbn.h"
|
||||||
|
#include "risc-v/Core/Include/clic.h"
|
||||||
|
|
||||||
/*----------------------------------------------------------------------------
|
/*----------------------------------------------------------------------------
|
||||||
Define clocks
|
Define clocks
|
||||||
|
@ -22,6 +22,7 @@
|
|||||||
*/
|
*/
|
||||||
#include "hal_mtimer.h"
|
#include "hal_mtimer.h"
|
||||||
#include "bl702_glb.h"
|
#include "bl702_glb.h"
|
||||||
|
#include "risc-v/Core/Include/clic.h"
|
||||||
|
|
||||||
static void (*systick_callback)(void);
|
static void (*systick_callback)(void);
|
||||||
static uint64_t next_compare_tick = 0;
|
static uint64_t next_compare_tick = 0;
|
||||||
|
@ -299,22 +299,6 @@ typedef enum {
|
|||||||
*/
|
*/
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <system_bl702.h>
|
#include <system_bl702.h>
|
||||||
/* ARM CPU include files */
|
|
||||||
#ifdef ARCH_ARM
|
|
||||||
#ifdef CPU_AP_CM4
|
|
||||||
#include "core_cm4.h" /* Cortex-M4 processor and core peripherals */
|
|
||||||
#endif
|
|
||||||
#ifdef CPU_NP_CM0
|
|
||||||
#include "core_cm0.h" /* Cortex-M0 processor and core peripherals */
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
/* RISCV CPU include files */
|
|
||||||
#ifdef ARCH_RISCV
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#include "../risc-v/Core/Include/clic.h"
|
|
||||||
#include "../risc-v/Core/Include/riscv_encoding.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @}
|
* @}
|
||||||
|
@ -22,6 +22,8 @@
|
|||||||
*/
|
*/
|
||||||
#include "bl702_common.h"
|
#include "bl702_common.h"
|
||||||
#include "bflb_platform.h"
|
#include "bflb_platform.h"
|
||||||
|
#include "risc-v/Core/Include/clic.h"
|
||||||
|
#include "risc-v/Core/Include/riscv_encoding.h"
|
||||||
|
|
||||||
pFunc __Interrupt_Handlers[IRQn_LAST] = { 0 };
|
pFunc __Interrupt_Handlers[IRQn_LAST] = { 0 };
|
||||||
|
|
||||||
|
@ -23,6 +23,7 @@
|
|||||||
#include "bl702.h"
|
#include "bl702.h"
|
||||||
#include "bl702_glb.h"
|
#include "bl702_glb.h"
|
||||||
#include "bl702_hbn.h"
|
#include "bl702_hbn.h"
|
||||||
|
#include "risc-v/Core/Include/clic.h"
|
||||||
|
|
||||||
#ifdef BFLB_EFLASH_LOADER
|
#ifdef BFLB_EFLASH_LOADER
|
||||||
#include "bl702_usb.h"
|
#include "bl702_usb.h"
|
||||||
|
Reference in New Issue
Block a user