rt-thread/bsp/bouffalo_lab/bl808/m0/applications/main.c

26 lines
540 B
C
Raw Normal View History

/*
2023-01-08 15:26:31 +08:00
* Copyright (c) 2006-2023, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2022/12/25 flyingcys first version
2023-11-25 22:54:24 +08:00
* 2023/11/23 flyingcys add wifi driver
*/
#include <rtthread.h>
#include <stdio.h>
2023-11-25 22:54:24 +08:00
#include <rtdevice.h>
int main(void)
{
rt_kprintf("Hello, RISC-V!\n");
2023-11-25 22:54:24 +08:00
/* set wifi work mode */
rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
rt_wlan_set_mode(RT_WLAN_DEVICE_AP_NAME, RT_WLAN_AP);
return 0;
2023-01-08 15:26:31 +08:00
}