提交 296d57e8 编写于 作者: B bernard

[BSP] remove components.h file.

上级 5e3b3b19
...@@ -15,8 +15,6 @@ ...@@ -15,8 +15,6 @@
#include <board.h> #include <board.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
void rt_init_thread_entry(void* parameter) void rt_init_thread_entry(void* parameter)
{ {
rt_components_init(); rt_components_init();
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <rthw.h> #include <rthw.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "board.h" #include "board.h"
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <stdlib.h> #include <stdlib.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#ifdef RT_USING_GDB #ifdef RT_USING_GDB
#include <gdb_stub.h> #include <gdb_stub.h>
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <rthw.h> #include <rthw.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "board.h" #include "board.h"
#include <interrupt.h> #include <interrupt.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
* Date Author Notes * Date Author Notes
*/ */
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
void init_thread(void *parameter) void init_thread(void *parameter)
{ {
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include <sdk.h> #include <sdk.h>
#include <core/ccm_pll.h> #include <core/ccm_pll.h>
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <rthw.h> #include <rthw.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "board.h" #include "board.h"
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
#include <finsh.h> #include <finsh.h>
#endif #endif
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/* thread phase init */ /* thread phase init */
void rt_init_thread_entry(void *parameter) void rt_init_thread_entry(void *parameter)
{ {
......
...@@ -15,9 +15,6 @@ ...@@ -15,9 +15,6 @@
#include <rtdevice.h> #include <rtdevice.h>
#include <board.h> #include <board.h>
#include <drv_lpccan.h> #include <drv_lpccan.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#ifdef RT_USING_CAN #ifdef RT_USING_CAN
......
...@@ -20,10 +20,6 @@ ...@@ -20,10 +20,6 @@
#include "board.h" #include "board.h"
#include "drv_uart.h" #include "drv_uart.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/** /**
* This is the timer interrupt service routine. * This is the timer interrupt service routine.
* *
......
...@@ -27,10 +27,6 @@ ...@@ -27,10 +27,6 @@
#include <finsh.h> #include <finsh.h>
#endif #endif
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/* thread phase init */ /* thread phase init */
void rt_init_thread_entry(void *parameter) void rt_init_thread_entry(void *parameter)
{ {
......
...@@ -23,10 +23,6 @@ ...@@ -23,10 +23,6 @@
#include "drv_uart.h" #include "drv_uart.h"
#include "drv_sdram.h" #include "drv_sdram.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/** /**
* This is the timer interrupt service routine. * This is the timer interrupt service routine.
* *
......
...@@ -16,10 +16,6 @@ ...@@ -16,10 +16,6 @@
#include <rtthread.h> #include <rtthread.h>
#include <ls1b.h> #include <ls1b.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#ifdef RT_USING_RTGUI #ifdef RT_USING_RTGUI
#include <rtgui/rtgui.h> #include <rtgui/rtgui.h>
extern void rt_hw_dc_init(void); extern void rt_hw_dc_init(void);
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
*/ */
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "net/synopGMAC.h" #include "net/synopGMAC.h"
#include <lwip/api.h> #include <lwip/api.h>
......
...@@ -24,7 +24,6 @@ ...@@ -24,7 +24,6 @@
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include <rtdef.h> #include <rtdef.h>
//#include <lwip/pbuf.h> //#include <lwip/pbuf.h>
......
...@@ -22,10 +22,6 @@ ...@@ -22,10 +22,6 @@
#include "board.h" #include "board.h"
#include "led.h" #include "led.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
/* dfs init */ /* dfs init */
#include <dfs_init.h> #include <dfs_init.h>
......
...@@ -20,10 +20,6 @@ ...@@ -20,10 +20,6 @@
#include <rtthread.h> #include <rtthread.h>
#include "board.h" #include "board.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
void rt_init_thread_entry(void *parameter) void rt_init_thread_entry(void *parameter)
{ {
#ifdef RT_USING_COMPONENTS_INIT #ifdef RT_USING_COMPONENTS_INIT
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
#include "serial.h" #include "serial.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
/** /**
* @addtogroup FM4 * @addtogroup FM4
*/ */
......
...@@ -20,10 +20,6 @@ ...@@ -20,10 +20,6 @@
#include <rtthread.h> #include <rtthread.h>
#include "board.h" #include "board.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
void rt_init_thread_entry(void *parameter) void rt_init_thread_entry(void *parameter)
{ {
#ifdef RT_USING_COMPONENTS_INIT #ifdef RT_USING_COMPONENTS_INIT
......
...@@ -19,10 +19,6 @@ ...@@ -19,10 +19,6 @@
#include "serial.h" #include "serial.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
/** /**
* @addtogroup FM3 * @addtogroup FM3
*/ */
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#include <board.h> #include <board.h>
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
#include "led.h" #include "led.h"
......
...@@ -16,10 +16,7 @@ ...@@ -16,10 +16,7 @@
#include <rtthread.h> #include <rtthread.h>
#include "board.h" #include "board.h"
#include "usart.h" #include "usart.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/** /**
* @addtogroup NUVOTON_M05X * @addtogroup NUVOTON_M05X
*/ */
......
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
*/ */
#include "led.h" #include "led.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/* /*
LED: P3.6 LED: P3.6
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
#include <board.h> #include <board.h>
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
#include "led.h" #include "led.h"
......
...@@ -16,10 +16,7 @@ ...@@ -16,10 +16,7 @@
#include <rtthread.h> #include <rtthread.h>
#include "board.h" #include "board.h"
#include "usart.h" #include "usart.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/** /**
* @addtogroup NUVOTON_M451 * @addtogroup NUVOTON_M451
*/ */
......
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
*/ */
#include "led.h" #include "led.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/* /*
LED: PC9 for M451 SDK LED: PC9 for M451 SDK
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
#include "board.h" #include "board.h"
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
#include "gpio.h" #include "gpio.h"
......
...@@ -19,12 +19,6 @@ ...@@ -19,12 +19,6 @@
#include "drv_uart.h" #include "drv_uart.h"
#include "nv32.h" #include "nv32.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#define portNVIC_SYSTICK_CTRL ( ( volatile uint32_t *) 0xe000e010 ) #define portNVIC_SYSTICK_CTRL ( ( volatile uint32_t *) 0xe000e010 )
#define portNVIC_SYSTICK_LOAD ( ( volatile uint32_t *) 0xe000e014 ) #define portNVIC_SYSTICK_LOAD ( ( volatile uint32_t *) 0xe000e014 )
#define portNVIC_INT_CTRL ( ( volatile uint32_t *) 0xe000ed04 ) #define portNVIC_INT_CTRL ( ( volatile uint32_t *) 0xe000ed04 )
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
void init_thread(void* parameter) void init_thread(void* parameter)
{ {
......
...@@ -14,7 +14,6 @@ ...@@ -14,7 +14,6 @@
#include <rthw.h> #include <rthw.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "board.h" #include "board.h"
......
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include <board.h> #include <board.h>
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
/* dfs filesystem:ELM filesystem init */ /* dfs filesystem:ELM filesystem init */
#include <dfs_elm.h> #include <dfs_elm.h>
......
...@@ -22,9 +22,6 @@ ...@@ -22,9 +22,6 @@
#include <board.h> #include <board.h>
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
#include "led.h" #include "led.h"
......
...@@ -18,10 +18,7 @@ ...@@ -18,10 +18,7 @@
#include "board.h" #include "board.h"
#include "usart.h" #include "usart.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/** /**
* @addtogroup STM32 * @addtogroup STM32
*/ */
......
...@@ -13,10 +13,6 @@ ...@@ -13,10 +13,6 @@
*/ */
#include "led.h" #include "led.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/* /*
LED_GREEN: PC8 LED_GREEN: PC8
......
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include <board.h> #include <board.h>
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_DFS #ifdef RT_USING_DFS
/* dfs filesystem:ELM filesystem init */ /* dfs filesystem:ELM filesystem init */
#include <dfs_elm.h> #include <dfs_elm.h>
......
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
#include "board.h" #include "board.h"
#include "usart.h" #include "usart.h"
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
/** /**
* @addtogroup STM32 * @addtogroup STM32
*/ */
......
...@@ -20,10 +20,6 @@ ...@@ -20,10 +20,6 @@
#undef RT_USING_CAN #undef RT_USING_CAN
#endif #endif
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#ifdef RT_USING_CAN #ifdef RT_USING_CAN
#ifndef STM32F10X_CL #ifndef STM32F10X_CL
......
...@@ -23,9 +23,6 @@ ...@@ -23,9 +23,6 @@
#include <rtdevice.h> #include <rtdevice.h>
#include "board.h" #include "board.h"
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
static void rt_init_thread_entry(void* parameter) static void rt_init_thread_entry(void* parameter)
{ {
......
...@@ -3,9 +3,7 @@ ...@@ -3,9 +3,7 @@
#include <rtdevice.h> #include <rtdevice.h>
#include "board.h" #include "board.h"
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif /* RT_USING_COMPONENTS_INIT */
/* led thread entry */ /* led thread entry */
#define PINRX 22 #define PINRX 22
#define PINTX 21 #define PINTX 21
......
...@@ -18,10 +18,7 @@ ...@@ -18,10 +18,7 @@
#include "board.h" #include "board.h"
#include "usart.h" #include "usart.h"
/* RT_USING_COMPONENTS_INIT */
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
/** /**
* @addtogroup STM32 * @addtogroup STM32
*/ */
......
...@@ -18,10 +18,6 @@ ...@@ -18,10 +18,6 @@
#include <rtdevice.h> #include <rtdevice.h>
#include <board.h> #include <board.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#define SPIRXEVENT 0x01 #define SPIRXEVENT 0x01
#define SPITXEVENT 0x02 #define SPITXEVENT 0x02
......
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
#include <rthw.h> #include <rthw.h>
#include <rtdevice.h> #include <rtdevice.h>
#include <board.h> #include <board.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#ifdef RT_USING_PIN #ifdef RT_USING_PIN
#include "stm32l0xx.h" #include "stm32l0xx.h"
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
*/ */
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
/* thread phase init */ /* thread phase init */
void rt_init_thread_entry(void *parameter) void rt_init_thread_entry(void *parameter)
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#include <rthw.h> #include <rthw.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "board.h" #include "board.h"
......
...@@ -146,8 +146,6 @@ extern void lwIPHostGetTime(u32_t *time_s, u32_t *time_ns); ...@@ -146,8 +146,6 @@ extern void lwIPHostGetTime(u32_t *time_s, u32_t *time_ns);
#include "lwipopts.h" #include "lwipopts.h"
#include "drv_eth.h" #include "drv_eth.h"
#include <components.h>
/** /**
* A structure used to keep track of driver state and error counts. * A structure used to keep track of driver state and error counts.
*/ */
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <rtdevice.h> #include <rtdevice.h>
#include "board.h" #include "board.h"
#include <components.h>
#include "inc/hw_memmap.h" #include "inc/hw_memmap.h"
#include "driverlib/sysctl.h" #include "driverlib/sysctl.h"
......
...@@ -19,9 +19,7 @@ ...@@ -19,9 +19,7 @@
*/ */
#include <rtthread.h> #include <rtthread.h>
#ifdef RT_USING_COMPONENTS_INIT
#include <components.h>
#endif
#include <cp15.h> #include <cp15.h>
/* thread phase init */ /* thread phase init */
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
#include <rthw.h> #include <rthw.h>
#include <rtthread.h> #include <rtthread.h>
#include <components.h>
#include "board.h" #include "board.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册