1 /* 2 // Copyright (C) 2022 Beken Corporation 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 17 #ifndef __PLATFORM_H__ 18 #define __PLATFORM_H__ 19 20 #ifdef __cplusplus 21 extern "C" { 22 #endif 23 24 #include "core_v5.h" 25 #include "mcu_ip.h" 26 27 /* 28 * Define 'NDS_PLIC_BASE' and 'NDS_PLIC_SW_BASE' before include platform 29 * intrinsic header file to active PLIC/PLIC_SW related intrinsic functions. 30 */ 31 #define NDS_PLIC_BASE PLIC_BASE 32 #define NDS_PLIC_SW_BASE PLIC_SW_BASE 33 #include "nds_v5_platform.h" 34 35 /***************************************************************************** 36 * Peripheral device HAL declaration 37 ****************************************************************************/ 38 #define DEV_PLMT MCUIP_PLMT 39 #define DEV_SMU MCUIP_SMU 40 41 #define CFG_XIP (1) 42 43 #ifdef __cplusplus 44 } 45 #endif 46 47 #endif /* __PLATFORM_H__ */ 48