Merge pull request #943 from ArdaFu/master

[bsp][tm4c129x] Add support to kconfig
This commit is contained in:
Bernard Xiong authored and GitHub committed 2017-11-02 18:03:00 +08:00
commit 8ca6b2ca2f
7 files changed
+408 -275

No files matched your search

File diff suppressed because it is too large. Load diff
+32
View File
@@ -0,0 +1,32 @@
mainmenu "RT-Thread Configuration"
config $BSP_DIR
string
option env="BSP_ROOT"
default "."
config $RTT_DIR
string
option env="RTT_ROOT"
default "../.."
config $PKGS_DIR
string
option env="PKGS_ROOT"
default "packages"
source "$RTT_DIR/KConfig"
source "$PKGS_DIR/KConfig"
menu "BSP_SPECIAL CONFIG"
config RT_USING_UART0
bool "Using RT_USING_UART0"
default y
endmenu
+2 -15
View File
@@ -14,21 +14,8 @@
#include <rtthread.h>
/* thread phase init */
void rt_init_thread_entry(void *parameter)
int main(void)
{
/* Initialization RT-Thread Components */
rt_components_init();
}
int rt_application_init(void)
{
rt_thread_t tid;
tid = rt_thread_create("init",
rt_init_thread_entry, RT_NULL,
2048, RT_THREAD_PRIORITY_MAX / 3, 20);
if (tid != RT_NULL) rt_thread_startup(tid);
return 0;
/* user app entry */
}
-10
View File
@@ -23,16 +23,6 @@
#include <stdint.h>
extern uint32_t SysClock;
// <RDTConfigurator URL="http://www.rt-thread.com/eclipse">
// <bool name="RT_USING_UART0" description="Using UART0" default="true" />
#define RT_USING_UART0
// <bool name="RT_USING_UART1" description="Using UART1" default="true" />
//#define RT_USING_UART1
// <bool name="RT_USING_UART2" description="Using UART2" default="true" />
//#define RT_USING_UART2
// </RDTConfigurator>
#ifdef __CC_ARM
extern int Image$$RW_IRAM$$ZI$$Limit;
-68
View File
@@ -1,68 +0,0 @@
/*
* File : startup.c
* This file is part of RT-Thread RTOS
* COPYRIGHT (C) 2009, RT-Thread Development Team
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rt-thread.org/license/LICENSE
*
* Change Logs:
* Date Author Notes
* 2009-01-05 Bernard first implementation
* 2010-03-04 Magicoe for LPC17xx
* 2014-07-18 ArdaFu Port to TM4C129X
*/
#include <rthw.h>
#include <rtthread.h>
#include "board.h"
extern int rt_application_init(void);
/**
* This function will startup RT-Thread RTOS.
*/
void rtthread_startup(void)
{
/* initialize board */
rt_hw_board_init();
/* show version */
rt_show_version();
#ifdef RT_USING_HEAP
rt_system_heap_init((void *)HEAP_BEGIN, (void *)HEAP_END);
#endif
/* initialize scheduler system */
rt_system_scheduler_init();
/* initialize system timer*/
rt_system_timer_init();
/* initialize application */
rt_application_init();
/* initialize timer thread */
rt_system_timer_thread_init();
/* initialize idle thread */
rt_thread_idle_init();
/* start scheduler */
rt_system_scheduler_start();
/* never reach here */
return ;
}
int main(void)
{
/* disable interrupt first */
rt_hw_interrupt_disable();
/* startup RT-Thread RTOS */
rtthread_startup();
return 0;
}
+153 -180
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -55,7 +55,7 @@ config RT_USING_LWIP
default n
endif
if !RT_LWIP_DHCP
menu "Static IPv4 Address"
config RT_LWIP_IPADDR
string "IPv4: IP address"
default 192.168.1.30
@@ -67,7 +67,7 @@ config RT_USING_LWIP
config RT_LWIP_MSKADDR
string "IPv4: Mask address"
default 255.255.255.0
endif
endmenu
config RT_LWIP_UDP
bool "UDP protocol"