update app_start.c

This commit is contained in:
flyingcys 2018-06-13 13:08:53 +08:00
parent 78a92ae102
commit 52c552a1b9
855 changed files with 16 additions and 106855 deletions

View file

@ -11,6 +11,7 @@
#include "build_info.h"
#include <rtthread.h>
#include <wlan_dev.h>
#ifndef RT_MAIN_THREAD_STACK_SIZE
#define RT_MAIN_THREAD_STACK_SIZE 2048
@ -23,6 +24,8 @@ static rt_uint8_t main_stack[RT_MAIN_THREAD_STACK_SIZE];
struct rt_thread main_thread;
#endif
extern int amebaz_wifi_init(rt_wlan_mode_t mode);
/* the system main thread */
void main_thread_entry(void *parameter)
{
@ -34,6 +37,9 @@ void main_thread_entry(void *parameter)
rt_components_init();
#endif
if(amebaz_wifi_init(WIFI_STATION) != RT_EOK)
rt_kprintf("amebaz_wifi_start failed...\n");
/* invoke system main function */
#if defined (__CC_ARM)
$Super$$main(); /* for ARMCC. */

File diff suppressed because it is too large Load diff