mirror of
https://github.com/pvvx/RTL00MP3.git
synced 2025-07-31 12:41:06 +00:00
add examples
This commit is contained in:
parent
265d41b6a3
commit
4128624f93
112 changed files with 158017 additions and 0 deletions
14
RTL00_SDKV35a/example_sources/wlan/readme.txt
Normal file
14
RTL00_SDKV35a/example_sources/wlan/readme.txt
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
Example Description
|
||||
|
||||
This example describes how to use wlan interface.
|
||||
|
||||
PIN assignment
|
||||
|
||||
Wlan is natively support and external gpio pin assign is not required.
|
||||
|
||||
User Mamnual
|
||||
|
||||
Detail information for how to use wi-fi can be found in
|
||||
AN0025 Realtek at command
|
||||
|
||||
|
||||
29
RTL00_SDKV35a/example_sources/wlan/src/main.c
Normal file
29
RTL00_SDKV35a/example_sources/wlan/src/main.c
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "diag.h"
|
||||
#include "main.h"
|
||||
|
||||
extern void wlan_netowrk(void);
|
||||
extern void console_init(void);
|
||||
/**
|
||||
* @brief Main program.
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void main(void)
|
||||
{
|
||||
console_init();
|
||||
#if defined(CONFIG_WIFI_NORMAL) && defined(CONFIG_NETWORK)
|
||||
wlan_network();
|
||||
#endif
|
||||
|
||||
|
||||
//3 3)Enable Schedule, Start Kernel
|
||||
#if defined(CONFIG_KERNEL) && !TASK_SCHEDULER_DISABLED
|
||||
#ifdef PLATFORM_FREERTOS
|
||||
vTaskStartScheduler();
|
||||
#endif
|
||||
#else
|
||||
RtlConsolTaskRom(NULL);
|
||||
#endif
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue