2023-01-07 15:03:21 +08:00
|
|
|
/*
|
2023-01-08 15:26:31 +08:00
|
|
|
* Copyright (c) 2006-2023, RT-Thread Development Team
|
2023-01-07 15:03:21 +08:00
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*/
|
2023-01-07 15:03:21 +08:00
|
|
|
|
|
|
|
#include <rtthread.h>
|
|
|
|
#include <stdio.h>
|
2023-11-25 22:54:24 +08:00
|
|
|
#include <rtdevice.h>
|
2023-01-07 15:03:21 +08:00
|
|
|
|
|
|
|
int main(void)
|
|
|
|
{
|
2023-03-19 14:41:18 +08:00
|
|
|
rt_kprintf("Hello, RISC-V!\n");
|
2023-01-07 15:03:21 +08:00
|
|
|
|
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);
|
|
|
|
|
2023-01-07 15:03:21 +08:00
|
|
|
return 0;
|
2023-01-08 15:26:31 +08:00
|
|
|
}
|