application.c 667 字节
Newer Older
B
bernard 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
/*
 * File      : application.c
 * This file is part of RT-Thread RTOS
 * COPYRIGHT (C) 2012, 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
 * 2012-11-20     Bernard    the first version
 */

#include <stdlib.h>
#include <rtthread.h>

wzyy2's avatar
wzyy2 已提交
18 19 20 21
#ifdef RT_USING_GDB
#include <gdb_stub.h>
#endif

B
bernard 已提交
22 23 24 25
int rt_application_init()
{
    /* do component initialization */
    rt_components_init();
26

wzyy2's avatar
wzyy2 已提交
27 28 29 30
#ifdef RT_USING_GDB
    gdb_set_device("uart4");
    gdb_start();
#endif
B
bernard 已提交
31 32 33

    return 0;
}