FIx rk3568 hal-lib,todo: map phy addr to virt addr
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "hal_conf.h"
|
||||
|
||||
/* IO definitions (access restrictions to peripheral registers) */
|
||||
#ifdef __cplusplus
|
||||
@@ -263,9 +264,9 @@ typedef enum
|
||||
#error "HAL_AP_CORE and HAL_MCU_CORE only one of them can be enabled"
|
||||
#endif
|
||||
|
||||
// #if !defined(HAL_AP_CORE) && !defined(HAL_MCU_CORE)
|
||||
// #error "Please define HAL_AP_CORE or HAL_MCU_CORE on hal_conf.h"
|
||||
// #endif
|
||||
#if !defined(HAL_AP_CORE) && !defined(HAL_MCU_CORE)
|
||||
#error "Please define HAL_AP_CORE or HAL_MCU_CORE on hal_conf.h"
|
||||
#endif
|
||||
|
||||
#ifdef HAL_AP_CORE
|
||||
#define __CORTEX_A 55U /* Cortex-A55 Core */
|
||||
@@ -279,13 +280,13 @@ typedef enum
|
||||
#define __RISC_V
|
||||
#endif
|
||||
|
||||
// #ifndef __ASSEMBLY__
|
||||
// #include "cmsis_compiler.h" /* CMSIS compiler specific defines */
|
||||
// #ifdef __CORTEX_A
|
||||
// #include "core_ca.h"
|
||||
// #endif
|
||||
// #include "system_rk3568.h"
|
||||
// #endif /* __ASSEMBLY__ */
|
||||
#ifndef __ASSEMBLY__
|
||||
#include "cmsis_compiler.h" /* CMSIS compiler specific defines */
|
||||
#ifdef __CORTEX_A
|
||||
#include "core_ca.h"
|
||||
#endif
|
||||
#include "system_rk3568.h"
|
||||
#endif /* __ASSEMBLY__ */
|
||||
#include "rk3568.h"
|
||||
|
||||
/****************************************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user