nuclei: Add .gitignore for nuclei bsp

Signed-off-by: Huaqi Fang <578567190@qq.com>
This commit is contained in:
Huaqi Fang 2020-04-03 11:31:01 +08:00
parent 34aaf6aeba
commit 2a9603adcb
5 changed files with 45 additions and 9 deletions

26
bsp/nuclei/.gitignore vendored Normal file
View File

@ -0,0 +1,26 @@
*.i
*.o
*.d
*.elf
*.diss
*.map
*.bin
*.log
.vscode
*.dump
*.verilog
*.swp
*.swo
prebuilt_tools/
setup_config.sh
setup_config.bat
tags
TAGS
TAG
CTAGS
Makefile.local
Makefile.global

View File

@ -11,7 +11,7 @@ CONFIG_RT_ALIGN_SIZE=4
CONFIG_RT_THREAD_PRIORITY_32=y
# CONFIG_RT_THREAD_PRIORITY_256 is not set
CONFIG_RT_THREAD_PRIORITY_MAX=32
CONFIG_RT_TICK_PER_SECOND=100
CONFIG_RT_TICK_PER_SECOND=1000
CONFIG_RT_USING_OVERFLOW_CHECK=y
CONFIG_RT_USING_HOOK=y
CONFIG_RT_USING_IDLE_HOOK=y
@ -22,7 +22,8 @@ CONFIG_RT_TIMER_THREAD_PRIO=4
CONFIG_RT_TIMER_THREAD_STACK_SIZE=512
CONFIG_RT_DEBUG=y
# CONFIG_RT_DEBUG_COLOR is not set
# CONFIG_RT_DEBUG_INIT_CONFIG is not set
CONFIG_RT_DEBUG_INIT_CONFIG=y
CONFIG_RT_DEBUG_INIT=1
# CONFIG_RT_DEBUG_THREAD_CONFIG is not set
# CONFIG_RT_DEBUG_SCHEDULER_CONFIG is not set
# CONFIG_RT_DEBUG_IPC_CONFIG is not set
@ -100,7 +101,7 @@ CONFIG_FINSH_CMD_SIZE=80
# CONFIG_FINSH_USING_AUTH is not set
CONFIG_FINSH_USING_MSH=y
CONFIG_FINSH_USING_MSH_DEFAULT=y
# CONFIG_FINSH_USING_MSH_ONLY is not set
CONFIG_FINSH_USING_MSH_ONLY=y
CONFIG_FINSH_ARG_MAX=10
# end of Command shell

View File

@ -11,10 +11,10 @@
#include <rtthread.h>
#include <rtdevice.h>
#define THREAD_PRIORITY 2
#define THREAD_STACK_SIZE 512
#define THREAD_PRIORITY 20
#define THREAD_STACK_SIZE 396
#define THREAD_TIMESLICE 5
#define THREAD_NUM 20
#define THREAD_NUM 2
/* Align stack when using static thread */
ALIGN(RT_ALIGN_SIZE)
@ -36,9 +36,14 @@ static void thread_entry(void *parameter)
int create_thread_demo(void)
{
int i;
static char tname[9] = "thread";
for (i = 0; i < THREAD_NUM; i ++) {
/* Create static threads */
rt_thread_init(&tid[i], "thread", thread_entry, (void *)i, thread_stack[i],
tname[6] = i/10 + '0';
tname[7] = i%10 + '0';
tname[8] = '\0';
rt_thread_init(&tid[i], tname, thread_entry, (void *)i, thread_stack[i],
THREAD_STACK_SIZE, THREAD_PRIORITY, THREAD_TIMESLICE);
}
@ -57,7 +62,7 @@ int main(void)
create_thread_demo();
while (1) {
rt_kprintf("Main thread count: %d\n", count++);
//rt_kprintf("Main thread count: %d\n", count++);
rt_thread_mdelay(1000);
}
}

View File

@ -17,6 +17,7 @@
#include <drv_usart.h>
#endif
extern void *_end;
extern void *_heap_end;
#define HEAP_BEGIN &_end

View File

@ -9,7 +9,7 @@
#define RT_ALIGN_SIZE 4
#define RT_THREAD_PRIORITY_32
#define RT_THREAD_PRIORITY_MAX 32
#define RT_TICK_PER_SECOND 100
#define RT_TICK_PER_SECOND 1000
#define RT_USING_OVERFLOW_CHECK
#define RT_USING_HOOK
#define RT_USING_IDLE_HOOK
@ -19,6 +19,8 @@
#define RT_TIMER_THREAD_PRIO 4
#define RT_TIMER_THREAD_STACK_SIZE 512
#define RT_DEBUG
#define RT_DEBUG_INIT_CONFIG
#define RT_DEBUG_INIT 1
/* Inter-Thread communication */
@ -70,6 +72,7 @@
#define FINSH_CMD_SIZE 80
#define FINSH_USING_MSH
#define FINSH_USING_MSH_DEFAULT
#define FINSH_USING_MSH_ONLY
#define FINSH_ARG_MAX 10
/* end of Command shell */