diff --git a/bsp/imx6ul/drivers/board.h b/bsp/imx6ul/drivers/board.h index 3e98e302c2..76593e2f08 100644 --- a/bsp/imx6ul/drivers/board.h +++ b/bsp/imx6ul/drivers/board.h @@ -13,6 +13,7 @@ #include #include +#include "imx6ul.h" #define CONFIG_MX6 #define CONFIG_MX6UL diff --git a/bsp/imx6ul/platform/cpu/platform.h b/bsp/imx6ul/drivers/imx6ul.h similarity index 96% rename from bsp/imx6ul/platform/cpu/platform.h rename to bsp/imx6ul/drivers/imx6ul.h index f6a3995bc5..7f0db1354f 100644 --- a/bsp/imx6ul/platform/cpu/platform.h +++ b/bsp/imx6ul/drivers/imx6ul.h @@ -7,8 +7,8 @@ * Date Author Notes * 2018-03-22 quanzhao first version */ -#ifndef __PLATFORM_H__ -#define __PLATFORM_H__ +#ifndef __IMX6UL_H__ +#define __IMX6UL_H__ #include #include @@ -93,4 +93,4 @@ rt_inline void disable_interrupt(uint32_t irq_id, uint32_t cpu_id) rt_hw_interrupt_mask(irq_id); } -#endif /* __PLATFORM_H__ */ +#endif /* __IMX6UL_H__ */ diff --git a/bsp/qemu-vexpress-a9/drivers/board.h b/bsp/qemu-vexpress-a9/drivers/board.h index 2d3d87fdbb..ccbe0f8c9e 100644 --- a/bsp/qemu-vexpress-a9/drivers/board.h +++ b/bsp/qemu-vexpress-a9/drivers/board.h @@ -16,6 +16,7 @@ #define __BOARD_H__ #include +#include "vexpress_a9.h" #if defined(__CC_ARM) extern int Image$$RW_IRAM1$$ZI$$Limit; diff --git a/bsp/qemu-vexpress-a9/platform/cpu/platform.h b/bsp/qemu-vexpress-a9/drivers/vexpress_a9.h similarity index 89% rename from bsp/qemu-vexpress-a9/platform/cpu/platform.h rename to bsp/qemu-vexpress-a9/drivers/vexpress_a9.h index 2d5cc5f61b..a6467973c5 100644 --- a/bsp/qemu-vexpress-a9/platform/cpu/platform.h +++ b/bsp/qemu-vexpress-a9/drivers/vexpress_a9.h @@ -8,8 +8,8 @@ * 2018-03-22 quanzhao first version */ -#ifndef __PLATFORM_H__ -#define __PLATFORM_H__ +#ifndef __VEXPRESS_A9_H__ +#define __VEXPRESS_A9_H__ /* for 'rt_inline' */ #include @@ -34,4 +34,4 @@ rt_inline rt_uint32_t platform_get_gic_cpu_base(void) #define GIC_ACK_INTID_MASK 0x000003ff -#endif /* __PLATFORM_H__ */ +#endif /* __VEXPRESS_A9_H__ */ diff --git a/bsp/qemu-vexpress-a9/platform/SConscript b/bsp/qemu-vexpress-a9/platform/SConscript deleted file mode 100644 index 1b580929da..0000000000 --- a/bsp/qemu-vexpress-a9/platform/SConscript +++ /dev/null @@ -1,13 +0,0 @@ -from building import * - -cwd = GetCurrentDir() -src = Split(''' -''') - -CPPPATH = [ cwd + '/cpu', -cwd + '/include', -] - -group = DefineGroup('Platform', src, depend = [''], CPPPATH = CPPPATH) - -Return('group') diff --git a/libcpu/arm/cortex-a/gic.h b/libcpu/arm/cortex-a/gic.h index 6d86dd31e0..a16d0467fb 100644 --- a/libcpu/arm/cortex-a/gic.h +++ b/libcpu/arm/cortex-a/gic.h @@ -12,7 +12,7 @@ #define __GIC_H__ #include -#include +#include int arm_gic_dist_init(rt_uint32_t index, rt_uint32_t dist_base, int irq_start); int arm_gic_cpu_init(rt_uint32_t index, rt_uint32_t cpu_base); diff --git a/libcpu/arm/cortex-a/interrupt.h b/libcpu/arm/cortex-a/interrupt.h index bff29d402d..31f79cc66e 100644 --- a/libcpu/arm/cortex-a/interrupt.h +++ b/libcpu/arm/cortex-a/interrupt.h @@ -12,7 +12,7 @@ #define __INTERRUPT_H__ #include -#include +#include #define INT_IRQ 0x00 #define INT_FIQ 0x01 diff --git a/libcpu/arm/cortex-a/trap.c b/libcpu/arm/cortex-a/trap.c index 54628933ff..a25f6ac862 100644 --- a/libcpu/arm/cortex-a/trap.c +++ b/libcpu/arm/cortex-a/trap.c @@ -10,7 +10,7 @@ #include #include -#include +#include #include "armv7.h" #include "interrupt.h"