mirror of
https://github.com/ADElectronics/RTL00_WEB_WS2812.git
synced 2024-12-05 02:20:28 +00:00
SDK update
This commit is contained in:
parent
7ac60bf6e1
commit
68362feaa1
1153 changed files with 97410 additions and 592771 deletions
Binary file not shown.
BIN
Firmware/.vs/_Firmware/v14/.suo
Normal file
BIN
Firmware/.vs/_Firmware/v14/.suo
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,5 @@
|
|||
===========================================================
|
||||
Compile (Debug)
|
||||
USDK/component/common/api/wifi_api_scan.c
|
||||
===========================================================
|
||||
Link (Debug)
|
||||
===========================================================
|
||||
|
@ -8,15 +7,15 @@
|
|||
Debug/obj/Debug.nmap
|
||||
===========================================================
|
||||
Create image1r (Debug/bin/ram_1.r.bin)
|
||||
b:268438472 s:268438472 e:268446992
|
||||
size 8520
|
||||
b:268438472 s:268438472 e:268446980
|
||||
size 8508
|
||||
append fw head b000
|
||||
copy size 8520
|
||||
copy size 8508
|
||||
===========================================================
|
||||
Create image2ns (Debug/bin/ram_2.ns.bin)
|
||||
b:268460032 s:268460032 e:268723820
|
||||
size 263788
|
||||
copy size 263788
|
||||
b:268460032 s:268460032 e:268723940
|
||||
size 263908
|
||||
copy size 263908
|
||||
===========================================================
|
||||
Create image3 (SDRAM, Debug/bin/sdram.p.bin)
|
||||
30000000 30000000
|
||||
|
@ -25,21 +24,21 @@
|
|||
copy size 0
|
||||
===========================================================
|
||||
Make OTA image (Debug/bin/ota.bin)
|
||||
size = 263820
|
||||
size = 263940
|
||||
|
||||
checksum 1a2dc8a
|
||||
checksum 1a33b63
|
||||
|
||||
===========================================================
|
||||
Create image2p (Debug/bin/ram_2.p.bin)
|
||||
b:268460032 s:268460032 e:268723820
|
||||
size 263788
|
||||
copy size 263788
|
||||
b:268460032 s:268460032 e:268723940
|
||||
size 263908
|
||||
copy size 263908
|
||||
===========================================================
|
||||
Make Flash image (Debug/bin/ram_all.bin)
|
||||
total 44 k, padding data 0, name Debug/bin/ram_all.bin
|
||||
Original size zd
|
||||
Padding size zd
|
||||
-----------------------------------------------------------
|
||||
Image (Debug/bin/ota.bin) size 263824 bytes
|
||||
Image (Debug/bin/ram_all.bin) size 308876 bytes
|
||||
Image (Debug/bin/ota.bin) size 263944 bytes
|
||||
Image (Debug/bin/ram_all.bin) size 308996 bytes
|
||||
===========================================================
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
91733
Firmware/Debug/obj/Debug.asm
Normal file
91733
Firmware/Debug/obj/Debug.asm
Normal file
File diff suppressed because it is too large
Load diff
BIN
Firmware/Debug/obj/Debug.axf
Normal file
BIN
Firmware/Debug/obj/Debug.axf
Normal file
Binary file not shown.
3247
Firmware/Debug/obj/Debug.nmap
Normal file
3247
Firmware/Debug/obj/Debug.nmap
Normal file
File diff suppressed because it is too large
Load diff
1
Firmware/Debug/obj/obj_list.lst
Normal file
1
Firmware/Debug/obj/obj_list.lst
Normal file
File diff suppressed because one or more lines are too long
630
Firmware/Firmware.vcxproj
Normal file
630
Firmware/Firmware.vcxproj
Normal file
|
@ -0,0 +1,630 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ApplicationType>LinuxDebugger</ApplicationType>
|
||||
<SecureShellExecutable>ssh</SecureShellExecutable>
|
||||
<RemoteDebuggerExecutable>gdb</RemoteDebuggerExecutable>
|
||||
<LocalDebuggerExecutable>gdb</LocalDebuggerExecutable>
|
||||
<OCDDebuggerServerAddress>localhost:3333</OCDDebuggerServerAddress>
|
||||
<Keyword>IoT</Keyword>
|
||||
<ProjectGuid>{3D8B16B6-9763-48AD-A514-F45680E8613B}</ProjectGuid>
|
||||
<ProjectName>Firmware</ProjectName>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ItemGroup>
|
||||
<None Include="Assets\LinuxDebugger.xaml" />
|
||||
<None Include="Assets\LocalDebugger.xaml" />
|
||||
<None Include="Assets\OCDDebugger.xaml" />
|
||||
<None Include="Assets\linux_nmake.xaml" />
|
||||
<None Include="makefile" />
|
||||
<None Include="project.mk" />
|
||||
<None Include="$(SDK_PATH)\flasher.mk" />
|
||||
<None Include="$(SDK_PATH)\Makefile" />
|
||||
<None Include="$(SDK_PATH)\paths.mk" />
|
||||
<None Include="$(SDK_PATH)\sdkbuild.mk" />
|
||||
<None Include="$(SDK_PATH)\sdkset.mk" />
|
||||
<None Include="userset.mk" />
|
||||
<None Include="WEBFiles\elements.css" />
|
||||
<None Include="WEBFiles\elements.js" />
|
||||
<None Include="WEBFiles\filters.html" />
|
||||
<None Include="WEBFiles\index.html" />
|
||||
<None Include="WEBFiles\multirange.css" />
|
||||
<None Include="WEBFiles\settings.html" />
|
||||
<None Include="webfs.mk" />
|
||||
</ItemGroup>
|
||||
<!--Import Project="$(MSBuildThisFileDirectory)\Microsoft.cpp.Linux.targets" /-->
|
||||
<!-- To Enable linux debugger -->
|
||||
<PropertyGroup>
|
||||
<UseDefaultDebuggersPropertyPageSchemas>false</UseDefaultDebuggersPropertyPageSchemas>
|
||||
<UseDefaultPropertyPageSchemas>false</UseDefaultPropertyPageSchemas>
|
||||
<_ApplicableDebuggers>Desktop</_ApplicableDebuggers>
|
||||
<DebuggerFlavor>LinuxDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\ProjectItemsSchema.xml" />
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\directories.xml" />
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\debugger_general.xml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\LinuxDebugger.xaml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\LocalDebugger.xaml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\OCDDebugger.xaml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\linux_nmake.xaml" />
|
||||
<!-- project only rules -->
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\general_makefile.xml">
|
||||
<Context>Project</Context>
|
||||
</PropertyPageSchema>
|
||||
<!-- Property sheet only rules -->
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\general_makefile_ps.xml;$(VCTargetsPath)$(LangID)\usermacros.xml">
|
||||
<Context>PropertySheet</Context>
|
||||
</PropertyPageSchema>
|
||||
<!-- File only rules -->
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\general_file.xml">
|
||||
<Context>File</Context>
|
||||
</PropertyPageSchema>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\LinuxDebugger.xaml" />
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\LocalDebugger.xaml" />
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\OCDDebugger.xaml" />
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\linux_nmake.xaml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectCapability Include="Linux" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Project\build_info.h" />
|
||||
<ClInclude Include="Project\feep_config.h" />
|
||||
<ClInclude Include="Project\FreeRTOSConfig.h" />
|
||||
<ClInclude Include="Project\lwipopts.h" />
|
||||
<ClInclude Include="Project\main.h" />
|
||||
<ClInclude Include="Project\platform_autoconf.h" />
|
||||
<ClInclude Include="Project\platform_opts.h" />
|
||||
<ClInclude Include="Project\rtl8195a\c_types.h" />
|
||||
<ClInclude Include="Project\rtl8195a\os.h" />
|
||||
<ClInclude Include="Project\rtl8195a\queue.h" />
|
||||
<ClInclude Include="Project\rtl8195a\rom_wps_os.h" />
|
||||
<ClInclude Include="Project\rtl8195a\rtl_common.h" />
|
||||
<ClInclude Include="Project\rtl8195a\rtl_libc.h" />
|
||||
<ClInclude Include="Project\sys_cfg.h" />
|
||||
<ClInclude Include="Project\tcpsrv\tcp_srv_conn.h" />
|
||||
<ClInclude Include="Project\user_config.h" />
|
||||
<ClInclude Include="Project\webfs\webfs.h" />
|
||||
<ClInclude Include="Project\web\websock.h" />
|
||||
<ClInclude Include="Project\web\web_srv.h" />
|
||||
<ClInclude Include="Project\web\web_srv_int.h" />
|
||||
<ClInclude Include="Project\web\web_utils.h" />
|
||||
<ClInclude Include="Project\web\web_websocket.h" />
|
||||
<ClInclude Include="Project\wifi_user_set.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\lwip_netconf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\sdk_ver.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\rtw_wowlan\wifi_wowlan.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\src\utils\os.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\src\utils\rom\rom_wps_os.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\src\wps\wps_defs.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\wifi_conf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\wifi_ind.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\wifi_simple_config.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\wifi_simple_config_parser.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi\wifi_util.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\api\wifi_interactive_ext.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\autoconf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\byteorder\generic.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\byteorder\little_endian.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\byteorder\swab.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\drv_conf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\drv_types.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\ethernet.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\HalPwrSeqCmd.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\HalVerDef.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_com.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_com_phycfg.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_com_reg.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_intf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_pg.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_phy.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\hal_phy_reg.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\ieee80211.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\if_ether.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\ip.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\lxbus_hal.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\lxbus_ops.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\lxbus_osintf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\pack_begin.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\pack_end.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_aes.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_arc4.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_ieee80211.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_md5.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_rc4.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_rtw_message.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_rtw_message_e.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_rtw_psk.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_rtw_security.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rom_sha1.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtl8195a_hal.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtl8711b_hal.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_ap.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_byteorder.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_cmd.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_debug.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_eeprom.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_efuse.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_event.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_ht.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_intfs.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_io.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_ioctl_set.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_led.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_mlme.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_mlme_ext.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_mp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_p2p.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_promisc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_psk.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_pwrctrl.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_qos.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_recv.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_rf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_security.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\rtw_xmit.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\sta_info.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wifi.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wifi_constants.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wifi_lib.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wifi_structures.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wlan_basic_types.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wlan_bssdef.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\include\wlan_lib.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_spec.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\hci_intfs.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\hci_spec.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\lxbus\lxbus_spec.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_spec.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_intfs.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_recv.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_skbuff.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_xmit.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\freertos\wrapper.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\lwip_intf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\netdev.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\osdep_intf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\skbuff.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\wireless.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\wlan_intf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\analogin_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\analogout_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\can_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\ethernet_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\gpio_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\gpio_irq_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\i2c_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\pinmap.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\port_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\pwmout_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\rtc_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\serial_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\sleep_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\spi_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal\us_ticker_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\dma_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\efuse_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\ethernet_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\flash_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\flash_eep.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\gpio_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\gpio_irq_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\i2c_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\i2s_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\log_uart_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\nfc_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\serial_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\sleep_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\spdio_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\spi_ex_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\sys_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\hal_ext\wdt_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\device.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\gpio_object.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\objects.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\PeripheralNames.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\PinNames.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\PortNames.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\timer_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\port\realtek\freertos\ethernetif.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\port\realtek\freertos\sys_arch.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\autoip.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\icmp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\igmp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\inet.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\inet_chksum.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\ip.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\ip_addr.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip\ip_frag.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\api_msg.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\arch.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\debug.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\def.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\dhcp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\dns.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\err.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\init.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\lwip_timers.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\mem.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\memp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\memp_std.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\netbuf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\netdb.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\netif.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\netifapi.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\opt.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\pbuf.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\raw.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\sio.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\snmp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\snmp_asn1.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\snmp_msg.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\snmp_structs.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\sockets.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\stats.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\sys.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\tcp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\tcpip.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\tcp_impl.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\lwip\udp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\netif\etharp.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\netif\loopif.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\netif\ppp_oe.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\netif\slipif.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\posix\netdb.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\common\network\lwip\src\include\posix\sys\socket.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\os\freertos\freertos_service.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\os\os_dep\include\device_lock.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\os\os_dep\include\osdep_service.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\os\os_dep\include\os_support.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\os\os_dep\include\tcm_heap.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\cmsis.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\cmsis_nvic.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\diag.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\rand.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\rtl_stdlib.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\rtl_utility.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\strproc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\system_8195a.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\va_list.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\bitband_io.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_adc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_common.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_crypto.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_dac.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_diag.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_efuse.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_gdma.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_gpio.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_i2c.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_i2s.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_irqn.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_log_uart.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_mii.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_misc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_nfc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_pcm.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_peri_on.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_pinmux.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_platform.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_pwm.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_sdio.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_sdio_host.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_sdr_controller.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_soc_ps_monitor.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_spi_flash.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_ssi.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_timer.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_uart.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_usb.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_util.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_vector_table.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_adc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_dac.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gdma.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gpio.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gspi.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2c.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2s.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_mii.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_nfc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pcm.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_peri_on.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pwm.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_host.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdr.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_spi_flash.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_ssi.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sys_on.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_timer.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_uart.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_usb.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_wdt.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\rtl_consol.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\rtl_sec.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\freertos_pmu_8195a.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\mailbox.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\osdep_api.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\os_support.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\os_timer.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\include\rtl_bios_data.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\include\rtl_lib.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\include\rtl_rr_libc.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\include\rt_lib_rom.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\common\bsp\basic_types.h" />
|
||||
<ClInclude Include="$(SDK_PATH)\component\soc\realtek\common\bsp\section_config.h" />
|
||||
<ClInclude Include="Project\WS2812\ledeffectsserver.h" />
|
||||
<ClInclude Include="Project\WS2812\ledfilters.h" />
|
||||
<ClInclude Include="Project\WS2812\ws2812.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Project\main.c" />
|
||||
<ClCompile Include="Project\tcpsrv\tcp_srv_conn.c" />
|
||||
<ClCompile Include="Project\user_start.c" />
|
||||
<ClCompile Include="Project\webfs\webfs.c" />
|
||||
<ClCompile Include="Project\web\websock.c" />
|
||||
<ClCompile Include="Project\web\web_auth.c" />
|
||||
<ClCompile Include="Project\web\web_int_callbacks.c" />
|
||||
<ClCompile Include="Project\web\web_int_vars.c" />
|
||||
<ClCompile Include="Project\web\web_srv.c" />
|
||||
<ClCompile Include="Project\web\web_utils.c" />
|
||||
<ClCompile Include="Project\web\web_websocket.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\lwip_netconf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\lwip_netconf1.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\rtw_wowlan\dev_wowlan.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\src\utils\os_freertos.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\wpa_supplicant\wifi_eap_config.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\wpa_supplicant\wifi_p2p_config.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\rtw_wpa_supplicant\wpa_supplicant\wifi_wps_config.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\wifi_conf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\wifi_ind.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\wifi_promisc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\wifi_simple_config.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi\wifi_util.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi_api_scan.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\api\wifi_interactive_mode.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_intf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_io.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_isr.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_drvio.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_intf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_isr.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\lwip_intf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\analogin_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\dma_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\efuse_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\ethernet_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\flash_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\flash_eep.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\gpio_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\gpio_irq_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\i2c_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\i2s_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\log_uart_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\nfc_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\pinmap.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\pinmap_common.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\port_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\pwmout_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\rtc_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\serial_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\sleep.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\spdio_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\spi_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\sys_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\timer_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\us_ticker.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a\wdt_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\port\realtek\freertos\ethernetif.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\port\realtek\freertos\sys_arch.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\api_lib.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\api_msg.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\err.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\netbuf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\netdb.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\netifapi.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\sockets.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\api\tcpip.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\def.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\dhcp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\dns.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\init.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\autoip.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\icmp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\igmp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\inet.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\inet_chksum.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\ip.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\ip_addr.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\ipv4\ip_frag.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\lwip_timers.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\mem.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\memp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\netif.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\pbuf.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\raw.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\snmp\asn1_dec.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\snmp\asn1_enc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\snmp\mib2.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\snmp\mib_structs.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\snmp\msg_in.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\snmp\msg_out.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\stats.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\sys.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\tcp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\tcp_in.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\tcp_out.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\core\udp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\common\network\lwip\src\netif\etharp.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\os\freertos\freertos_service.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\os\os_dep\device_lock.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\os\os_dep\osdep_service.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\os\os_dep\tcm_heap.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\app_start.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\cmsis_nvic.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device\system_8195a.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\bitband_io.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_32k.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_adc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_common.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_dac.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_efuse.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_gdma.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_gpio.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_i2c.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_i2s.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_log_uart.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_mii.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_misc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_nfc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_pcm.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_pinmux.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_pwm.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_sdio_host.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_sdr_controller.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_soc_ps_monitor.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_spi_flash_ram.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_ssi.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_timer.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\hal_uart.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\fw_loader_main.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\hal_misc_v0.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\low_level_io.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\rtl_bios_data.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot_min.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot_ram.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot_tst.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\startup.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\startup_old.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_adc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_dac.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gdma.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gpio.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2c.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2s.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_mii.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_nfc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pcm.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pwm.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_device.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_host.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_host_open.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_ssi.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_timer.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_uart.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\console_hs_uart.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\console_i2c.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\low_level_io.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\rtl_consol.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\driver\rtl_console_new.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\freertos_pmu_8195a.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\mailbox.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\os\osdep_api.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\c_stdio.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\ram_libc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\ram_libgloss_retarget.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\ram_pvvx_libc.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\rtl_eabi_cast_ram.c" />
|
||||
<ClCompile Include="$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\rtl_math_ram.c" />
|
||||
<ClCompile Include="Project\WS2812\ledeffectsserver.c" />
|
||||
<ClCompile Include="Project\WS2812\ledfilters.c" />
|
||||
<ClCompile Include="Project\WS2812\ws2812.c" />
|
||||
</ItemGroup>
|
||||
<!-- To Enable linux debugger End -->
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<NMakeBuildCommandLine>mingw32-make -s -j 10 all</NMakeBuildCommandLine>
|
||||
<IncludePath>C:\RTL\6-2017-q2\arm-none-eabi\include;$(SDK_PATH)\component\common\mbed\targets\hal\rtl8195a;$(SDK_PATH)\component\common\mbed\common;$(SDK_PATH)\component\common\mbed\hal;$(SDK_PATH)\component\common\mbed\hal_ext;$(SDK_PATH)\component\common\mbed\api;$(SDK_PATH)\component\common\api;$(SDK_PATH)\component\common\api\at_cmd;$(SDK_PATH)\component\common\api\network;$(SDK_PATH)\component\common\api\platform;$(SDK_PATH)\component\common\api\wifi\rtw_wowlan;$(SDK_PATH)\component\common\api\wifi;$(SDK_PATH)\component\common\network;$(SDK_PATH)\component\common\network\lwip\port\realtek;$(SDK_PATH)\component\common\network\lwip\port\realtek\arch;$(SDK_PATH)\component\common\network\lwip\port\realtek\freertos;$(SDK_PATH)\component\common\network\lwip\src\api;$(SDK_PATH)\component\common\network\lwip\src\core\ipv4;$(SDK_PATH)\component\common\network\lwip\src\core\snmp;$(SDK_PATH)\component\common\network\lwip\src\core;$(SDK_PATH)\component\common\network\lwip\src\include;$(SDK_PATH)\component\common\network\lwip\src\include\ipv4;$(SDK_PATH)\component\common\network\lwip\src\include\ipv4\lwip;$(SDK_PATH)\component\common\network\lwip\src\include\lwip;$(SDK_PATH)\component\common\network\lwip\src\include\netif;$(SDK_PATH)\component\common\network\lwip\src\include\posix\sys;$(SDK_PATH)\component\common\network\lwip\src\include\posix;$(SDK_PATH)\component\common\network\lwip\src\netif;$(SDK_PATH)\component\common\drivers\wlan\realtek\include;$(SDK_PATH)\component\common\drivers\wlan\realtek\include\byteorder;$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep;$(SDK_PATH)\component\common\drivers\wlan\realtek\src\osdep\freertos;$(SDK_PATH)\component\os\freertos\freertos\Source;$(SDK_PATH)\component\os\freertos\freertos\Source\portable\GCC\ARM_CM3;$(SDK_PATH)\component\os\freertos\freertos\Source\include;$(SDK_PATH)\component\os\freertos;$(SDK_PATH)\component\os\os_dep\include;$(SDK_PATH)\component\os\os_dep;$(SDK_PATH)\component\os\rtx;$(SDK_PATH)\component\soc\realtek\common\bsp;$(SDK_PATH)\component\soc\realtek\8195a\fwlib;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\src;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\rtl8195a\src;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\wlan\realtek\wlan_ram_map\rom;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\usb_otg\include;$(SDK_PATH)\component\soc\realtek\8195a\fwlib\ram_lib\usb_otg\include\usb_otg_inc;$(SDK_PATH)\component\soc\realtek\8195a\cmsis;$(SDK_PATH)\component\soc\realtek\8195a\cmsis\device;$(SDK_PATH)\component\soc\realtek\8195a\misc\driver;$(SDK_PATH)\component\soc\realtek\8195a\misc\platform;$(SDK_PATH)\component\soc\realtek\8195a\misc\os;$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib;$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\include;$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd;$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\libc\rom\string;$(SDK_PATH)\component\soc\realtek\8195a\misc\rtl_std_lib\libgloss\rtl8195a\rom;$(ProjectDir)Project;$(ProjectDir)Project\web;$(ProjectDir)Project\webfs;$(ProjectDir)Project\tcpsrv;$(ProjectDir)Project\driver;$(ProjectDir)Project\rtl8195a;$(ProjectDir)Project\ina219;$(ProjectDir)Project\adc_ws;$(ProjectDir)Project\MPU6050;$(ProjectDir)Project\SSD1306;$(ProjectDir)Project\MLX90614;$(ProjectDir)Project\WS2812;$(IncludePath)</IncludePath>
|
||||
<NMakeReBuildCommandLine>mingw32-make -s -j 10 rebuild</NMakeReBuildCommandLine>
|
||||
<NMakeCleanCommandLine>mingw32-make -s clean</NMakeCleanCommandLine>
|
||||
<NMakeOutput>ram_all.bin</NMakeOutput>
|
||||
<OutDir>$(ProjectDir)Debug\bin\</OutDir>
|
||||
<IntDir>$(ProjectDir)Debug</IntDir>
|
||||
<NMakePreprocessorDefinitions>CONFIG_PLATFORM_8195A=1;GCC_ARMCM3;M3;F_CPU=166666666L;__STDC__;__extension__=</NMakePreprocessorDefinitions>
|
||||
<ExecutablePath>$(PATH)</ExecutablePath>
|
||||
<ReferencePath />
|
||||
<LibraryPath />
|
||||
<LibraryWPath />
|
||||
<ExcludePath>
|
||||
</ExcludePath>
|
||||
<SourcePath>$(SourcePath)</SourcePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<NMakeBuildCommandLine>
|
||||
</NMakeBuildCommandLine>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<BuildLog>
|
||||
<Path>$(ProjectDir)Debug\$(MSBuildProjectName).log</Path>
|
||||
</BuildLog>
|
||||
</ItemDefinitionGroup>
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
1689
Firmware/Firmware.vcxproj.filters
Normal file
1689
Firmware/Firmware.vcxproj.filters
Normal file
File diff suppressed because it is too large
Load diff
|
@ -1,6 +1,6 @@
|
|||
#define UTS_VERSION "2018/01/06-01:09:40"
|
||||
#define RTL8195AFW_COMPILE_TIME "2018/01/06-01:09:41"
|
||||
#define RTL8195AFW_COMPILE_DATE "20180106"
|
||||
#define UTS_VERSION "2018/01/29-16:33:25"
|
||||
#define RTL8195AFW_COMPILE_TIME "2018/01/29-16:33:26"
|
||||
#define RTL8195AFW_COMPILE_DATE "20180129"
|
||||
#define RTL8195AFW_COMPILE_BY "Andrew"
|
||||
#define RTL8195AFW_COMPILE_HOST ""
|
||||
#define RTL8195AFW_COMPILE_DOMAIN
|
Binary file not shown.
Binary file not shown.
|
@ -1,35 +0,0 @@
|
|||
ws_striplen
|
||||
ws_striplen
|
||||
ws_filt_const_hue
|
||||
ws_filt_const_sat
|
||||
ws_filt_const_value
|
||||
ws_filt_rbw_enbl
|
||||
ws_filt_rbw_huesteps
|
||||
ws_filt_rbw_cyclesteps
|
||||
ws_filt_fd_enbl
|
||||
ws_filt_fd_cyclesteps
|
||||
ws_filt_fd_min
|
||||
ws_filt_fd_max
|
||||
ws_filt_fd_chance
|
||||
ws_filt_wave_enbl
|
||||
ws_filt_wave_step
|
||||
ws_filt_wave_wavesteps
|
||||
ws_filt_const_enbl
|
||||
ws_isenable
|
||||
wifi_st_ssid
|
||||
wifi_st_psw
|
||||
wifi_st_ip
|
||||
wifi_ap_ssid
|
||||
wifi_ap_psw
|
||||
wifi_ap_ip
|
||||
wifi_mode
|
||||
wifi_bgn
|
||||
wifi_txpow
|
||||
wifi_st_ssid
|
||||
wifi_st_psw
|
||||
wifi_st_auth
|
||||
wifi_st_ip
|
||||
wifi_ap_ssid
|
||||
wifi_ap_psw
|
||||
wifi_ap_auth
|
||||
wifi_ap_ip
|
File diff suppressed because it is too large
Load diff
Binary file not shown.
File diff suppressed because it is too large
Load diff
File diff suppressed because one or more lines are too long
|
@ -1,628 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<ApplicationType>LinuxDebugger</ApplicationType>
|
||||
<SecureShellExecutable>ssh</SecureShellExecutable>
|
||||
<RemoteDebuggerExecutable>gdb</RemoteDebuggerExecutable>
|
||||
<LocalDebuggerExecutable>gdb</LocalDebuggerExecutable>
|
||||
<OCDDebuggerServerAddress>localhost:3333</OCDDebuggerServerAddress>
|
||||
<Keyword>IoT</Keyword>
|
||||
<ProjectGuid>{3D8B16B6-9763-48AD-A514-F45680E8613B}</ProjectGuid>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Makefile</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v140</PlatformToolset>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<ItemGroup>
|
||||
<None Include="Assets\LinuxDebugger.xaml" />
|
||||
<None Include="Assets\LocalDebugger.xaml" />
|
||||
<None Include="Assets\OCDDebugger.xaml" />
|
||||
<None Include="Assets\linux_nmake.xaml" />
|
||||
<None Include="makefile" />
|
||||
<None Include="project.mk" />
|
||||
<None Include="USDK\flasher.mk" />
|
||||
<None Include="USDK\Makefile" />
|
||||
<None Include="USDK\paths.mk" />
|
||||
<None Include="USDK\sdkbuild.mk" />
|
||||
<None Include="USDK\sdkset.mk" />
|
||||
<None Include="userset.mk" />
|
||||
<None Include="WEBFiles\elements.css" />
|
||||
<None Include="WEBFiles\elements.js" />
|
||||
<None Include="WEBFiles\filters.html" />
|
||||
<None Include="WEBFiles\index.html" />
|
||||
<None Include="WEBFiles\settings.html" />
|
||||
<None Include="webfs.mk" />
|
||||
</ItemGroup>
|
||||
<!--Import Project="$(MSBuildThisFileDirectory)\Microsoft.cpp.Linux.targets" /-->
|
||||
<!-- To Enable linux debugger -->
|
||||
<PropertyGroup>
|
||||
<UseDefaultDebuggersPropertyPageSchemas>false</UseDefaultDebuggersPropertyPageSchemas>
|
||||
<UseDefaultPropertyPageSchemas>false</UseDefaultPropertyPageSchemas>
|
||||
<_ApplicableDebuggers>Desktop</_ApplicableDebuggers>
|
||||
<DebuggerFlavor>LinuxDebugger</DebuggerFlavor>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\ProjectItemsSchema.xml" />
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\directories.xml" />
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\debugger_general.xml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\LinuxDebugger.xaml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\LocalDebugger.xaml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\OCDDebugger.xaml" />
|
||||
<PropertyPageSchema Include="$(MSBuildThisFileDirectory)\Assets\linux_nmake.xaml" />
|
||||
<!-- project only rules -->
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\general_makefile.xml">
|
||||
<Context>Project</Context>
|
||||
</PropertyPageSchema>
|
||||
<!-- Property sheet only rules -->
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\general_makefile_ps.xml;$(VCTargetsPath)$(LangID)\usermacros.xml">
|
||||
<Context>PropertySheet</Context>
|
||||
</PropertyPageSchema>
|
||||
<!-- File only rules -->
|
||||
<PropertyPageSchema Include="$(VCTargetsPath)$(LangID)\general_file.xml">
|
||||
<Context>File</Context>
|
||||
</PropertyPageSchema>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\LinuxDebugger.xaml" />
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\LocalDebugger.xaml" />
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\OCDDebugger.xaml" />
|
||||
<DesktopDebuggerPages Include="$(MSBuildThisFileDirectory)\Assets\linux_nmake.xaml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectCapability Include="Linux" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="Project\build_info.h" />
|
||||
<ClInclude Include="Project\feep_config.h" />
|
||||
<ClInclude Include="Project\FreeRTOSConfig.h" />
|
||||
<ClInclude Include="Project\lwipopts.h" />
|
||||
<ClInclude Include="Project\main.h" />
|
||||
<ClInclude Include="Project\platform_autoconf.h" />
|
||||
<ClInclude Include="Project\platform_opts.h" />
|
||||
<ClInclude Include="Project\rtl8195a\c_types.h" />
|
||||
<ClInclude Include="Project\rtl8195a\os.h" />
|
||||
<ClInclude Include="Project\rtl8195a\queue.h" />
|
||||
<ClInclude Include="Project\rtl8195a\rom_wps_os.h" />
|
||||
<ClInclude Include="Project\rtl8195a\rtl_common.h" />
|
||||
<ClInclude Include="Project\rtl8195a\rtl_libc.h" />
|
||||
<ClInclude Include="Project\sys_cfg.h" />
|
||||
<ClInclude Include="Project\tcpsrv\tcp_srv_conn.h" />
|
||||
<ClInclude Include="Project\user_config.h" />
|
||||
<ClInclude Include="Project\webfs\webfs.h" />
|
||||
<ClInclude Include="Project\web\websock.h" />
|
||||
<ClInclude Include="Project\web\web_srv.h" />
|
||||
<ClInclude Include="Project\web\web_srv_int.h" />
|
||||
<ClInclude Include="Project\web\web_utils.h" />
|
||||
<ClInclude Include="Project\web\web_websocket.h" />
|
||||
<ClInclude Include="Project\wifi_user_set.h" />
|
||||
<ClInclude Include="Project\WS2812\ledeffectsserver.h" />
|
||||
<ClInclude Include="Project\WS2812\ledfilters.h" />
|
||||
<ClInclude Include="Project\WS2812\ws2812.h" />
|
||||
<ClInclude Include="USDK\component\common\api\lwip_netconf.h" />
|
||||
<ClInclude Include="USDK\component\common\api\sdk_ver.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\rtw_wowlan\wifi_wowlan.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\src\utils\os.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\src\utils\rom\rom_wps_os.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\src\wps\wps_defs.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\wifi_conf.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\wifi_ind.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\wifi_simple_config.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\wifi_simple_config_parser.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi\wifi_util.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi_api.h" />
|
||||
<ClInclude Include="USDK\component\common\api\wifi_interactive_ext.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\autoconf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\byteorder\generic.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\byteorder\little_endian.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\byteorder\swab.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\drv_conf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\drv_types.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\ethernet.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\HalPwrSeqCmd.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\HalVerDef.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_com.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_com_phycfg.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_com_reg.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_intf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_pg.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_phy.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\hal_phy_reg.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\ieee80211.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\if_ether.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\ip.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\lxbus_hal.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\lxbus_ops.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\lxbus_osintf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\pack_begin.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\pack_end.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_aes.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_arc4.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_ieee80211.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_md5.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_rc4.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_rtw_message.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_rtw_message_e.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_rtw_psk.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_rtw_security.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rom_sha1.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtl8195a_hal.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtl8711b_hal.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_ap.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_byteorder.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_cmd.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_debug.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_eeprom.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_efuse.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_event.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_ht.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_intfs.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_io.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_ioctl_set.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_led.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_mlme.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_mlme_ext.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_mp.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_p2p.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_promisc.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_psk.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_pwrctrl.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_qos.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_recv.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_rf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_security.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\rtw_xmit.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\sta_info.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wifi.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wifi_constants.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wifi_lib.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wifi_structures.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wlan_basic_types.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wlan_bssdef.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\include\wlan_lib.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_spec.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\hci\hci_intfs.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\hci\hci_spec.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\hci\lxbus\lxbus_spec.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_spec.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_intfs.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_recv.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_skbuff.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\freertos\freertos_xmit.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\freertos\wrapper.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\lwip_intf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\netdev.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\osdep_intf.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\skbuff.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\wireless.h" />
|
||||
<ClInclude Include="USDK\component\common\drivers\wlan\realtek\src\osdep\wlan_intf.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\analogin_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\analogout_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\can_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\ethernet_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\gpio_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\gpio_irq_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\i2c_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\pinmap.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\port_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\pwmout_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\rtc_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\serial_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\sleep_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\spi_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal\us_ticker_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\dma_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\efuse_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\ethernet_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\flash_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\flash_eep.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\gpio_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\gpio_irq_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\i2c_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\i2s_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\log_uart_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\nfc_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\serial_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\sleep_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\spdio_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\spi_ex_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\sys_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\hal_ext\wdt_api.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\device.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\gpio_object.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\objects.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\PeripheralNames.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\PinNames.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\PortNames.h" />
|
||||
<ClInclude Include="USDK\component\common\mbed\targets\hal\rtl8195a\timer_api.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\port\realtek\freertos\ethernetif.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\port\realtek\freertos\sys_arch.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\autoip.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\icmp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\igmp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\inet.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\inet_chksum.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\ip.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\ip_addr.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\ipv4\lwip\ip_frag.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\api.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\api_msg.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\arch.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\debug.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\def.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\dhcp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\dns.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\err.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\init.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\lwip_timers.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\mem.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\memp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\memp_std.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\netbuf.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\netdb.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\netif.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\netifapi.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\opt.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\pbuf.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\raw.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\sio.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\snmp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\snmp_asn1.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\snmp_msg.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\snmp_structs.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\sockets.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\stats.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\sys.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\tcp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\tcpip.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\tcp_impl.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\lwip\udp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\netif\etharp.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\netif\loopif.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\netif\ppp_oe.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\netif\slipif.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\posix\netdb.h" />
|
||||
<ClInclude Include="USDK\component\common\network\lwip\src\include\posix\sys\socket.h" />
|
||||
<ClInclude Include="USDK\component\os\freertos\freertos_service.h" />
|
||||
<ClInclude Include="USDK\component\os\os_dep\include\device_lock.h" />
|
||||
<ClInclude Include="USDK\component\os\os_dep\include\osdep_service.h" />
|
||||
<ClInclude Include="USDK\component\os\os_dep\include\os_support.h" />
|
||||
<ClInclude Include="USDK\component\os\os_dep\include\tcm_heap.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\cmsis.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\cmsis_nvic.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\diag.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\rand.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\rtl_stdlib.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\rtl_utility.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\strproc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\system_8195a.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\cmsis\device\va_list.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\bitband_io.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_adc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_api.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_common.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_crypto.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_dac.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_diag.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_efuse.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_gdma.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_gpio.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_i2c.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_i2s.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_irqn.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_log_uart.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_mii.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_misc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_nfc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_pcm.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_peri_on.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_pinmux.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_platform.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_pwm.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_sdio.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_sdio_host.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_sdr_controller.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_soc_ps_monitor.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_spi_flash.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_ssi.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_timer.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_uart.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_usb.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_util.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\hal_vector_table.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_adc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_dac.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gdma.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gpio.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gspi.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2c.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2s.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_mii.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_nfc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pcm.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_peri_on.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pwm.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_host.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdr.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_spi_flash.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_ssi.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sys_on.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_timer.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_uart.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_usb.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_wdt.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\driver\rtl_consol.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\driver\rtl_sec.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\os\freertos_pmu_8195a.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\os\mailbox.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\os\osdep_api.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\os\os_support.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\os\os_timer.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\include\rtl_bios_data.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\include\rtl_lib.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\include\rtl_rr_libc.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\include\rt_lib_rom.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\common\bsp\basic_types.h" />
|
||||
<ClInclude Include="USDK\component\soc\realtek\common\bsp\section_config.h" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Project\main.c" />
|
||||
<ClCompile Include="Project\tcpsrv\tcp_srv_conn.c" />
|
||||
<ClCompile Include="Project\user_start.c" />
|
||||
<ClCompile Include="Project\webfs\webfs.c" />
|
||||
<ClCompile Include="Project\web\websock.c" />
|
||||
<ClCompile Include="Project\web\web_auth.c" />
|
||||
<ClCompile Include="Project\web\web_int_callbacks.c" />
|
||||
<ClCompile Include="Project\web\web_int_vars.c" />
|
||||
<ClCompile Include="Project\web\web_srv.c" />
|
||||
<ClCompile Include="Project\web\web_utils.c" />
|
||||
<ClCompile Include="Project\web\web_websocket.c" />
|
||||
<ClCompile Include="Project\WS2812\ledeffectsserver.c" />
|
||||
<ClCompile Include="Project\WS2812\ledfilters.c" />
|
||||
<ClCompile Include="Project\WS2812\ws2812.c" />
|
||||
<ClCompile Include="USDK\component\common\api\lwip_netconf.c" />
|
||||
<ClCompile Include="USDK\component\common\api\lwip_netconf1.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\rtw_wowlan\dev_wowlan.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\src\utils\os_freertos.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\wpa_supplicant\wifi_eap_config.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\wpa_supplicant\wifi_p2p_config.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\rtw_wpa_supplicant\wpa_supplicant\wifi_wps_config.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\wifi_conf.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\wifi_ind.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\wifi_promisc.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\wifi_simple_config.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi\wifi_util.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi_api.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi_api_scan.c" />
|
||||
<ClCompile Include="USDK\component\common\api\wifi_interactive_mode.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_intf.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_io.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\hci\gspi\gspi_isr.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_drvio.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_intf.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\hci\sdio\sdio_isr.c" />
|
||||
<ClCompile Include="USDK\component\common\drivers\wlan\realtek\src\osdep\lwip_intf.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\analogin_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\dma_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\efuse_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\ethernet_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\flash_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\flash_eep.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\gpio_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\gpio_irq_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\i2c_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\i2s_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\log_uart_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\nfc_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\pinmap.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\pinmap_common.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\port_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\pwmout_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\rtc_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\serial_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\sleep.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\spdio_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\spi_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\sys_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\timer_api.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\us_ticker.c" />
|
||||
<ClCompile Include="USDK\component\common\mbed\targets\hal\rtl8195a\wdt_api.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\port\realtek\freertos\ethernetif.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\port\realtek\freertos\sys_arch.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\api_lib.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\api_msg.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\err.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\netbuf.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\netdb.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\netifapi.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\sockets.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\api\tcpip.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\def.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\dhcp.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\dns.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\init.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\autoip.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\icmp.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\igmp.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\inet.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\inet_chksum.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\ip.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\ip_addr.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\ipv4\ip_frag.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\lwip_timers.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\mem.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\memp.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\netif.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\pbuf.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\raw.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\snmp\asn1_dec.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\snmp\asn1_enc.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\snmp\mib2.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\snmp\mib_structs.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\snmp\msg_in.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\snmp\msg_out.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\stats.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\sys.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\tcp.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\tcp_in.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\tcp_out.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\core\udp.c" />
|
||||
<ClCompile Include="USDK\component\common\network\lwip\src\netif\etharp.c" />
|
||||
<ClCompile Include="USDK\component\os\freertos\freertos_service.c" />
|
||||
<ClCompile Include="USDK\component\os\os_dep\device_lock.c" />
|
||||
<ClCompile Include="USDK\component\os\os_dep\osdep_service.c" />
|
||||
<ClCompile Include="USDK\component\os\os_dep\tcm_heap.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\cmsis\device\app_start.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\cmsis\device\cmsis_nvic.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\cmsis\device\system_8195a.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\bitband_io.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_32k.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_adc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_common.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_dac.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_efuse.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_gdma.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_gpio.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_i2c.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_i2s.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_log_uart.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_mii.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_misc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_nfc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_pcm.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_pinmux.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_pwm.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_sdio_host.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_sdr_controller.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_soc_ps_monitor.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_spi_flash_ram.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_ssi.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_timer.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\hal_uart.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\fw_loader_main.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\hal_misc_v0.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\low_level_io.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\rtl_bios_data.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot_min.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot_ram.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\rtl_boot_tst.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\startup.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\ram_lib\startup_old.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_adc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_dac.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gdma.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_gpio.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2c.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_i2s.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_mii.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_nfc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pcm.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_pwm.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_device.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_host.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_sdio_host_open.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_ssi.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_timer.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\fwlib\rtl8195a\rtl8195a_uart.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\driver\console_hs_uart.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\driver\console_i2c.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\driver\low_level_io.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\driver\rtl_consol.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\driver\rtl_console_new.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\os\freertos_pmu_8195a.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\os\mailbox.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\os\osdep_api.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\c_stdio.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\ram_libc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\ram_libgloss_retarget.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\ram_pvvx_libc.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\rtl_eabi_cast_ram.c" />
|
||||
<ClCompile Include="USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd\rtl_math_ram.c" />
|
||||
</ItemGroup>
|
||||
<!-- To Enable linux debugger End -->
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<NMakeBuildCommandLine>mingw32-make -s -j 6 all</NMakeBuildCommandLine>
|
||||
<IncludePath>C:\RTL\6-2017-q2\arm-none-eabi\include;$(ProjectDir)USDK\component\common\mbed\targets\hal\rtl8195a;$(ProjectDir)USDK\component\common\mbed\common;$(ProjectDir)USDK\component\common\mbed\hal;$(ProjectDir)USDK\component\common\mbed\hal_ext;$(ProjectDir)USDK\component\common\mbed\api;$(ProjectDir)USDK\component\common\api;$(ProjectDir)USDK\component\common\api\at_cmd;$(ProjectDir)USDK\component\common\api\network;$(ProjectDir)USDK\component\common\api\platform;$(ProjectDir)USDK\component\common\api\wifi\rtw_wowlan;$(ProjectDir)USDK\component\common\api\wifi;$(ProjectDir)USDK\component\common\network;$(ProjectDir)USDK\component\common\network\lwip\port\realtek;$(ProjectDir)USDK\component\common\network\lwip\port\realtek\arch;$(ProjectDir)USDK\component\common\network\lwip\port\realtek\freertos;$(ProjectDir)USDK\component\common\network\lwip\src\api;$(ProjectDir)USDK\component\common\network\lwip\src\core\ipv4;$(ProjectDir)USDK\component\common\network\lwip\src\core\snmp;$(ProjectDir)USDK\component\common\network\lwip\src\core;$(ProjectDir)USDK\component\common\network\lwip\src\include;$(ProjectDir)USDK\component\common\network\lwip\src\include\ipv4;$(ProjectDir)USDK\component\common\network\lwip\src\include\ipv4\lwip;$(ProjectDir)USDK\component\common\network\lwip\src\include\lwip;$(ProjectDir)USDK\component\common\network\lwip\src\include\netif;$(ProjectDir)USDK\component\common\network\lwip\src\include\posix\sys;$(ProjectDir)USDK\component\common\network\lwip\src\include\posix;$(ProjectDir)USDK\component\common\network\lwip\src\netif;$(ProjectDir)USDK\component\common\drivers\wlan\realtek\include;$(ProjectDir)USDK\component\common\drivers\wlan\realtek\include\byteorder;$(ProjectDir)USDK\component\common\drivers\wlan\realtek\src\osdep;$(ProjectDir)USDK\component\common\drivers\wlan\realtek\src\osdep\freertos;$(ProjectDir)USDK\component\os\freertos\freertos\Source;$(ProjectDir)USDK\component\os\freertos\freertos\Source\portable\GCC\ARM_CM3;$(ProjectDir)USDK\component\os\freertos\freertos\Source\include;$(ProjectDir)USDK\component\os\freertos;$(ProjectDir)USDK\component\os\os_dep\include;$(ProjectDir)USDK\component\os\os_dep;$(ProjectDir)USDK\component\os\rtx;$(ProjectDir)USDK\component\soc\realtek\common\bsp;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\src;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\rtl8195a;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\rtl8195a\src;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\ram_lib;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\ram_lib\wlan\realtek\wlan_ram_map\rom;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\ram_lib\usb_otg\include;$(ProjectDir)USDK\component\soc\realtek\8195a\fwlib\ram_lib\usb_otg\include\usb_otg_inc;$(ProjectDir)USDK\component\soc\realtek\8195a\cmsis;$(ProjectDir)USDK\component\soc\realtek\8195a\cmsis\device;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\driver;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\platform;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\os;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\rtl_std_lib;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\rtl_std_lib\include;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\rtl_std_lib\lib_rtlstd;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\rtl_std_lib\libc\rom\string;$(ProjectDir)USDK\component\soc\realtek\8195a\misc\rtl_std_lib\libgloss\rtl8195a\rom;$(ProjectDir)Project;$(ProjectDir)Project\web;$(ProjectDir)Project\webfs;$(ProjectDir)Project\tcpsrv;$(ProjectDir)Project\driver;$(ProjectDir)Project\rtl8195a;$(ProjectDir)Project\ina219;$(ProjectDir)Project\adc_ws;$(ProjectDir)Project\MPU6050;$(ProjectDir)Project\SSD1306;$(ProjectDir)Project\MLX90614;$(ProjectDir)Project\WS2812;$(ProjectDir)Project\WEBFiles;$(IncludePath)</IncludePath>
|
||||
<NMakeReBuildCommandLine>mingw32-make -s -j 6 rebuild</NMakeReBuildCommandLine>
|
||||
<NMakeCleanCommandLine>mingw32-make -s clean</NMakeCleanCommandLine>
|
||||
<NMakeOutput>ram_all.bin</NMakeOutput>
|
||||
<OutDir>$(ProjectDir)Debug\bin\</OutDir>
|
||||
<IntDir>$(ProjectDir)Debug</IntDir>
|
||||
<NMakePreprocessorDefinitions>CONFIG_PLATFORM_8195A=1;GCC_ARMCM3;M3;F_CPU=166666666L;__STDC__;__extension__=</NMakePreprocessorDefinitions>
|
||||
<ExecutablePath>$(PATH)</ExecutablePath>
|
||||
<ReferencePath />
|
||||
<LibraryPath />
|
||||
<LibraryWPath />
|
||||
<ExcludePath>
|
||||
</ExcludePath>
|
||||
<SourcePath>$(SourcePath)</SourcePath>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<NMakeBuildCommandLine>
|
||||
</NMakeBuildCommandLine>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<BuildLog>
|
||||
<Path>$(ProjectDir)Debug\$(MSBuildProjectName).log</Path>
|
||||
</BuildLog>
|
||||
</ItemDefinitionGroup>
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
File diff suppressed because it is too large
Load diff
|
@ -1,60 +0,0 @@
|
|||
include userset.mk
|
||||
|
||||
all: ram_all
|
||||
mp: ram_all_mp
|
||||
|
||||
.PHONY: ram_all
|
||||
ram_all:
|
||||
@$(MAKE) -f $(SDK_PATH)sdkbuild.mk
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk genbin1 genbin23
|
||||
|
||||
.PHONY: ram_all_mp
|
||||
ram_all_mp:
|
||||
@$(MAKE) -f $(SDK_PATH)sdkbuild.mk mp
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk mp
|
||||
|
||||
.PHONY: clean clean_all
|
||||
clean:
|
||||
@$(MAKE) -f $(SDK_PATH)sdkbuild.mk clean
|
||||
|
||||
clean_all:
|
||||
@$(MAKE) -f $(SDK_PATH)sdkbuild.mk clean_all
|
||||
|
||||
.PHONY: flashburn runram reset test readfullflash flashwebfs flashboot
|
||||
flashboot:
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk flashboot
|
||||
|
||||
flashburn:
|
||||
#JLinkGDB-WrFlash.bat
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk flashburn
|
||||
|
||||
flash_OTA:
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk flash_OTA
|
||||
|
||||
webfs:
|
||||
@$(MAKE) -f webfs.mk
|
||||
|
||||
flashwebfs:
|
||||
@$(MAKE) -f webfs.mk
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk flashwebfs
|
||||
#JLinkGDB-WrWebFs.bat
|
||||
|
||||
runram:
|
||||
#JLink-RunRAM.bat
|
||||
@$(MAKE) --f $(SDK_PATH)flasher.mk runram
|
||||
|
||||
runsdram:
|
||||
#JLink-RunRAM.bat
|
||||
@$(MAKE) --f $(SDK_PATH)flasher.mk runsdram
|
||||
|
||||
reset:
|
||||
#JLink-Reset.bat
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk reset
|
||||
|
||||
test:
|
||||
JLink-RTL00ConsoleROM.bat
|
||||
#@make -f flasher.mk test
|
||||
|
||||
readfullflash:
|
||||
#JLink-RdFullFlash.bat
|
||||
@$(MAKE) -f $(SDK_PATH)flasher.mk readfullflash
|
|
@ -1,175 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include "log_service.h"
|
||||
#include "cmsis_os.h"
|
||||
#include <platform/platform_stdlib.h>
|
||||
|
||||
#if CONFIG_JOYLINK
|
||||
#if 1
|
||||
void fATCJ(void *arg)
|
||||
{
|
||||
extern void joylink_erase(void);
|
||||
printf("\r\n[ATCJ] Erase wifi and joylink info.");
|
||||
if(arg){
|
||||
printf("\r\n[ATCJ]Usage : ATCJ");
|
||||
return;
|
||||
}
|
||||
joylink_erase();
|
||||
}
|
||||
#else
|
||||
void fATCJ(void *arg)
|
||||
{
|
||||
extern void cmd_jd_smart(int argc, char **argv);
|
||||
int argc;
|
||||
char *argv[MAX_ARGC] = {0};
|
||||
printf("[ATCJ]:simple config command for jdsmart\n\r");
|
||||
if(!arg){
|
||||
printf("[ATCJ]Usage: ATCJ=simple_config\n\r");
|
||||
return;
|
||||
}
|
||||
argv[0] = "simple_config";
|
||||
if((argc = parse_param(arg, argv)) > 1){
|
||||
cmd_jd_smart(argc, argv);
|
||||
}
|
||||
else
|
||||
printf("[ATCJ]Usage: ATCJ=simple_config\n\r");
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
#if CONFIG_GAGENT
|
||||
void fATCG(void *arg)
|
||||
{
|
||||
example_gagent();
|
||||
}
|
||||
void fATCE(void *arg)
|
||||
{//Erase gagent config flash
|
||||
extern int GAgent_DevEraseConfigData();
|
||||
GAgent_DevEraseConfigData();
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_QQ_LINK
|
||||
void fATCQ(void *arg)
|
||||
{
|
||||
int argc;
|
||||
unsigned char *argv[MAX_ARGC] = {0};
|
||||
extern void device_write_sn_license(int argc, unsigned char **argv);
|
||||
extern void device_erase_all(int argc, unsigned char **argv);
|
||||
|
||||
if(!arg)
|
||||
{
|
||||
printf("\r\n[ATCQ] Write sn/license into flash or Erase all info\r\n");
|
||||
printf("\r\n[ATCQ] Usage: ATCQ=erase");
|
||||
printf("\r\n[ATCQ] Usage: ATCQ=sn,xxxxxxxx\r\n ATCQ=licensepart1,xxxxxxxx\r\n ATCQ=licensepart2,xxxxxxxx");
|
||||
return;
|
||||
}
|
||||
argv[0] = "sn&&license&&erase";
|
||||
argc = parse_param(arg, argv);
|
||||
if(argc == 3) // Write sn&&license
|
||||
{
|
||||
device_write_sn_license(argc, argv);
|
||||
}
|
||||
else if(argc == 2) // Erase all info : ATCQ=erase
|
||||
{
|
||||
device_erase_all(argc, argv);
|
||||
}
|
||||
else
|
||||
{
|
||||
printf("\r\n[ATCQ] Usage: ATCQ=erase");
|
||||
printf("\r\n[ATCQ]Usage: ATCQ=sn,xxxxxxxx\r\n ATCQ=licensepart1,xxxxxxxx\r\n ATCQ=licensepart2,xxxxxxxx");
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_AIRKISS_CLOUD
|
||||
void fATCW(void *arg)
|
||||
{
|
||||
int argc;
|
||||
unsigned char *argv[MAX_ARGC] = {0};
|
||||
extern void airkiss_cloud_write_device_info(int argc, unsigned char **argv);
|
||||
extern void airkiss_cloud_erase_ap_profile(int argc, unsigned char **argv);
|
||||
|
||||
if(!arg) goto USAGE;
|
||||
|
||||
argv[0] = "type/id/licese/erase";
|
||||
argc = parse_param(arg, argv);
|
||||
if(argc == 3) // Write typw/id/license
|
||||
{
|
||||
airkiss_cloud_write_device_info(argc, argv);
|
||||
return;
|
||||
}
|
||||
else if(argc == 2) // Erase wifi profile : ATCW=erase
|
||||
{
|
||||
airkiss_cloud_erase_ap_profile(argc, argv);
|
||||
return;
|
||||
}
|
||||
else
|
||||
goto USAGE;
|
||||
|
||||
USAGE:
|
||||
printf("\r\n[ATCW] Write ORDERLY device's type/id/license into flash or Erase wifi profile");
|
||||
printf("\r\n[ATCW] Usage: ATCW=type,xxxxxxxx");
|
||||
printf("\r\n[ATCW] Usage: ATCW=id,xxxxxxxx");
|
||||
printf("\r\n[ATCW] Usage: ATCW=licensepart1,xxxxxxxx\t(80-Byte long)");
|
||||
printf("\r\n[ATCW] Usage: ATCW=licensepart2,xxxxxxxx\t(80-Byte long)");
|
||||
printf("\r\n[ATCW] Usage: ATCW=erase");
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_ALINK
|
||||
extern void example_alink(void);
|
||||
extern int alink_erase_wifi_config();
|
||||
extern void alink_reset_to_factory(void *arg);
|
||||
|
||||
void fATCA(void *arg)
|
||||
{
|
||||
example_alink();
|
||||
}
|
||||
|
||||
void fATCZ(void *arg)
|
||||
{
|
||||
//Erase alink config flash
|
||||
alink_erase_wifi_config();
|
||||
}
|
||||
|
||||
void fATCT(void *arg)
|
||||
{
|
||||
alink_reset_to_factory(NULL);
|
||||
}
|
||||
#endif
|
||||
|
||||
void fATCx(void *arg)
|
||||
{
|
||||
}
|
||||
|
||||
log_item_t at_cloud_items[ ] = {
|
||||
#if CONFIG_JOYLINK
|
||||
{"ATCJ", fATCJ,},
|
||||
#endif
|
||||
#if CONFIG_GAGENT
|
||||
{"ATCG", fATCG,},
|
||||
{"ATCE", fATCE,},
|
||||
#endif
|
||||
#if CONFIG_QQ_LINK
|
||||
{"ATCQ", fATCQ,},
|
||||
#endif
|
||||
#if CONFIG_AIRKISS_CLOUD
|
||||
{"ATCW", fATCW},
|
||||
#endif
|
||||
#if CONFIG_ALINK
|
||||
{"ATCA", fATCA,},
|
||||
{"ATCZ", fATCZ,},
|
||||
{"ATCT", fATCT,},
|
||||
#endif
|
||||
{"ATC?", fATCx,},
|
||||
};
|
||||
void at_cloud_init(void)
|
||||
{
|
||||
log_service_add_table(at_cloud_items, sizeof(at_cloud_items)/sizeof(at_cloud_items[0]));
|
||||
}
|
||||
|
||||
#if SUPPORT_LOG_SERVICE
|
||||
log_module_init(at_cloud_init);
|
||||
#endif
|
|
@ -1,91 +0,0 @@
|
|||
#include <stdio.h>
|
||||
#include "log_service.h"
|
||||
#include "platform_opts.h"
|
||||
#include <lwip_netconf.h>
|
||||
#include "cmsis_os.h"
|
||||
#include <platform/platform_stdlib.h>
|
||||
#include <lwip/sockets.h>
|
||||
#include <lwip/tcpip.h>
|
||||
|
||||
|
||||
#define _AT_DHCP_ETHERNET_MII_ "ATE0"
|
||||
#define _AT_SET_DEFAULT_INTERFACE "ATE1"
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
extern int dhcp_ethernet_mii;
|
||||
extern int ethernet_if_default;
|
||||
extern struct netif xnetif[NET_IF_NUM];
|
||||
|
||||
void fATE0(void *arg)
|
||||
{
|
||||
int argc;
|
||||
char *argv[MAX_ARGC] = {0};
|
||||
printf("[ATE0]:DHCP configure for ethernet\n\r");
|
||||
if(!arg){
|
||||
printf("[ATE0]Usage to disable DHCP: ATE0=0\n");
|
||||
printf("[ATE0]Usage to enable DHCP: ATE0=1\n");
|
||||
return;
|
||||
}
|
||||
if('0' == *(char *)arg)
|
||||
{
|
||||
dhcp_ethernet_mii = 0;
|
||||
}
|
||||
|
||||
else if('1' == *(char *)arg)
|
||||
{
|
||||
dhcp_ethernet_mii = 1;
|
||||
LwIP_DHCP(NET_IF_NUM - 1, DHCP_START);
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
printf("[ATE0]Usage to disable DHCP: ATE0=0\n");
|
||||
printf("[ATE0]Usage to enable DHCP: ATE0=1\n");
|
||||
}
|
||||
}
|
||||
|
||||
void fATE1(void *arg)
|
||||
{
|
||||
int argc;
|
||||
char *argv[MAX_ARGC] = {0};
|
||||
printf("[ATE1]:Set/check the default interface\n\r");
|
||||
if(!arg){
|
||||
if(ethernet_if_default)
|
||||
printf("Ethernet is the default interface\n");
|
||||
else
|
||||
printf("wlan is the default interface\n");
|
||||
return;
|
||||
}
|
||||
if('0' == *(char *)arg)
|
||||
{
|
||||
ethernet_if_default = 0;
|
||||
printf("wlan is set to the default interface\n");
|
||||
}
|
||||
|
||||
else if('1' == *(char *)arg)
|
||||
{
|
||||
ethernet_if_default = 1;
|
||||
printf("ethernet is set to the default interface\n");
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
printf("[ATE0]Usage to check the default interface: ATE1\n");
|
||||
printf("[ATE0]Usage to set ethernet as default interface: ATE1=1\n");
|
||||
printf("[ATE0]Usage to set wlan as default interface: ATE1=0\n");
|
||||
}
|
||||
}
|
||||
|
||||
log_item_t at_ethernet_items[ ] = {
|
||||
{"ATE0", fATE0,},
|
||||
{"ATE1", fATE1,}
|
||||
};
|
||||
|
||||
void at_ethernet_init(void)
|
||||
{
|
||||
log_service_add_table(at_ethernet_items, sizeof(at_ethernet_items)/sizeof(at_ethernet_items[0]));
|
||||
}
|
||||
|
||||
log_module_init(at_ethernet_init);
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load diff
|
@ -1,100 +0,0 @@
|
|||
#ifndef __ATCMD_LWIP_H__
|
||||
#define __ATCMD_LWIP_H__
|
||||
|
||||
#include <platform_opts.h>
|
||||
#ifdef CONFIG_AT_LWIP
|
||||
|
||||
#include "main.h"
|
||||
#include <lwip/opt.h>
|
||||
#include "lwip/sockets.h"
|
||||
#include "lwip/api.h"
|
||||
#include "lwip/sys.h"
|
||||
#include "lwip/igmp.h"
|
||||
#include "lwip/inet.h"
|
||||
#include "lwip/tcp.h"
|
||||
#include "lwip/raw.h"
|
||||
#include "lwip/udp.h"
|
||||
#include "lwip/tcpip.h"
|
||||
#include "lwip/pbuf.h"
|
||||
#include "lwip/netdb.h"
|
||||
#include "lwip_netconf.h"
|
||||
|
||||
|
||||
#define _AT_TRANSPORT_MODE_ "ATP1"
|
||||
#define _AT_TRANSPORT_LOCAL_PORT_ "ATP2"
|
||||
#define _AT_TRANSPORT_REMOTE_IP_ "ATP3"
|
||||
#define _AT_TRANSPORT_REMOTE_PORT_ "ATP4"
|
||||
#define _AT_TRANSPORT_START_SERVER_ "ATP5"
|
||||
#define _AT_TRANSPORT_START_CLIENT_ "ATP6"
|
||||
#define _AT_TRANSPORT_SHOW_SETTING_ "ATP?"
|
||||
#define _AT_TRANSPORT_RECEIVE_DATA_ "ATR0"
|
||||
#define _AT_TRANSPORT_RECEIVE_PACKET_SIZE_ "ATR1"
|
||||
#define _AT_TRANSPORT_WRITE_DATA_ "ATRA"
|
||||
#define _AT_TRANSPORT_WRITE_PACKET_SIZE_ "ATRB"
|
||||
|
||||
#define NODE_MODE_TCP 0
|
||||
#define NODE_MODE_UDP 1
|
||||
|
||||
#define NODE_ROLE_SERVER 0
|
||||
#define NODE_ROLE_CLIENT 1
|
||||
#define NODE_ROLE_SEED 2
|
||||
|
||||
#define INVALID_SOCKET_ID (-1)
|
||||
|
||||
//parameters
|
||||
#ifndef NET_IF_NUM
|
||||
#define NET_IF_NUM 2
|
||||
#endif
|
||||
|
||||
#define ATCMD_LWIP_TASK_PRIORITY (tskIDLE_PRIORITY + 1)
|
||||
|
||||
#if ATCMD_VER == ATVER_2
|
||||
|
||||
#define SERVER "127.0.0.1"
|
||||
|
||||
#define NUM_NS (MEMP_NUM_NETCONN) //maximum number of node and seed, same as NUM_SOCKETS
|
||||
|
||||
#define ETH_MAX_MTU 1500
|
||||
|
||||
#define INVALID_CON_ID (-1)
|
||||
|
||||
#define RECV_SELECT_TIMEOUT_SEC (0)
|
||||
#define RECV_SELECT_TIMEOUT_USEC (20000) //20ms
|
||||
|
||||
typedef struct ns
|
||||
{
|
||||
int con_id;
|
||||
int sockfd;
|
||||
s8_t role;
|
||||
int protocol;
|
||||
u32_t addr;
|
||||
u16_t port;
|
||||
u32_t local_addr;
|
||||
u16_t local_port;
|
||||
xTaskHandle handletask;
|
||||
struct ns* next;
|
||||
struct ns* nextseed;
|
||||
} node;
|
||||
|
||||
extern xTaskHandle atcmd_lwip_tt_task;
|
||||
extern xSemaphoreHandle atcmd_lwip_tt_sema;
|
||||
extern volatile int atcmd_lwip_tt_datasize;
|
||||
extern volatile int atcmd_lwip_tt_lasttickcnt;
|
||||
#define ATCMD_LWIP_TT_MAX_DELAY_TIME_MS (20) //transparent transmission interval
|
||||
|
||||
extern int atcmd_lwip_is_tt_mode(void);
|
||||
extern void atcmd_lwip_set_tt_mode(int enable);
|
||||
int atcmd_lwip_send_data(node *curnode, u8 *data, u16 data_sz, struct sockaddr_in cli_addr);
|
||||
int atcmd_lwip_receive_data(node *curnode, u8 *buffer, u16 buffer_size, int *recv_size,
|
||||
u8_t *udp_clientaddr, u16_t *udp_clientport);
|
||||
node* create_node(int mode, s8_t role);
|
||||
void init_node_pool(void);
|
||||
void delete_node(node *n);
|
||||
int hang_node(node* insert_node);
|
||||
int hang_seednode(node* main_node ,node* insert_node);
|
||||
node *seek_node(int con_id);
|
||||
node *tryget_node(int n);
|
||||
#endif
|
||||
|
||||
#endif //#ifdef CONFIG_AT_LWIP
|
||||
#endif //#ifndef __ATCMD_LWIP_H__
|
|
@ -1,195 +0,0 @@
|
|||
#include <platform_stdlib.h>
|
||||
#include <platform_opts.h>
|
||||
#include <gpio_api.h>
|
||||
#include "log_service.h"
|
||||
#include "atcmd_mp.h"
|
||||
|
||||
#if CONFIG_ATCMD_MP_EXT0
|
||||
extern void fATM0(void *arg); // MP ext0 AT command
|
||||
#endif
|
||||
|
||||
#if CONFIG_ATCMD_MP
|
||||
//-------- AT MP commands ---------------------------------------------------------------
|
||||
void fATMG(void *arg)
|
||||
{
|
||||
gpio_t gpio_test;
|
||||
int argc = 0, val, cnts, i, write=0, data=0;
|
||||
char *argv[MAX_ARGC] = {0}, port, num;
|
||||
PinName pin = NC;
|
||||
u32 tConfigDebugInfo = ConfigDebugInfo;
|
||||
|
||||
AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "[ATMG]: _AT_MP_GPIO_TEST_");
|
||||
if(!arg){
|
||||
AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "[ATMG] Usage: ATSG=w,PINNAMES(ex:A0B1C2...),VALUE(0/1)");
|
||||
AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "[ATMG] Usage: ATSG=r,PINNAMES(ex:A0B1C2...)");
|
||||
return;
|
||||
}
|
||||
|
||||
argc = parse_param(arg, argv);
|
||||
cnts = strlen(argv[2]);
|
||||
if(cnts % 2) return;
|
||||
cnts /= 2;
|
||||
if(cnts == 0) return;
|
||||
|
||||
if(strcmp(argv[1], "w") == 0){
|
||||
write = 1;
|
||||
if(strcmp(argv[3], "1") == 0)
|
||||
data = 1;
|
||||
}
|
||||
// Remove debug info massage
|
||||
_AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "[ATMG] %s: ", argv[1]);
|
||||
ConfigDebugInfo = 0;
|
||||
for(i=0; i<(cnts*2); i+=2){
|
||||
pin = NC;
|
||||
port = argv[2][i];
|
||||
num = argv[2][i+1];
|
||||
if(port >= 'a' && port <= 'z')
|
||||
port -= ('a' - 'A');
|
||||
if(num >= 'a' && num <= 'z')
|
||||
num -= ('a' - 'A');
|
||||
switch(port){
|
||||
case 'A':
|
||||
switch(num){
|
||||
case '0': pin = PA_0; break; case '1': pin = PA_1; break; case '2': pin = PA_2; break; case '3': pin = PA_3; break;
|
||||
case '4': pin = PA_4; break; case '5': pin = PA_5; break; case '6': pin = PA_6; break; case '7': pin = PA_7; break;
|
||||
}
|
||||
break;
|
||||
case 'B':
|
||||
switch(num){
|
||||
case '0': pin = PB_0; break; case '1': pin = PB_1; break; case '2': pin = PB_2; break; case '3': pin = PB_3; break;
|
||||
case '4': pin = PB_4; break; case '5': pin = PB_5; break; case '6': pin = PB_6; break; case '7': pin = PB_7; break;
|
||||
}
|
||||
break;
|
||||
case 'C':
|
||||
switch(num){
|
||||
case '0': pin = PC_0; break; case '1': pin = PC_1; break; case '2': pin = PC_2; break; case '3': pin = PC_3; break;
|
||||
case '4': pin = PC_4; break; case '5': pin = PC_5; break; case '6': pin = PC_6; break; case '7': pin = PC_7; break;
|
||||
case '8': pin = PC_8; break; case '9': pin = PC_9; break;
|
||||
}
|
||||
break;
|
||||
case 'D':
|
||||
switch(num){
|
||||
case '0': pin = PD_0; break; case '1': pin = PD_1; break; case '2': pin = PD_2; break; case '3': pin = PD_3; break;
|
||||
case '4': pin = PD_4; break; case '5': pin = PD_5; break; case '6': pin = PD_6; break; case '7': pin = PD_7; break;
|
||||
case '8': pin = PD_8; break; case '9': pin = PD_9; break;
|
||||
}
|
||||
break;
|
||||
case 'E':
|
||||
switch(num){
|
||||
case '0': pin = PE_0; break; case '1': pin = PE_1; break; case '2': pin = PE_2; break; case '3': pin = PE_3; break;
|
||||
case '4': pin = PE_4; break; case '5': pin = PE_5; break; case '6': pin = PE_6; break; case '7': pin = PE_7; break;
|
||||
case '8': pin = PE_8; break; case '9': pin = PE_9; break; case 'A': pin = PE_A; break;
|
||||
}
|
||||
break;
|
||||
case 'F':
|
||||
switch(num){
|
||||
case '0': pin = PF_0; break; case '1': pin = PF_1; break; case '2': pin = PF_2; break; case '3': pin = PF_3; break;
|
||||
case '4': pin = PF_4; break; case '5': pin = PF_5; break;
|
||||
}
|
||||
break;
|
||||
case 'G':
|
||||
switch(num){
|
||||
case '0': pin = PG_0; break; case '1': pin = PG_1; break; case '2': pin = PG_2; break; case '3': pin = PG_3; break;
|
||||
case '4': pin = PG_4; break; case '5': pin = PG_5; break; case '6': pin = PG_6; break; case '7': pin = PG_7; break;
|
||||
}
|
||||
break;
|
||||
case 'H':
|
||||
switch(num){
|
||||
case '0': pin = PH_0; break; case '1': pin = PH_1; break; case '2': pin = PH_2; break; case '3': pin = PH_3; break;
|
||||
case '4': pin = PH_4; break; case '5': pin = PH_5; break; case '6': pin = PH_6; break; case '7': pin = PH_7; break;
|
||||
}
|
||||
break;
|
||||
case 'I':
|
||||
switch(num){
|
||||
case '0': pin = PI_0; break; case '1': pin = PI_1; break; case '2': pin = PI_2; break; case '3': pin = PI_3; break;
|
||||
case '4': pin = PI_4; break; case '5': pin = PI_5; break; case '6': pin = PI_6; break; case '7': pin = PI_7; break;
|
||||
}
|
||||
break;
|
||||
case 'J':
|
||||
switch(num){
|
||||
case '0': pin = PJ_0; break; case '1': pin = PJ_1; break; case '2': pin = PJ_2; break; case '3': pin = PJ_3; break;
|
||||
case '4': pin = PJ_4; break; case '5': pin = PJ_5; break; case '6': pin = PJ_6; break;
|
||||
}
|
||||
break;
|
||||
case 'K':
|
||||
switch(num){
|
||||
case '0': pin = PK_0; break; case '1': pin = PK_1; break; case '2': pin = PK_2; break; case '3': pin = PK_3; break;
|
||||
case '4': pin = PK_4; break; case '5': pin = PK_5; break; case '6': pin = PK_6; break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
if(pin == NC){
|
||||
_AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "X,");
|
||||
continue;
|
||||
}
|
||||
// Initial input control pin
|
||||
gpio_init(&gpio_test, pin);
|
||||
if(write){
|
||||
gpio_dir(&gpio_test, PIN_OUTPUT); // Direction: Output
|
||||
gpio_mode(&gpio_test, PullNone); // No pull
|
||||
gpio_write(&gpio_test, data);
|
||||
_AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "%d,", data);
|
||||
}else{
|
||||
gpio_dir(&gpio_test, PIN_INPUT); // Direction: Input
|
||||
gpio_mode(&gpio_test, PullUp); // Pull-High
|
||||
val = gpio_read(&gpio_test);
|
||||
_AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "%d,", val);
|
||||
}
|
||||
}
|
||||
_AT_DBG_MSG(AT_FLAG_GPIO, AT_DBG_ALWAYS, "\n");
|
||||
// Recover debug info massage
|
||||
ConfigDebugInfo = tConfigDebugInfo;
|
||||
}
|
||||
|
||||
void fATMR(void *arg)
|
||||
{
|
||||
u32 idx;
|
||||
|
||||
AT_PRINTK("[ATMR]: _AT_MP_SDR_TEST_");
|
||||
#ifdef CONFIG_SDR_EN
|
||||
for (idx = 0; idx < 0x200000; idx = idx+4){
|
||||
HAL_WRITE32(0x30000000, idx, 0x12345678);
|
||||
if (HAL_READ32(0x30000000, idx) != 0x12345678) {
|
||||
AT_PRINTK("[ATMR]: SDR test fail addr 0x08x, value 0x08%x",(0x30000000+idx),HAL_READ32(0x30000000, idx));
|
||||
return;
|
||||
}
|
||||
}
|
||||
AT_PRINTK("[ATMR]: SDR test success");
|
||||
#endif
|
||||
}
|
||||
|
||||
void fATMt(void *arg)
|
||||
{
|
||||
int argc = 0;
|
||||
char *argv[MAX_ARGC] = {0};
|
||||
|
||||
AT_PRINTK("[ATM#]: _AT_MP_TEST_");
|
||||
argc = parse_param(arg, argv);
|
||||
}
|
||||
|
||||
void fATMx(void *arg)
|
||||
{
|
||||
AT_PRINTK("[ATM?]: _AT_MP_HELP_");
|
||||
}
|
||||
|
||||
log_item_t at_mp_items[] = {
|
||||
{"ATMG", fATMG,}, // MP GPIO test
|
||||
{"ATMR", fATMR,}, // MP SDR test
|
||||
{"ATM#", fATMt,}, // test command
|
||||
{"ATM?", fATMx,}, // Help
|
||||
#if CONFIG_ATCMD_MP_EXT0
|
||||
{"ATM0", fATM0,}, // MP ext0 AT command
|
||||
#endif
|
||||
};
|
||||
|
||||
void at_mp_init(void)
|
||||
{
|
||||
log_service_add_table(at_mp_items, sizeof(at_mp_items)/sizeof(at_mp_items[0]));
|
||||
}
|
||||
|
||||
#if SUPPORT_LOG_SERVICE
|
||||
log_module_init(at_mp_init);
|
||||
#endif
|
||||
|
||||
#endif // #if CONFIG_ATCMD_MP
|
||||
|
|
@ -1,12 +0,0 @@
|
|||
#ifndef __ATCMD_MP_H__
|
||||
#define __ATCMD_MP_H__
|
||||
|
||||
#define CONFIG_ATCMD_MP_EXT0 0 //support MP ext0 AT command
|
||||
|
||||
typedef struct _at_command_mp_ext_item_{
|
||||
char *mp_ext_cmd;
|
||||
int (*mp_ext_fun)(void **argv, int argc);
|
||||
char *mp_ext_usage;
|
||||
}at_mp_ext_item_t;
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load diff
|
@ -1,6 +0,0 @@
|
|||
#ifndef __ATCMD_SYS_H__
|
||||
#define __ATCMD_SYS_H__
|
||||
#ifdef CONFIG_AT_SYS
|
||||
#endif //
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load diff
|
@ -1,166 +0,0 @@
|
|||
#ifndef __ATCMD_WIFI_H__
|
||||
#define __ATCMD_WIFI_H__
|
||||
#include <platform_opts.h>
|
||||
#include "main.h"
|
||||
#include "lwip_netconf.h"
|
||||
#ifdef USE_FLASH_EEP
|
||||
#include "flash_eep.h"
|
||||
#include "feep_config.h"
|
||||
#endif
|
||||
|
||||
#ifndef WLAN0_NAME
|
||||
#define WLAN0_NAME "wlan0"
|
||||
#endif
|
||||
#ifndef WLAN1_NAME
|
||||
#define WLAN1_NAME "wlan1"
|
||||
#endif
|
||||
/* Give default value if not defined */
|
||||
#ifndef NET_IF_NUM
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
#define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN) + 1)
|
||||
#else
|
||||
#define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN))
|
||||
#endif // end of CONFIG_CONCURRENT_MODE
|
||||
#endif // end of NET_IF_NUM
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef IP_ADDR0
|
||||
#define IP_ADDR0 192
|
||||
#define IP_ADDR1 168
|
||||
#define IP_ADDR2 3
|
||||
#define IP_ADDR3 80
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef NETMASK_ADDR0
|
||||
#define NETMASK_ADDR0 255
|
||||
#define NETMASK_ADDR1 255
|
||||
#define NETMASK_ADDR2 255
|
||||
#define NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef GW_ADDR0
|
||||
#define GW_ADDR0 192
|
||||
#define GW_ADDR1 168
|
||||
#define GW_ADDR2 3
|
||||
#define GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef AP_IP_ADDR0
|
||||
#define AP_IP_ADDR0 192
|
||||
#define AP_IP_ADDR1 168
|
||||
#define AP_IP_ADDR2 43
|
||||
#define AP_IP_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef AP_NETMASK_ADDR0
|
||||
#define AP_NETMASK_ADDR0 255
|
||||
#define AP_NETMASK_ADDR1 255
|
||||
#define AP_NETMASK_ADDR2 255
|
||||
#define AP_NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef AP_GW_ADDR0
|
||||
#define AP_GW_ADDR0 192
|
||||
#define AP_GW_ADDR1 168
|
||||
#define AP_GW_ADDR2 43
|
||||
#define AP_GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
#include "wifi_structures.h"
|
||||
#include <wlan_fast_connect/example_wlan_fast_connect.h>
|
||||
typedef struct _UART_LOG_CONF_{
|
||||
u32 BaudRate;
|
||||
u8 DataBits;
|
||||
u8 StopBits;
|
||||
u8 Parity;
|
||||
u8 FlowControl;
|
||||
}UART_LOG_CONF, *PUART_LOG_CONF;
|
||||
|
||||
#define ATCMD_WIFI_CONN_STORE_MAX_NUM (1)
|
||||
struct atcmd_wifi_conf{
|
||||
int32_t auto_enable;
|
||||
rtw_wifi_setting_t setting;
|
||||
int32_t reconn_num;
|
||||
int32_t reconn_last_index;
|
||||
struct wlan_fast_reconnect reconn[ATCMD_WIFI_CONN_STORE_MAX_NUM];
|
||||
};
|
||||
|
||||
#define ATCMD_LWIP_CONN_STORE_MAX_NUM (1)
|
||||
struct atcmd_lwip_conn_info{
|
||||
int32_t role; //client, server or seed
|
||||
uint32_t protocol; //tcp or udp
|
||||
uint32_t remote_addr; //remote ip
|
||||
uint32_t remote_port; //remote port
|
||||
uint32_t local_addr; //locale ip, not used yet
|
||||
uint32_t local_port; //locale port, not used yet
|
||||
uint32_t reserved; //reserve for further use
|
||||
};
|
||||
struct atcmd_lwip_conf {
|
||||
int32_t enable; //enable or not
|
||||
int32_t conn_num;
|
||||
int32_t last_index;
|
||||
int32_t reserved; //reserve for further use
|
||||
struct atcmd_lwip_conn_info conn[ATCMD_LWIP_CONN_STORE_MAX_NUM];
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
AT_PARTITION_ALL = 0,
|
||||
AT_PARTITION_UART = 1,
|
||||
AT_PARTITION_WIFI = 2,
|
||||
AT_PARTITION_LWIP = 3
|
||||
} AT_PARTITION;
|
||||
|
||||
typedef enum {
|
||||
AT_PARTITION_READ = 0,
|
||||
AT_PARTITION_WRITE = 1,
|
||||
AT_PARTITION_ERASE = 2
|
||||
} AT_PARTITION_OP;
|
||||
|
||||
//first segment for uart
|
||||
#define UART_SETTING_BACKUP_SECTOR (0x8000)
|
||||
#define UART_CONF_DATA_OFFSET (0)
|
||||
#define UART_CONF_DATA_SIZE ((((sizeof(UART_LOG_CONF)-1)>>2) + 1)<<2)
|
||||
|
||||
//second segment for wifi config
|
||||
#define WIFI_CONF_DATA_OFFSET (UART_CONF_DATA_OFFSET+UART_CONF_DATA_SIZE)
|
||||
#define WIFI_CONF_DATA_SIZE ((((sizeof(struct atcmd_wifi_conf)-1)>>2) + 1)<<2)
|
||||
|
||||
//fouth segment for lwip config
|
||||
#define LWIP_CONF_DATA_OFFSET (WIFI_CONF_DATA_OFFSET+WIFI_CONF_DATA_SIZE)
|
||||
#define LWIP_CONF_DATA_SIZE ((((sizeof(struct atcmd_lwip_conf)-1)>>2) + 1)<<2)
|
||||
|
||||
extern void atcmd_update_partition_info(AT_PARTITION id, AT_PARTITION_OP ops, u8 *data, u16 len);
|
||||
|
||||
#define ATSTRING_LEN (LOG_SERVICE_BUFLEN)
|
||||
extern char at_string[ATSTRING_LEN];
|
||||
|
||||
extern unsigned char gAT_Echo; // default echo on
|
||||
//extern void uart_at_lock(void);
|
||||
//extern void uart_at_unlock(void);
|
||||
extern void uart_at_send_string(char *str);
|
||||
extern void uart_at_send_buf(u8 *buf, u32 len);
|
||||
|
||||
#define at_printf(fmt, args...) do{\
|
||||
/*uart_at_lock();*/\
|
||||
snprintf(at_string, ATSTRING_LEN, fmt, ##args); \
|
||||
uart_at_send_string(at_string);\
|
||||
/*uart_at_unlock();*/\
|
||||
}while(0)
|
||||
#define at_print_data(data, size) do{\
|
||||
/*uart_at_lock();*/\
|
||||
uart_at_send_buf(data, size);\
|
||||
/*uart_at_unlock();*/\
|
||||
}while(0)
|
||||
|
||||
#else
|
||||
#define at_printf(fmt, args...) do{printf(fmt, ##args);}while(0)
|
||||
#define at_print_data(data, size) do{__rtl_memDump(data, size, NULL);}while(0)
|
||||
#endif//#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
|
||||
#endif
|
File diff suppressed because it is too large
Load diff
|
@ -1,171 +0,0 @@
|
|||
#ifndef __ATCMD_WIFI_H__
|
||||
#define __ATCMD_WIFI_H__
|
||||
#include <platform_opts.h>
|
||||
#ifdef CONFIG_AT_WIFI
|
||||
#include "main.h"
|
||||
#include "lwip_netconf.h"
|
||||
#ifdef USE_FLASH_EEP
|
||||
#include "flash_eep.h"
|
||||
#include "feep_config.h"
|
||||
#endif
|
||||
|
||||
|
||||
#ifndef WLAN0_NAME
|
||||
#define WLAN0_NAME "wlan0"
|
||||
#endif
|
||||
#ifndef WLAN1_NAME
|
||||
#define WLAN1_NAME "wlan1"
|
||||
#endif
|
||||
/* Give default value if not defined */
|
||||
#ifndef NET_IF_NUM
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
#define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN) + 1)
|
||||
#else
|
||||
#define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN))
|
||||
#endif // end of CONFIG_CONCURRENT_MODE
|
||||
#endif // end of NET_IF_NUM
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef IP_ADDR0
|
||||
#define IP_ADDR0 192
|
||||
#define IP_ADDR1 168
|
||||
#define IP_ADDR2 3
|
||||
#define IP_ADDR3 80
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef NETMASK_ADDR0
|
||||
#define NETMASK_ADDR0 255
|
||||
#define NETMASK_ADDR1 255
|
||||
#define NETMASK_ADDR2 255
|
||||
#define NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef GW_ADDR0
|
||||
#define GW_ADDR0 192
|
||||
#define GW_ADDR1 168
|
||||
#define GW_ADDR2 3
|
||||
#define GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef AP_IP_ADDR0
|
||||
#define AP_IP_ADDR0 192
|
||||
#define AP_IP_ADDR1 168
|
||||
#define AP_IP_ADDR2 43
|
||||
#define AP_IP_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef AP_NETMASK_ADDR0
|
||||
#define AP_NETMASK_ADDR0 255
|
||||
#define AP_NETMASK_ADDR1 255
|
||||
#define AP_NETMASK_ADDR2 255
|
||||
#define AP_NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef AP_GW_ADDR0
|
||||
#define AP_GW_ADDR0 192
|
||||
#define AP_GW_ADDR1 168
|
||||
#define AP_GW_ADDR2 43
|
||||
#define AP_GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
#endif // CONFIG_AT_WIFI
|
||||
|
||||
#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
|
||||
#include "wifi_structures.h"
|
||||
#include <wlan_fast_connect/example_wlan_fast_connect.h>
|
||||
typedef struct _UART_LOG_CONF_{
|
||||
u32 BaudRate;
|
||||
u8 DataBits;
|
||||
u8 StopBits;
|
||||
u8 Parity;
|
||||
u8 FlowControl;
|
||||
}UART_LOG_CONF, *PUART_LOG_CONF;
|
||||
|
||||
#define ATCMD_WIFI_CONN_STORE_MAX_NUM (1)
|
||||
struct atcmd_wifi_conf{
|
||||
struct wlan_fast_reconnect reconn[ATCMD_WIFI_CONN_STORE_MAX_NUM];
|
||||
int32_t auto_enable;
|
||||
rtw_wifi_setting_t setting;
|
||||
int32_t reconn_num;
|
||||
int32_t reconn_last_index;
|
||||
};
|
||||
|
||||
#define ATCMD_LWIP_CONN_STORE_MAX_NUM (1)
|
||||
struct atcmd_lwip_conn_info{
|
||||
int32_t role; //client, server or seed
|
||||
uint32_t protocol; //tcp or udp
|
||||
uint32_t remote_addr; //remote ip
|
||||
uint32_t remote_port; //remote port
|
||||
uint32_t local_addr; //locale ip, not used yet
|
||||
uint32_t local_port; //locale port, not used yet
|
||||
uint32_t reserved; //reserve for further use
|
||||
};
|
||||
struct atcmd_lwip_conf {
|
||||
int32_t enable; //enable or not
|
||||
int32_t conn_num;
|
||||
int32_t last_index;
|
||||
int32_t reserved; //reserve for further use
|
||||
struct atcmd_lwip_conn_info conn[ATCMD_LWIP_CONN_STORE_MAX_NUM];
|
||||
};
|
||||
|
||||
typedef enum {
|
||||
AT_PARTITION_ALL = 0,
|
||||
AT_PARTITION_UART = FEEP_ID_UART_CFG,
|
||||
AT_PARTITION_WIFI = FEEP_ID_WIFI_CFG,
|
||||
AT_PARTITION_LWIP = FEEP_ID_LWIP_CFG
|
||||
} AT_PARTITION;
|
||||
|
||||
typedef enum {
|
||||
AT_PARTITION_READ = 0,
|
||||
AT_PARTITION_WRITE = 1,
|
||||
AT_PARTITION_ERASE = 2
|
||||
} AT_PARTITION_OP;
|
||||
|
||||
//first segment for uart
|
||||
#define UART_SETTING_BACKUP_SECTOR (0x8000)
|
||||
#define UART_CONF_DATA_OFFSET (0)
|
||||
#define UART_CONF_DATA_SIZE ((((sizeof(UART_LOG_CONF)-1)>>2) + 1)<<2)
|
||||
|
||||
//second segment for wifi config
|
||||
#define WIFI_CONF_DATA_OFFSET (UART_CONF_DATA_OFFSET+UART_CONF_DATA_SIZE)
|
||||
#define WIFI_CONF_DATA_SIZE ((((sizeof(struct atcmd_wifi_conf)-1)>>2) + 1)<<2)
|
||||
|
||||
//fouth segment for lwip config
|
||||
#define LWIP_CONF_DATA_OFFSET (WIFI_CONF_DATA_OFFSET+WIFI_CONF_DATA_SIZE)
|
||||
#define LWIP_CONF_DATA_SIZE ((((sizeof(struct atcmd_lwip_conf)-1)>>2) + 1)<<2)
|
||||
|
||||
extern void atcmd_update_partition_info(AT_PARTITION id, AT_PARTITION_OP ops, u8 *data, u16 len);
|
||||
|
||||
#define ATSTRING_LEN (LOG_SERVICE_BUFLEN)
|
||||
extern char at_string[ATSTRING_LEN];
|
||||
|
||||
extern unsigned char gAT_Echo; // default echo on
|
||||
//extern void uart_at_lock(void);
|
||||
//extern void uart_at_unlock(void);
|
||||
extern void uart_at_send_string(char *str);
|
||||
extern void uart_at_send_buf(u8 *buf, u32 len);
|
||||
|
||||
#define at_printf(fmt, args...) do{\
|
||||
/*uart_at_lock();*/\
|
||||
snprintf(at_string, ATSTRING_LEN, fmt, ##args); \
|
||||
uart_at_send_string(at_string);\
|
||||
/*uart_at_unlock();*/\
|
||||
}while(0)
|
||||
#define at_print_data(data, size) do{\
|
||||
/*uart_at_lock();*/\
|
||||
uart_at_send_buf(data, size);\
|
||||
/*uart_at_unlock();*/\
|
||||
}while(0)
|
||||
|
||||
#else
|
||||
#define at_printf(fmt, args...) do{printf(fmt, ##args);}while(0)
|
||||
#define at_print_data(data, size) do{__rtl_memDump(data, size, NULL);}while(0)
|
||||
#endif//#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
|
||||
#endif
|
|
@ -1,497 +0,0 @@
|
|||
#include <stdarg.h>
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include "FreeRTOS.h"
|
||||
#if defined(configUSE_WAKELOCK_PMU) && (configUSE_WAKELOCK_PMU == 1)
|
||||
#include "freertos_pmu.h"
|
||||
#endif
|
||||
#include "log_service.h"
|
||||
#include "task.h"
|
||||
#include "semphr.h"
|
||||
#include "main.h"
|
||||
#include "wifi_util.h"
|
||||
#include "atcmd_wifi.h"
|
||||
#include "osdep_api.h"
|
||||
|
||||
#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
#include "atcmd_lwip.h"
|
||||
#endif
|
||||
|
||||
#if SUPPORT_LOG_SERVICE
|
||||
//======================================================
|
||||
struct list_head log_hash[ATC_INDEX_NUM];
|
||||
#ifdef CONFIG_AT_USR
|
||||
extern void at_user_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_AT_WIFI
|
||||
extern void at_wifi_init(void);
|
||||
#endif
|
||||
//extern void at_fs_init(void);
|
||||
|
||||
#ifdef CONFIG_AT_SYS
|
||||
extern void at_sys_init(void);
|
||||
#endif
|
||||
#if CONFIG_ETHERNET
|
||||
extern void at_ethernet_init(void);
|
||||
#endif
|
||||
#if CONFIG_GOOGLE_NEST
|
||||
extern void at_google_init(void);
|
||||
#endif
|
||||
#ifdef CONFIG_AT_LWIP
|
||||
extern void at_transport_init(void);
|
||||
#endif
|
||||
//extern void at_app_init(void);
|
||||
#if CONFIG_ALINK
|
||||
extern void at_cloud_init(void);
|
||||
#endif
|
||||
|
||||
|
||||
char log_buf[LOG_SERVICE_BUFLEN];
|
||||
#if CONFIG_LOG_HISTORY
|
||||
char log_history[LOG_HISTORY_LEN][LOG_SERVICE_BUFLEN];
|
||||
static unsigned int log_history_count = 0;
|
||||
#endif
|
||||
xSemaphoreHandle log_rx_interrupt_sema = NULL;
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
xSemaphoreHandle log_service_sema = NULL;
|
||||
#endif
|
||||
extern xSemaphoreHandle uart_rx_interrupt_sema;
|
||||
|
||||
#if CONFIG_INIC_EN
|
||||
extern unsigned char inic_cmd_ioctl;
|
||||
#endif
|
||||
|
||||
#if defined (__ICCARM__)
|
||||
#pragma section=".data.log_init"
|
||||
|
||||
unsigned int __log_init_begin__;
|
||||
unsigned int __log_init_end__;
|
||||
#elif defined ( __CC_ARM ) || defined(__GNUC__)
|
||||
//#pragma section=".data.log_init"
|
||||
log_init_t* __log_init_begin__;
|
||||
log_init_t* __log_init_end__;
|
||||
log_init_t log_init_table[] = {
|
||||
|
||||
#ifdef CONFIG_AT_WIFI
|
||||
at_wifi_init,
|
||||
#endif
|
||||
// at_fs_init,
|
||||
#ifdef CONFIG_AT_SYS
|
||||
at_sys_init,
|
||||
#endif
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
at_ethernet_init
|
||||
#endif
|
||||
|
||||
#if CONFIG_GOOGLE_NEST
|
||||
at_google_init
|
||||
#endif
|
||||
|
||||
#if CONFIG_TRANSPORT
|
||||
at_transport_init
|
||||
#endif
|
||||
|
||||
#if CONFIG_ALINK
|
||||
at_cloud_init
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_AT_USR
|
||||
at_user_init
|
||||
#endif
|
||||
|
||||
// at_app_init
|
||||
};
|
||||
#else
|
||||
#error "not implement, add to linker script"
|
||||
extern unsigned int __log_init_begin__;
|
||||
extern unsigned int __log_init_end__;
|
||||
#endif
|
||||
|
||||
#if defined(__GNUC__)
|
||||
#define USE_STRSEP
|
||||
#endif
|
||||
|
||||
//======================================================
|
||||
int hash_index(char *str)
|
||||
{
|
||||
unsigned int seed = 131; // 31 131 1313 13131 131313 etc..
|
||||
unsigned int hash = 0;
|
||||
|
||||
while (*str)
|
||||
{
|
||||
hash = hash * seed + (*str++);
|
||||
}
|
||||
|
||||
return (hash & 0x7FFFFFFF);
|
||||
}
|
||||
|
||||
void log_add_new_command(log_item_t *new)
|
||||
{
|
||||
int index = hash_index(new->log_cmd)%ATC_INDEX_NUM;
|
||||
|
||||
list_add(&new->node, &log_hash[index]);
|
||||
}
|
||||
void start_log_service(void);
|
||||
void log_service_init(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
#if defined (__ICCARM__)
|
||||
log_init_t *log_init_table;
|
||||
__log_init_begin__ = (unsigned int)__section_begin(".data.log_init");
|
||||
__log_init_end__ = (unsigned int)__section_end(".data.log_init");
|
||||
log_init_table = (log_init_t *)__log_init_begin__;
|
||||
#elif defined(__CC_ARM) || defined(__GNUC__)
|
||||
__log_init_begin__ = log_init_table;
|
||||
__log_init_end__ = log_init_table + sizeof(log_init_table);
|
||||
#else
|
||||
#error "not implement"
|
||||
#endif
|
||||
|
||||
|
||||
for(i=0;i<ATC_INDEX_NUM;i++)
|
||||
INIT_LIST_HEAD(&log_hash[i]);
|
||||
|
||||
for(i=0;i<(__log_init_end__-__log_init_begin__)/sizeof(log_init_t); i++)
|
||||
log_init_table[i]();
|
||||
|
||||
/* Initial uart rx swmaphore*/
|
||||
vSemaphoreCreateBinary(log_rx_interrupt_sema);
|
||||
xSemaphoreTake(log_rx_interrupt_sema, 1/portTICK_RATE_MS);
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
log_service_lock_init();
|
||||
#endif
|
||||
start_log_service();
|
||||
}
|
||||
|
||||
//sizeof(log_items)/sizeof(log_items[0])
|
||||
void log_service_add_table(log_item_t *tbl, int len)
|
||||
{
|
||||
int i;
|
||||
for(i=0;i<len;i++)
|
||||
log_add_new_command(&tbl[i]);
|
||||
}
|
||||
|
||||
void* log_action(char *cmd)
|
||||
{
|
||||
int search_cnt=0;
|
||||
int index = hash_index(cmd)%ATC_INDEX_NUM;
|
||||
struct list_head *head = &log_hash[index];
|
||||
struct list_head *iterator;
|
||||
log_item_t *item;
|
||||
void *act = NULL;
|
||||
|
||||
list_for_each(iterator, head) {
|
||||
item = list_entry(iterator, log_item_t, node);
|
||||
search_cnt++;
|
||||
if( strcmp(item->log_cmd, cmd) == 0){
|
||||
//printf("%s match %s, search cnt %d\n\r", cmd, item->log_cmd, search_cnt);
|
||||
act = (void*)item->at_act;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return act;
|
||||
}
|
||||
|
||||
void* log_handler(char *cmd)
|
||||
{
|
||||
log_act_t action=NULL;
|
||||
char buf[LOG_SERVICE_BUFLEN] = {0};
|
||||
char *copy=buf;
|
||||
char *token = NULL;
|
||||
char *param = NULL;
|
||||
char tok[5] = {0};//'\0'
|
||||
#if CONFIG_LOG_HISTORY
|
||||
strcpy(log_history[((log_history_count++)%LOG_HISTORY_LEN)], log_buf);
|
||||
#endif
|
||||
strncpy(copy, cmd,LOG_SERVICE_BUFLEN-1);
|
||||
|
||||
#if defined(USE_STRSEP)
|
||||
token = _strsep(©, "=");
|
||||
param = copy;
|
||||
#else
|
||||
token = strtok(copy, "=");
|
||||
param = strtok(NULL, NULL);
|
||||
#endif
|
||||
if(token && (strlen(token) <= 4))
|
||||
strcpy(tok, token);
|
||||
else{
|
||||
//printf("\n\rAT Cmd format error!\n");
|
||||
return NULL;
|
||||
};
|
||||
//printf(" Command %s \n\r ", tok);
|
||||
//printf(" Param %s \n\r", param);
|
||||
action = (log_act_t)log_action(tok);
|
||||
|
||||
if(action){
|
||||
action(param);
|
||||
}
|
||||
return (void*)action;
|
||||
|
||||
}
|
||||
|
||||
int parse_param(char *buf, char **argv)
|
||||
{
|
||||
int argc = 1;
|
||||
char str_buf[LOG_SERVICE_BUFLEN] = "\0";
|
||||
int str_count = 0;
|
||||
int buf_cnt = 0;
|
||||
|
||||
if(buf == NULL)
|
||||
goto exit;
|
||||
|
||||
while((argc < MAX_ARGC) && (*buf != '\0')) {
|
||||
while((*buf == ',') || (*buf == '[') || (*buf == ']')){
|
||||
if((*buf == ',') && (*(buf+1) == ',')){
|
||||
argv[argc] = NULL;
|
||||
argc++;
|
||||
}
|
||||
*buf = '\0';
|
||||
buf++;
|
||||
}
|
||||
|
||||
if(*buf == '\0')
|
||||
break;
|
||||
else if(*buf == '"'){
|
||||
memset(str_buf,'\0',LOG_SERVICE_BUFLEN);
|
||||
str_count = 0;
|
||||
buf_cnt = 0;
|
||||
*buf = '\0';
|
||||
buf ++;
|
||||
if(*buf == '\0')
|
||||
break;
|
||||
argv[argc] = buf;
|
||||
while((*buf != '"')&&(*buf != '\0')){
|
||||
if(*buf == '\\'){
|
||||
buf ++;
|
||||
buf_cnt++;
|
||||
}
|
||||
str_buf[str_count] = *buf;
|
||||
str_count++;
|
||||
buf_cnt++;
|
||||
buf ++;
|
||||
}
|
||||
*buf = '\0';
|
||||
memcpy(buf-buf_cnt,str_buf,buf_cnt);
|
||||
}
|
||||
else{
|
||||
argv[argc] = buf;
|
||||
}
|
||||
argc++;
|
||||
buf++;
|
||||
|
||||
while( (*buf != ',')&&(*buf != '\0')&&(*buf != '[')&&(*buf != ']') )
|
||||
buf++;
|
||||
}
|
||||
exit:
|
||||
return argc;
|
||||
}
|
||||
|
||||
unsigned char gDbgLevel = AT_DBG_ERROR;
|
||||
unsigned int gDbgFlag = 0xFFFFFFFF;
|
||||
void at_set_debug_level(unsigned char newDbgLevel)
|
||||
{
|
||||
gDbgLevel = newDbgLevel;
|
||||
}
|
||||
|
||||
void at_set_debug_mask(unsigned int newDbgFlag)
|
||||
{
|
||||
gDbgFlag = newDbgFlag;
|
||||
}
|
||||
|
||||
#if SUPPORT_INTERACTIVE_MODE
|
||||
extern char uart_buf[64];
|
||||
void legency_interactive_handler(unsigned char argc, unsigned char **argv)
|
||||
{
|
||||
#if 0 //defined(CONFIG_PLATFORM_8195A)
|
||||
if(argc<1)
|
||||
{
|
||||
DiagPrintf("Wrong argument number!\r\n");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
DiagPrintf("Wlan Normal Mode\n");
|
||||
|
||||
WlanNormal( argc, argv);
|
||||
#else
|
||||
strncpy(uart_buf, log_buf, 63);//uart_buf[64]
|
||||
xSemaphoreGive(uart_rx_interrupt_sema);
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
|
||||
#if CONFIG_WLAN
|
||||
#ifndef WLAN0_NAME
|
||||
#define WLAN0_NAME "wlan0"
|
||||
#endif
|
||||
#ifndef WLAN1_NAME
|
||||
#define WLAN1_NAME "wlan1"
|
||||
#endif
|
||||
int mp_commnad_handler(char *cmd)
|
||||
{
|
||||
char buf[64] = {0};
|
||||
char *token = NULL;
|
||||
|
||||
//strcpy(buf, cmd);
|
||||
strncpy(buf, cmd, (64-1));
|
||||
token = strtok(buf, " ");
|
||||
if(token && (strcmp(buf, "iwpriv") == 0)){
|
||||
token = strtok(NULL, "");
|
||||
wext_private_command(WLAN0_NAME, token, 1);
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
#endif
|
||||
void print_help_msg(void){
|
||||
#if CONFIG_WLAN
|
||||
extern void print_wlan_help(void);
|
||||
print_wlan_help();
|
||||
#endif
|
||||
//add other help message print here
|
||||
}
|
||||
|
||||
int print_help_handler(char *cmd){
|
||||
if(strcmp(cmd, "help") == 0){
|
||||
print_help_msg();
|
||||
return 0;
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
void log_service_lock(void)
|
||||
{
|
||||
rtw_down_sema(&log_service_sema);
|
||||
}
|
||||
|
||||
u32 log_service_lock_timeout(u32 ms)
|
||||
{
|
||||
return rtw_down_timeout_sema(&log_service_sema, ms);
|
||||
}
|
||||
|
||||
void log_service_unlock(void)
|
||||
{
|
||||
rtw_up_sema(&log_service_sema);
|
||||
}
|
||||
|
||||
void log_service_lock_init(void){
|
||||
rtw_init_sema(&log_service_sema, 1);
|
||||
}
|
||||
#endif
|
||||
|
||||
void log_service(void *param)
|
||||
{
|
||||
_AT_DBG_MSG(AT_FLAG_COMMON, AT_DBG_ALWAYS, "\n\rStart LOG SERVICE MODE\n\r");
|
||||
_AT_DBG_MSG(AT_FLAG_COMMON, AT_DBG_ALWAYS, "\n\r# ");
|
||||
while(1){
|
||||
while(xSemaphoreTake(log_rx_interrupt_sema, portMAX_DELAY) != pdTRUE);
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
log_service_lock();
|
||||
#endif
|
||||
if(log_handler((char *)log_buf) == NULL){
|
||||
#if CONFIG_WLAN
|
||||
if(mp_commnad_handler((char *)log_buf) < 0)
|
||||
#endif
|
||||
{
|
||||
#if SUPPORT_INTERACTIVE_MODE
|
||||
print_help_handler((char *)log_buf);
|
||||
legency_interactive_handler(NULL, NULL);
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
log_service_unlock();
|
||||
#endif
|
||||
continue;
|
||||
#else
|
||||
if(print_help_handler((char *)log_buf) < 0){
|
||||
at_printf("\r\nunknown command '%s'", log_buf);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
log_buf[0] = '\0';
|
||||
#if CONFIG_INIC_EN
|
||||
inic_cmd_ioctl = 0;
|
||||
#endif
|
||||
_AT_DBG_MSG(AT_FLAG_COMMON, AT_DBG_ALWAYS, "\n\r[MEM] After do cmd, available heap %d+%d\n\r", xPortGetFreeHeapSize(), tcm_heap_freeSpace());
|
||||
_AT_DBG_MSG(AT_FLAG_COMMON, AT_DBG_ALWAYS, "\r\n\n# "); //"#" is needed for mp tool
|
||||
#if CONFIG_EXAMPLE_UART_ATCMD
|
||||
if(atcmd_lwip_is_tt_mode())
|
||||
at_printf(STR_END_OF_ATDATA_RET);
|
||||
else
|
||||
at_printf(STR_END_OF_ATCMD_RET);
|
||||
#endif
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
log_service_unlock();
|
||||
#endif
|
||||
#if defined(configUSE_WAKELOCK_PMU) && (configUSE_WAKELOCK_PMU == 1)
|
||||
release_wakelock(WAKELOCK_LOGUART);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
#define STACKSIZE 1280
|
||||
void start_log_service(void)
|
||||
{
|
||||
xTaskHandle CreatedTask;
|
||||
int result;
|
||||
|
||||
#if 0 // CONFIG_USE_TCM_HEAP
|
||||
extern void *tcm_heap_malloc(int size);
|
||||
void *stack_addr = tcm_heap_malloc(STACKSIZE * sizeof(int));
|
||||
|
||||
if(stack_addr == NULL){
|
||||
}
|
||||
|
||||
result = xTaskGenericCreate(
|
||||
log_service,
|
||||
( signed portCHAR * ) "log_srv",
|
||||
STACKSIZE,
|
||||
NULL,
|
||||
tskIDLE_PRIORITY + 5,
|
||||
&CreatedTask,
|
||||
stack_addr,
|
||||
NULL);
|
||||
#else
|
||||
result = xTaskCreate( log_service, ( signed portCHAR * ) "log_srv", STACKSIZE, NULL, tskIDLE_PRIORITY + 5, &CreatedTask );
|
||||
#endif
|
||||
|
||||
if(result != pdPASS) {
|
||||
printf("\n\r%s xTaskCreate failed", __FUNCTION__);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void fAT_exit(void *arg){
|
||||
printf("\n\rLeave LOG SERVICE");
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
#if CONFIG_LOG_HISTORY
|
||||
void fAT_log(void *arg){
|
||||
int i = 0;
|
||||
printf("[AT]log history:\n\n\r");
|
||||
if(log_history_count > LOG_HISTORY_LEN){
|
||||
for(i=0; i<4; i++)
|
||||
printf(" %s\n\r", log_history[((log_history_count+i)%LOG_HISTORY_LEN)]);
|
||||
}
|
||||
else{
|
||||
for(i=0; i<(log_history_count-1); i++)
|
||||
printf(" %s\n\r", log_history[i]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
log_item_t at_log_items[ ] = {
|
||||
{"AT--", fAT_exit,},
|
||||
#if CONFIG_LOG_HISTORY
|
||||
{"AT??", fAT_log,},
|
||||
#endif
|
||||
{"ATxx", fAT_exit,}
|
||||
};
|
||||
void at_log_init(void)
|
||||
{
|
||||
log_service_add_table(at_log_items, sizeof(at_log_items)/sizeof(at_log_items[0]));
|
||||
}
|
||||
log_module_init(at_log_init);
|
||||
#endif
|
|
@ -1,123 +0,0 @@
|
|||
#ifndef LOG_SERVICE_H
|
||||
#define LOG_SERVICE_H
|
||||
|
||||
#include "dlist.h"
|
||||
/*
|
||||
* Include user defined options first. Anything not defined in these files
|
||||
* will be set to standard values. Override anything you dont like!
|
||||
*/
|
||||
#if defined(CONFIG_PLATFORM_8195A) || defined(CONFIG_PLATFORM_8711B)
|
||||
#include "platform_opts.h"
|
||||
#include "platform_stdlib.h"
|
||||
#endif
|
||||
|
||||
#ifdef __ICCARM__
|
||||
#define STRINGIFY(s) #s
|
||||
#define SECTION(_name) _Pragma( STRINGIFY(location=_name))
|
||||
#define log_module_init(fn) \
|
||||
SECTION(".data.log_init") __root static void* log_##fn = (void*)fn
|
||||
#elif defined(__CC_ARM)
|
||||
#define log_module_init(fn) \
|
||||
static void* log_##fn __attribute__((section(".data.log_init"))) = (void*)fn;
|
||||
#define DiagPrintf printf
|
||||
#elif defined(__GNUC__)
|
||||
#define log_module_init(fn) \
|
||||
static void* log_##fn __attribute__((section(".data.log_init"))) = (void*)fn;
|
||||
#else
|
||||
#error "not implement"
|
||||
#endif
|
||||
|
||||
#define ATC_INDEX_NUM 32
|
||||
|
||||
#ifndef SUPPORT_LOG_SERVICE
|
||||
#define SUPPORT_LOG_SERVICE 1
|
||||
#endif
|
||||
|
||||
//LOG_SERVICE_BUFLEN: default, only 63 bytes could be used for keeping input
|
||||
// cmd, the last byte is for string end ('\0').
|
||||
#ifndef LOG_SERVICE_BUFLEN
|
||||
#define LOG_SERVICE_BUFLEN 64
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_LOG_HISTORY
|
||||
#define CONFIG_LOG_HISTORY 0
|
||||
#if CONFIG_LOG_HISTORY
|
||||
#define LOG_HISTORY_LEN 5
|
||||
#endif
|
||||
#endif //#ifndef CONFIG_LOG_HISTORY
|
||||
|
||||
#ifndef MAX_ARGC
|
||||
#define MAX_ARGC 12
|
||||
#endif
|
||||
|
||||
#ifndef CONFIG_LOG_SERVICE_LOCK
|
||||
#define CONFIG_LOG_SERVICE_LOCK 0 // //to protect log_buf[], only one command processed per time
|
||||
#endif
|
||||
|
||||
#define AT_BIT(n) (1<<n)
|
||||
#define AT_FLAG_DUMP AT_BIT(0)
|
||||
#define AT_FLAG_EDIT AT_BIT(1)
|
||||
#define AT_FLAG_ADC AT_BIT(2)
|
||||
#define AT_FLAG_GPIO AT_BIT(3)
|
||||
#define AT_FLAG_OTA AT_BIT(4)
|
||||
#define AT_FLAG_NFC AT_BIT(5)
|
||||
#define AT_FLAG_OS AT_BIT(6)
|
||||
#define AT_FLAG_LWIP AT_BIT(7)
|
||||
#define AT_FLAG_COMMON AT_BIT(8)
|
||||
#define AT_FLAG_WIFI AT_BIT(9)
|
||||
|
||||
enum{
|
||||
AT_DBG_OFF = 0,
|
||||
AT_DBG_ALWAYS,
|
||||
AT_DBG_ERROR,
|
||||
AT_DBG_WARNING,
|
||||
AT_DBG_INFO
|
||||
};
|
||||
|
||||
extern unsigned char gDbgLevel;
|
||||
extern unsigned int gDbgFlag;
|
||||
|
||||
#define AT_PRINTK(fmt, args...) printf(fmt"\r\n",## args)
|
||||
#define _AT_PRINTK(fmt, args...) printf(fmt,## args)
|
||||
#define AT_DBG_MSG(flag, level, fmt, args...) \
|
||||
do{ \
|
||||
if(((flag) & gDbgFlag) && (level <= gDbgLevel)){ \
|
||||
AT_PRINTK(fmt,## args); \
|
||||
} \
|
||||
}while(0)
|
||||
#define _AT_DBG_MSG(flag, level, fmt, args...) \
|
||||
do{ \
|
||||
if(((flag) & gDbgFlag) && (level <= gDbgLevel)){ \
|
||||
_AT_PRINTK(fmt,## args); \
|
||||
} \
|
||||
}while(0)
|
||||
|
||||
#ifndef SUPPORT_INTERACTIVE_MODE
|
||||
#define SUPPORT_INTERACTIVE_MODE 0
|
||||
#endif //#ifndef SUPPORT_INTERACTIVE_MODE
|
||||
|
||||
typedef void (*log_init_t)(void);
|
||||
typedef void (*log_act_t)(void*);
|
||||
typedef struct _at_command_item_{
|
||||
char *log_cmd;
|
||||
log_act_t at_act;
|
||||
struct list_head node;
|
||||
}log_item_t;
|
||||
|
||||
void log_service_add_table(log_item_t *tbl, int len);
|
||||
int parse_param(char *buf, char **argv);
|
||||
void at_set_debug_mask(unsigned int newDbgFlag);
|
||||
void at_set_debug_level(unsigned char newDbgLevel);
|
||||
void log_service_init(void);
|
||||
#if CONFIG_LOG_SERVICE_LOCK
|
||||
void log_service_lock_init(void);
|
||||
void log_service_lock(void);
|
||||
u32 log_service_lock_timeout(u32 ms);
|
||||
void log_service_unlock(void);
|
||||
#endif
|
||||
|
||||
#define C_NUM_AT_CMD 4 //"ATxx", 4 characters
|
||||
#define C_NUM_AT_CMD_DLT 1 //"=", 1 charater
|
||||
#define STR_END_OF_ATCMD_RET "\r\n# " //each AT command response will end with this string
|
||||
#define STR_END_OF_ATDATA_RET "\r\n> " //data transparent transmission indicator
|
||||
#endif
|
|
@ -1,455 +0,0 @@
|
|||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "lwip/mem.h"
|
||||
#include "lwip/memp.h"
|
||||
#include "lwip/dhcp.h"
|
||||
#include "lwip/dns.h"
|
||||
#include "ethernetif.h"
|
||||
#include "main.h"
|
||||
#include "lwip_netconf.h"
|
||||
#if CONFIG_WLAN
|
||||
#include "wifi_ind.h"
|
||||
#endif
|
||||
#if defined(STM32F2XX)
|
||||
#include "stm322xg_eval_lcd.h"
|
||||
#elif defined(STM32F4XX)
|
||||
#include "stm324xg_eval_lcd.h"
|
||||
#endif
|
||||
#include <platform/platform_stdlib.h>
|
||||
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef IP_ADDR0
|
||||
#define IP_ADDR0 192
|
||||
#define IP_ADDR1 168
|
||||
#define IP_ADDR2 1
|
||||
#define IP_ADDR3 80
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef NETMASK_ADDR0
|
||||
#define NETMASK_ADDR0 255
|
||||
#define NETMASK_ADDR1 255
|
||||
#define NETMASK_ADDR2 255
|
||||
#define NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef GW_ADDR0
|
||||
#define GW_ADDR0 192
|
||||
#define GW_ADDR1 168
|
||||
#define GW_ADDR2 1
|
||||
#define GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef AP_IP_ADDR0
|
||||
#define AP_IP_ADDR0 192
|
||||
#define AP_IP_ADDR1 168
|
||||
#define AP_IP_ADDR2 43
|
||||
#define AP_IP_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef AP_NETMASK_ADDR0
|
||||
#define AP_NETMASK_ADDR0 255
|
||||
#define AP_NETMASK_ADDR1 255
|
||||
#define AP_NETMASK_ADDR2 255
|
||||
#define AP_NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef AP_GW_ADDR0
|
||||
#define AP_GW_ADDR0 192
|
||||
#define AP_GW_ADDR1 168
|
||||
#define AP_GW_ADDR2 43
|
||||
#define AP_GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*Static IP ADDRESS FOR ETHERNET*/
|
||||
#ifndef ETH_IP_ADDR0
|
||||
#define ETH_IP_ADDR0 192
|
||||
#define ETH_IP_ADDR1 168
|
||||
#define ETH_IP_ADDR2 0
|
||||
#define ETH_IP_ADDR3 80
|
||||
#endif
|
||||
|
||||
/*NETMASK FOR ETHERNET*/
|
||||
#ifndef ETH_NETMASK_ADDR0
|
||||
#define ETH_NETMASK_ADDR0 255
|
||||
#define ETH_NETMASK_ADDR1 255
|
||||
#define ETH_NETMASK_ADDR2 255
|
||||
#define ETH_NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway address for ethernet*/
|
||||
#ifndef ETH_GW_ADDR0
|
||||
#define ETH_GW_ADDR0 192
|
||||
#define ETH_GW_ADDR1 168
|
||||
#define ETH_GW_ADDR2 0
|
||||
#define ETH_GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/* Private define ------------------------------------------------------------*/
|
||||
#define MAX_DHCP_TRIES 5
|
||||
|
||||
|
||||
|
||||
/* Private macro -------------------------------------------------------------*/
|
||||
/* Private variables ---------------------------------------------------------*/
|
||||
|
||||
struct netif xnetif[NET_IF_NUM]; /* network interface structure */
|
||||
/* Private functions ---------------------------------------------------------*/
|
||||
/**
|
||||
* @brief Initializes the lwIP stack
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
#if CONFIG_WLAN
|
||||
extern int error_flag;
|
||||
extern rtw_mode_t wifi_mode;
|
||||
#endif
|
||||
|
||||
int lwip_init_done = 0;
|
||||
|
||||
void LwIP_Init(void)
|
||||
{
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
int8_t idx = 0;
|
||||
|
||||
/* Create tcp_ip stack thread */
|
||||
tcpip_init( NULL, NULL );
|
||||
|
||||
/* - netif_add(struct netif *netif, struct ip_addr *ipaddr,
|
||||
struct ip_addr *netmask, struct ip_addr *gw,
|
||||
void *state, err_t (* init)(struct netif *netif),
|
||||
err_t (* input)(struct pbuf *p, struct netif *netif))
|
||||
|
||||
Adds your network interface to the netif_list. Allocate a struct
|
||||
netif and pass a pointer to this structure as the first argument.
|
||||
Give pointers to cleared ip_addr structures when using DHCP,
|
||||
or fill them with sane numbers otherwise. The state pointer may be NULL.
|
||||
|
||||
The init function pointer must point to a initialization function for
|
||||
your ethernet netif interface. The following code illustrates it's use.*/
|
||||
//printf("NET_IF_NUM:%d\n\r",NET_IF_NUM);
|
||||
for(idx=0;idx<NET_IF_NUM;idx++){
|
||||
if(idx==0){
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0, IP_ADDR1, IP_ADDR2, IP_ADDR3);
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1 , NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
}
|
||||
else{
|
||||
IP4_ADDR(&ipaddr, AP_IP_ADDR0, AP_IP_ADDR1, AP_IP_ADDR2, AP_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, AP_NETMASK_ADDR0, AP_NETMASK_ADDR1 , AP_NETMASK_ADDR2, AP_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, AP_GW_ADDR0, AP_GW_ADDR1, AP_GW_ADDR2, AP_GW_ADDR3);
|
||||
}
|
||||
#if CONFIG_ETHERNET
|
||||
if(idx == NET_IF_NUM - 1)
|
||||
{
|
||||
IP4_ADDR(&ipaddr, ETH_IP_ADDR0, ETH_IP_ADDR1, ETH_IP_ADDR2, ETH_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, ETH_NETMASK_ADDR0, ETH_NETMASK_ADDR1 , ETH_NETMASK_ADDR2, ETH_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, ETH_GW_ADDR0, ETH_GW_ADDR1, ETH_GW_ADDR2, ETH_GW_ADDR3);
|
||||
}
|
||||
#endif
|
||||
xnetif[idx].name[0] = 'r';
|
||||
xnetif[idx].name[1] = '0'+idx;
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
if(idx == NET_IF_NUM - 1)
|
||||
netif_add(&xnetif[idx], &ipaddr, &netmask, &gw, NULL, ðernetif_mii_init, &tcpip_input);
|
||||
else
|
||||
netif_add(&xnetif[idx], &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
|
||||
#else
|
||||
netif_add(&xnetif[idx], &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
|
||||
#endif
|
||||
printf("interface %d is initialized\n", idx);
|
||||
|
||||
}
|
||||
|
||||
/* Registers the default network interface. */
|
||||
netif_set_default(&xnetif[0]);
|
||||
|
||||
/*move these operations to wifi_on/wifi_off*/
|
||||
#if 0
|
||||
/* When the netif is fully configured this function must be called.*/
|
||||
for(idx = 0;idx < NET_IF_NUM;idx++)
|
||||
netif_set_up(&xnetif[idx]);
|
||||
#endif
|
||||
|
||||
lwip_init_done = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LwIP_DHCP_Process_Handle
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
uint8_t LwIP_DHCP(uint8_t idx, uint8_t dhcp_state)
|
||||
{
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
uint32_t IPaddress;
|
||||
uint8_t iptab[4];
|
||||
uint8_t DHCP_state;
|
||||
int mscnt = 0;
|
||||
struct netif *pnetif = NULL;
|
||||
|
||||
DHCP_state = dhcp_state;
|
||||
|
||||
#if !CONFIG_ETHERNET
|
||||
if(idx > 1)
|
||||
idx = 1;
|
||||
#endif
|
||||
|
||||
pnetif = &xnetif[idx];
|
||||
if(DHCP_state == 0){
|
||||
pnetif->ip_addr.addr = 0;
|
||||
pnetif->netmask.addr = 0;
|
||||
pnetif->gw.addr = 0;
|
||||
}
|
||||
|
||||
for (;;)
|
||||
{
|
||||
//printf(" ========DHCP_state:%d============\n",DHCP_state);
|
||||
switch (DHCP_state)
|
||||
{
|
||||
case DHCP_START:
|
||||
{
|
||||
#if CONFIG_WLAN
|
||||
wifi_unreg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl);
|
||||
#endif
|
||||
dhcp_start(pnetif);
|
||||
IPaddress = 0;
|
||||
DHCP_state = DHCP_WAIT_ADDRESS;
|
||||
}
|
||||
break;
|
||||
|
||||
case DHCP_WAIT_ADDRESS:
|
||||
{
|
||||
/* If DHCP stopped by wifi_disconn_hdl*/
|
||||
if(pnetif->dhcp->state == 0)
|
||||
{
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0 ,IP_ADDR1 , IP_ADDR2 , IP_ADDR3 );
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
printf("LwIP_DHCP: dhcp stop.\n");
|
||||
return DHCP_STOP;
|
||||
}
|
||||
|
||||
/* Read the new IP address */
|
||||
IPaddress = pnetif->ip_addr.addr;
|
||||
|
||||
if (IPaddress!=0)
|
||||
{
|
||||
DHCP_state = DHCP_ADDRESS_ASSIGNED;
|
||||
#if CONFIG_WLAN
|
||||
wifi_reg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl, NULL);
|
||||
#endif
|
||||
|
||||
/* Stop DHCP */
|
||||
// dhcp_stop(pnetif); /* can not stop, need to renew, Robbie*/
|
||||
|
||||
iptab[0] = (uint8_t)(IPaddress >> 24);
|
||||
iptab[1] = (uint8_t)(IPaddress >> 16);
|
||||
iptab[2] = (uint8_t)(IPaddress >> 8);
|
||||
iptab[3] = (uint8_t)(IPaddress);
|
||||
printf("Interface %d IP address : %d.%d.%d.%d\n", idx, iptab[3], iptab[2], iptab[1], iptab[0]);
|
||||
// printf("Time at start %d ms.\n", xTaskGetTickCount());
|
||||
#if CONFIG_WLAN
|
||||
error_flag = RTW_NO_ERROR;
|
||||
#endif
|
||||
return DHCP_ADDRESS_ASSIGNED;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* DHCP timeout */
|
||||
if (pnetif->dhcp->tries > MAX_DHCP_TRIES)
|
||||
{
|
||||
DHCP_state = DHCP_TIMEOUT;
|
||||
|
||||
/* Stop DHCP */
|
||||
dhcp_stop(pnetif);
|
||||
|
||||
/* Static address used */
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0 ,IP_ADDR1 , IP_ADDR2 , IP_ADDR3 );
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
|
||||
iptab[0] = IP_ADDR3;
|
||||
iptab[1] = IP_ADDR2;
|
||||
iptab[2] = IP_ADDR1;
|
||||
iptab[3] = IP_ADDR0;
|
||||
printf("Interface %d DHCP timeout\n",idx);
|
||||
printf("Static IP address : %d.%d.%d.%d\n", iptab[3], iptab[2], iptab[1], iptab[0]);
|
||||
#if CONFIG_WLAN
|
||||
error_flag = RTW_DHCP_FAIL;
|
||||
#endif
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
if(idx == NET_IF_NUM -1) // This is the ethernet interface, set it up for static ip address
|
||||
netif_set_up(pnetif);
|
||||
#endif
|
||||
return DHCP_TIMEOUT;
|
||||
}else
|
||||
{
|
||||
//sys_msleep(DHCP_FINE_TIMER_MSECS);
|
||||
vTaskDelay(DHCP_FINE_TIMER_MSECS);
|
||||
dhcp_fine_tmr();
|
||||
mscnt += DHCP_FINE_TIMER_MSECS;
|
||||
if (mscnt >= DHCP_COARSE_TIMER_SECS*1000)
|
||||
{
|
||||
dhcp_coarse_tmr();
|
||||
mscnt = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DHCP_RELEASE_IP:
|
||||
#if CONFIG_WLAN
|
||||
wifi_unreg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl);
|
||||
#endif
|
||||
printf("LwIP_DHCP: Release ip\n");
|
||||
dhcp_release_unicast(pnetif);
|
||||
return DHCP_RELEASE_IP;
|
||||
case DHCP_STOP:
|
||||
#if CONFIG_WLAN
|
||||
wifi_unreg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl);
|
||||
#endif
|
||||
printf("LwIP_DHCP: dhcp stop.\n");
|
||||
dhcp_stop(pnetif);
|
||||
return DHCP_STOP;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void LwIP_ReleaseIP(uint8_t idx)
|
||||
{
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
struct netif *pnetif = &xnetif[idx];
|
||||
|
||||
IP4_ADDR(&ipaddr, 0, 0, 0, 0);
|
||||
IP4_ADDR(&netmask, 255, 255, 255, 0);
|
||||
IP4_ADDR(&gw, 0, 0, 0, 0);
|
||||
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetMAC(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) (pnetif->hwaddr);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetIP(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->ip_addr);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetGW(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->gw);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetMASK(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->netmask);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetBC(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->dhcp->offered_bc_addr);
|
||||
}
|
||||
|
||||
#if LWIP_DNS
|
||||
void LwIP_GetDNS(struct ip_addr* dns)
|
||||
{
|
||||
*dns = dns_getserver(0);
|
||||
}
|
||||
|
||||
void LwIP_SetDNS(struct ip_addr* dns)
|
||||
{
|
||||
dns_setserver(0, dns);
|
||||
}
|
||||
#endif
|
||||
void LwIP_UseStaticIP(struct netif *pnetif)
|
||||
{
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
|
||||
/* Static address used */
|
||||
if(pnetif->name[1] == '0'){
|
||||
#if CONFIG_WLAN
|
||||
if(wifi_mode == RTW_MODE_STA){
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0 ,IP_ADDR1 , IP_ADDR2 , IP_ADDR3 );
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
}
|
||||
else if(wifi_mode == RTW_MODE_AP){
|
||||
IP4_ADDR(&ipaddr, AP_IP_ADDR0, AP_IP_ADDR1, AP_IP_ADDR2, AP_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, AP_NETMASK_ADDR0, AP_NETMASK_ADDR1 , AP_NETMASK_ADDR2, AP_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, AP_GW_ADDR0, AP_GW_ADDR1, AP_GW_ADDR2, AP_GW_ADDR3);
|
||||
}
|
||||
#endif
|
||||
}else{
|
||||
IP4_ADDR(&ipaddr, AP_IP_ADDR0, AP_IP_ADDR1, AP_IP_ADDR2, AP_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, AP_NETMASK_ADDR0, AP_NETMASK_ADDR1 , AP_NETMASK_ADDR2, AP_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, AP_GW_ADDR0, AP_GW_ADDR1, AP_GW_ADDR2, AP_GW_ADDR3);
|
||||
}
|
||||
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
}
|
||||
#if LWIP_AUTOIP
|
||||
#include <lwip/autoip.h>
|
||||
|
||||
void LwIP_AUTOIP(struct netif *pnetif)
|
||||
{
|
||||
uint8_t *ip = LwIP_GetIP(pnetif);
|
||||
|
||||
autoip_start(pnetif);
|
||||
|
||||
while((pnetif->autoip->state == AUTOIP_STATE_PROBING) || (pnetif->autoip->state == AUTOIP_STATE_ANNOUNCING)) {
|
||||
vTaskDelay(1000);
|
||||
}
|
||||
|
||||
if(*((uint32_t *) ip) == 0) {
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
|
||||
printf("AUTOIP timeout\n");
|
||||
|
||||
/* Static address used */
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0 ,IP_ADDR1 , IP_ADDR2 , IP_ADDR3 );
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
printf("Static IP address : %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
}
|
||||
else {
|
||||
printf("Link-local address: %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#if LWIP_IPV6
|
||||
/* Get IPv6 address with lwip 1.5.0 */
|
||||
void LwIP_AUTOIP_IPv6(struct netif *pnetif)
|
||||
{
|
||||
uint8_t *ipv6 = (uint8_t *) &(pnetif->ip6_addr[0].addr[0]);
|
||||
|
||||
netif_create_ip6_linklocal_address(pnetif, 1);
|
||||
printf("IPv6 link-local address: %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x\n",
|
||||
ipv6[0], ipv6[1], ipv6[2], ipv6[3], ipv6[4], ipv6[5], ipv6[6], ipv6[7],
|
||||
ipv6[8], ipv6[9], ipv6[10], ipv6[11], ipv6[12], ipv6[13], ipv6[14], ipv6[15]);
|
||||
}
|
||||
#endif
|
|
@ -1,91 +0,0 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file netconf.h
|
||||
* @author MCD Application Team
|
||||
* @version V1.1.0
|
||||
* @date 07-October-2011
|
||||
* @brief This file contains all the functions prototypes for the netconf.c
|
||||
* file.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __NETCONF_H
|
||||
#define __NETCONF_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "tcpip.h"
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include <platform/platform_stdlib.h>
|
||||
#include "platform_opts.h"
|
||||
#include "autoconf.h"
|
||||
|
||||
// macros
|
||||
/* Give default value if not defined */
|
||||
#ifndef NET_IF_NUM
|
||||
#ifdef CONFIG_CONCURRENT_MODE
|
||||
#define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN) + 1)
|
||||
#else
|
||||
#define NET_IF_NUM ((CONFIG_ETHERNET) + (CONFIG_WLAN))
|
||||
#endif // end of CONFIG_CONCURRENT_MODE
|
||||
#endif // end of NET_IF_NUM
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
typedef enum
|
||||
{
|
||||
DHCP_START=0,
|
||||
DHCP_WAIT_ADDRESS,
|
||||
DHCP_ADDRESS_ASSIGNED,
|
||||
DHCP_RELEASE_IP,
|
||||
DHCP_STOP,
|
||||
DHCP_TIMEOUT
|
||||
} DHCP_State_TypeDef;
|
||||
|
||||
/* Extern functions ------------------------------------------------------------*/
|
||||
void wifi_rx_beacon_hdl( char* buf, int buf_len, int flags, void* userdata);
|
||||
|
||||
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
void LwIP_Init(void);
|
||||
uint8_t LwIP_DHCP(uint8_t idx, uint8_t dhcp_state);
|
||||
unsigned char* LwIP_GetMAC(struct netif *pnetif);
|
||||
unsigned char* LwIP_GetIP(struct netif *pnetif);
|
||||
unsigned char* LwIP_GetGW(struct netif *pnetif);
|
||||
uint8_t* LwIP_GetMASK(struct netif *pnetif);
|
||||
uint8_t* LwIP_GetBC(struct netif *pnetif);
|
||||
#if LWIP_DNS
|
||||
void LwIP_GetDNS(struct ip_addr* dns);
|
||||
void LwIP_SetDNS(struct ip_addr* dns);
|
||||
#endif
|
||||
void LwIP_UseStaticIP(struct netif *pnetif);
|
||||
#if LWIP_AUTOIP
|
||||
void LwIP_AUTOIP(struct netif *pnetif);
|
||||
#endif
|
||||
#if LWIP_IPV6
|
||||
void LwIP_AUTOIP_IPv6(struct netif *pnetif);
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __NETCONF_H */
|
||||
|
||||
|
||||
/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
|
|
@ -1,405 +0,0 @@
|
|||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "lwip/mem.h"
|
||||
#include "lwip/memp.h"
|
||||
#include "lwip/dhcp.h"
|
||||
#include "lwip/dns.h"
|
||||
#include "ethernetif.h"
|
||||
#include "main.h"
|
||||
#include "lwip_netconf.h"
|
||||
#if CONFIG_WLAN
|
||||
#include "wifi_ind.h"
|
||||
#endif
|
||||
#if defined(STM32F2XX)
|
||||
#include "stm322xg_eval_lcd.h"
|
||||
#elif defined(STM32F4XX)
|
||||
#include "stm324xg_eval_lcd.h"
|
||||
#endif
|
||||
#include <platform/platform_stdlib.h>
|
||||
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef IP_ADDR0
|
||||
#define IP_ADDR0 192
|
||||
#define IP_ADDR1 168
|
||||
#define IP_ADDR2 1
|
||||
#define IP_ADDR3 80
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef NETMASK_ADDR0
|
||||
#define NETMASK_ADDR0 255
|
||||
#define NETMASK_ADDR1 255
|
||||
#define NETMASK_ADDR2 255
|
||||
#define NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef GW_ADDR0
|
||||
#define GW_ADDR0 192
|
||||
#define GW_ADDR1 168
|
||||
#define GW_ADDR2 1
|
||||
#define GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*Static IP ADDRESS*/
|
||||
#ifndef AP_IP_ADDR0
|
||||
#define AP_IP_ADDR0 192
|
||||
#define AP_IP_ADDR1 168
|
||||
#define AP_IP_ADDR2 43
|
||||
#define AP_IP_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*NETMASK*/
|
||||
#ifndef AP_NETMASK_ADDR0
|
||||
#define AP_NETMASK_ADDR0 255
|
||||
#define AP_NETMASK_ADDR1 255
|
||||
#define AP_NETMASK_ADDR2 255
|
||||
#define AP_NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway Address*/
|
||||
#ifndef AP_GW_ADDR0
|
||||
#define AP_GW_ADDR0 192
|
||||
#define AP_GW_ADDR1 168
|
||||
#define AP_GW_ADDR2 43
|
||||
#define AP_GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/*Static IP ADDRESS FOR ETHERNET*/
|
||||
#ifndef ETH_IP_ADDR0
|
||||
#define ETH_IP_ADDR0 192
|
||||
#define ETH_IP_ADDR1 168
|
||||
#define ETH_IP_ADDR2 0
|
||||
#define ETH_IP_ADDR3 80
|
||||
#endif
|
||||
|
||||
/*NETMASK FOR ETHERNET*/
|
||||
#ifndef ETH_NETMASK_ADDR0
|
||||
#define ETH_NETMASK_ADDR0 255
|
||||
#define ETH_NETMASK_ADDR1 255
|
||||
#define ETH_NETMASK_ADDR2 255
|
||||
#define ETH_NETMASK_ADDR3 0
|
||||
#endif
|
||||
|
||||
/*Gateway address for ethernet*/
|
||||
#ifndef ETH_GW_ADDR0
|
||||
#define ETH_GW_ADDR0 192
|
||||
#define ETH_GW_ADDR1 168
|
||||
#define ETH_GW_ADDR2 0
|
||||
#define ETH_GW_ADDR3 1
|
||||
#endif
|
||||
|
||||
/* Private define ------------------------------------------------------------*/
|
||||
#define MAX_DHCP_TRIES 5
|
||||
|
||||
/* Private macro -------------------------------------------------------------*/
|
||||
/* Private variables ---------------------------------------------------------*/
|
||||
|
||||
struct netif xnetif[NET_IF_NUM]; /* network interface structure */
|
||||
/* Private functions ---------------------------------------------------------*/
|
||||
/**
|
||||
* @brief Initializes the lwIP stack
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
#if CONFIG_WLAN
|
||||
extern char error_flag;
|
||||
extern unsigned char wifi_mode; // rtw_mode_t
|
||||
#endif
|
||||
|
||||
int lwip_init_done = 0;
|
||||
|
||||
void LwIP_Init(void)
|
||||
{
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
int8_t idx = 0;
|
||||
/* Create tcp_ip stack thread */
|
||||
tcpip_init( NULL, NULL );
|
||||
|
||||
/* - netif_add(struct netif *netif, struct ip_addr *ipaddr,
|
||||
struct ip_addr *netmask, struct ip_addr *gw,
|
||||
void *state, err_t (* init)(struct netif *netif),
|
||||
err_t (* input)(struct pbuf *p, struct netif *netif))
|
||||
|
||||
Adds your network interface to the netif_list. Allocate a struct
|
||||
netif and pass a pointer to this structure as the first argument.
|
||||
Give pointers to cleared ip_addr structures when using DHCP,
|
||||
or fill them with sane numbers otherwise. The state pointer may be NULL.
|
||||
|
||||
The init function pointer must point to a initialization function for
|
||||
your ethernet netif interface. The following code illustrates it's use.*/
|
||||
//printf("NET_IF_NUM:%d\n\r",NET_IF_NUM);
|
||||
for(idx = NET_IF_NUM - 1; idx >= 0 ; idx--) {
|
||||
if(idx == 0){
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0, IP_ADDR1, IP_ADDR2, IP_ADDR3);
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1 , NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
}
|
||||
#if CONFIG_ETHERNET
|
||||
else if(idx == NET_IF_NUM - 1)
|
||||
{
|
||||
IP4_ADDR(&ipaddr, ETH_IP_ADDR0, ETH_IP_ADDR1, ETH_IP_ADDR2, ETH_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, ETH_NETMASK_ADDR0, ETH_NETMASK_ADDR1 , ETH_NETMASK_ADDR2, ETH_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, ETH_GW_ADDR0, ETH_GW_ADDR1, ETH_GW_ADDR2, ETH_GW_ADDR3);
|
||||
}
|
||||
#endif
|
||||
else {
|
||||
IP4_ADDR(&ipaddr, AP_IP_ADDR0, AP_IP_ADDR1, AP_IP_ADDR2, AP_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, AP_NETMASK_ADDR0, AP_NETMASK_ADDR1 , AP_NETMASK_ADDR2, AP_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, AP_GW_ADDR0, AP_GW_ADDR1, AP_GW_ADDR2, AP_GW_ADDR3);
|
||||
}
|
||||
xnetif[idx].name[0] = 'r';
|
||||
xnetif[idx].name[1] = '0'+idx;
|
||||
|
||||
#if CONFIG_ETHERNET
|
||||
if(idx == NET_IF_NUM - 1)
|
||||
netif_add(&xnetif[idx], &ipaddr, &netmask, &gw, NULL, ðernetif_mii_init, &tcpip_input);
|
||||
else
|
||||
netif_add(&xnetif[idx], &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
|
||||
#else
|
||||
netif_add(&xnetif[idx], &ipaddr, &netmask, &gw, NULL, ðernetif_init, &tcpip_input);
|
||||
#endif
|
||||
info_printf("interface %d is initialized\n", idx);
|
||||
}
|
||||
|
||||
/* Registers the default network interface. */
|
||||
netif_set_default(&xnetif[0]);
|
||||
|
||||
/* When the netif is fully configured this function must be called.*/
|
||||
for(idx = 0; idx < NET_IF_NUM; idx++)
|
||||
netif_set_up(&xnetif[idx]);
|
||||
|
||||
lwip_init_done = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief LwIP_DHCP_Process_Handle
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
uint8_t LwIP_DHCP(uint8_t idx, uint8_t dhcp_state) {
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
uint32_t IPaddress;
|
||||
uint8_t iptab[4];
|
||||
uint8_t DHCP_state;
|
||||
int mscnt = 0;
|
||||
struct netif *pnetif = NULL;
|
||||
|
||||
DHCP_state = dhcp_state;
|
||||
|
||||
#if !CONFIG_ETHERNET
|
||||
if (idx > 1)
|
||||
idx = 1;
|
||||
#endif
|
||||
|
||||
pnetif = &xnetif[idx];
|
||||
if (DHCP_state == 0) {
|
||||
pnetif->ip_addr.addr = 0;
|
||||
pnetif->netmask.addr = 0;
|
||||
pnetif->gw.addr = 0;
|
||||
}
|
||||
|
||||
for (;;) {
|
||||
//info_printf("\n\r ========DHCP_state:%d============\n\r",DHCP_state);
|
||||
switch (DHCP_state) {
|
||||
case DHCP_START: {
|
||||
#if CONFIG_WLAN
|
||||
wifi_unreg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl);
|
||||
#endif
|
||||
dhcp_start(pnetif);
|
||||
IPaddress = 0;
|
||||
DHCP_state = DHCP_WAIT_ADDRESS;
|
||||
}
|
||||
break;
|
||||
|
||||
case DHCP_WAIT_ADDRESS: {
|
||||
/* Read the new IP address */
|
||||
IPaddress = pnetif->ip_addr.addr;
|
||||
|
||||
if (IPaddress != 0) {
|
||||
DHCP_state = DHCP_ADDRESS_ASSIGNED;
|
||||
#if CONFIG_WLAN
|
||||
wifi_reg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl, NULL);
|
||||
#endif
|
||||
|
||||
/* Stop DHCP */
|
||||
// dhcp_stop(pnetif); /* can not stop, need to renew, Robbie*/
|
||||
iptab[0] = (uint8_t) (IPaddress >> 24);
|
||||
iptab[1] = (uint8_t) (IPaddress >> 16);
|
||||
iptab[2] = (uint8_t) (IPaddress >> 8);
|
||||
iptab[3] = (uint8_t) (IPaddress);
|
||||
info_printf("Interface %d IP address: %d.%d.%d.%d\n", idx, iptab[3],
|
||||
iptab[2], iptab[1], iptab[0]);
|
||||
#if CONFIG_WLAN
|
||||
error_flag = RTW_NO_ERROR;
|
||||
#endif
|
||||
return DHCP_ADDRESS_ASSIGNED;
|
||||
} else {
|
||||
/* DHCP timeout */
|
||||
if (pnetif->dhcp->tries > MAX_DHCP_TRIES) {
|
||||
DHCP_state = DHCP_TIMEOUT;
|
||||
|
||||
/* Stop DHCP */
|
||||
dhcp_stop(pnetif);
|
||||
|
||||
/* Static address used */
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0, IP_ADDR1, IP_ADDR2, IP_ADDR3);
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
netif_set_addr(pnetif, &ipaddr, &netmask, &gw);
|
||||
|
||||
iptab[0] = IP_ADDR3;
|
||||
iptab[1] = IP_ADDR2;
|
||||
iptab[2] = IP_ADDR1;
|
||||
iptab[3] = IP_ADDR0;
|
||||
info_printf("Interface %d DHCP timeout\n", idx);
|
||||
info_printf("Static IP address: %d.%d.%d.%d\n", iptab[3], iptab[2], iptab[1], iptab[0]);
|
||||
#if CONFIG_WLAN
|
||||
error_flag = RTW_DHCP_FAIL;
|
||||
#endif
|
||||
return DHCP_TIMEOUT;
|
||||
} else {
|
||||
//sys_msleep(DHCP_FINE_TIMER_MSECS);
|
||||
vTaskDelay(DHCP_FINE_TIMER_MSECS);
|
||||
dhcp_fine_tmr();
|
||||
mscnt += DHCP_FINE_TIMER_MSECS;
|
||||
if (mscnt >= DHCP_COARSE_TIMER_SECS * 1000) {
|
||||
dhcp_coarse_tmr();
|
||||
mscnt = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
break;
|
||||
case DHCP_RELEASE_IP:
|
||||
#if CONFIG_WLAN
|
||||
wifi_unreg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl);
|
||||
#endif
|
||||
info_printf("LwIP_DHCP(%d): Release ip\n", idx);
|
||||
dhcp_release_unicast(pnetif);
|
||||
return DHCP_RELEASE_IP;
|
||||
case DHCP_STOP:
|
||||
#if CONFIG_WLAN
|
||||
wifi_unreg_event_handler(WIFI_EVENT_BEACON_AFTER_DHCP, wifi_rx_beacon_hdl);
|
||||
#endif
|
||||
info_printf("LwIP_DHCP(%d): dhcp stop.\n", idx);
|
||||
dhcp_stop(pnetif);
|
||||
return DHCP_STOP;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetMAC(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) (pnetif->hwaddr);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetIP(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->ip_addr);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetGW(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->gw);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetMASK(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->netmask);
|
||||
}
|
||||
|
||||
uint8_t* LwIP_GetBC(struct netif *pnetif)
|
||||
{
|
||||
return (uint8_t *) &(pnetif->dhcp->offered_bc_addr);
|
||||
}
|
||||
|
||||
#if LWIP_DNS
|
||||
void LwIP_GetDNS(struct ip_addr* dns)
|
||||
{
|
||||
*dns = dns_getserver(0);
|
||||
}
|
||||
|
||||
void LwIP_SetDNS(struct ip_addr* dns)
|
||||
{
|
||||
dns_setserver(0, dns);
|
||||
}
|
||||
#endif
|
||||
void LwIP_UseStaticIP(struct netif *pnetif)
|
||||
{
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
|
||||
/* Static address used */
|
||||
if(pnetif->name[1] == '0'){
|
||||
#if CONFIG_WLAN
|
||||
if(wifi_mode == RTW_MODE_STA){
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0 ,IP_ADDR1 , IP_ADDR2 , IP_ADDR3 );
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
}
|
||||
else if(wifi_mode == RTW_MODE_AP){
|
||||
IP4_ADDR(&ipaddr, AP_IP_ADDR0, AP_IP_ADDR1, AP_IP_ADDR2, AP_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, AP_NETMASK_ADDR0, AP_NETMASK_ADDR1 , AP_NETMASK_ADDR2, AP_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, AP_GW_ADDR0, AP_GW_ADDR1, AP_GW_ADDR2, AP_GW_ADDR3);
|
||||
}
|
||||
#endif
|
||||
}else{
|
||||
IP4_ADDR(&ipaddr, AP_IP_ADDR0, AP_IP_ADDR1, AP_IP_ADDR2, AP_IP_ADDR3);
|
||||
IP4_ADDR(&netmask, AP_NETMASK_ADDR0, AP_NETMASK_ADDR1 , AP_NETMASK_ADDR2, AP_NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, AP_GW_ADDR0, AP_GW_ADDR1, AP_GW_ADDR2, AP_GW_ADDR3);
|
||||
}
|
||||
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
}
|
||||
#if LWIP_AUTOIP
|
||||
#include <lwip/autoip.h>
|
||||
|
||||
void LwIP_AUTOIP(struct netif *pnetif)
|
||||
{
|
||||
uint8_t *ip = LwIP_GetIP(pnetif);
|
||||
|
||||
autoip_start(pnetif);
|
||||
|
||||
while((pnetif->autoip->state == AUTOIP_STATE_PROBING) || (pnetif->autoip->state == AUTOIP_STATE_ANNOUNCING)) {
|
||||
vTaskDelay(1000);
|
||||
}
|
||||
|
||||
if(*((uint32_t *) ip) == 0) {
|
||||
struct ip_addr ipaddr;
|
||||
struct ip_addr netmask;
|
||||
struct ip_addr gw;
|
||||
|
||||
printf("AUTOIP timeout\n");
|
||||
|
||||
/* Static address used */
|
||||
IP4_ADDR(&ipaddr, IP_ADDR0 ,IP_ADDR1 , IP_ADDR2 , IP_ADDR3 );
|
||||
IP4_ADDR(&netmask, NETMASK_ADDR0, NETMASK_ADDR1, NETMASK_ADDR2, NETMASK_ADDR3);
|
||||
IP4_ADDR(&gw, GW_ADDR0, GW_ADDR1, GW_ADDR2, GW_ADDR3);
|
||||
netif_set_addr(pnetif, &ipaddr , &netmask, &gw);
|
||||
printf("Static IP address : %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
}
|
||||
else {
|
||||
printf("Link-local address: %d.%d.%d.%d\n", ip[0], ip[1], ip[2], ip[3]);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
#if LWIP_IPV6
|
||||
/* Get IPv6 address with lwip 1.5.0 */
|
||||
void LwIP_AUTOIP_IPv6(struct netif *pnetif)
|
||||
{
|
||||
uint8_t *ipv6 = (uint8_t *) &(pnetif->ip6_addr[0].addr[0]);
|
||||
|
||||
netif_create_ip6_linklocal_address(pnetif, 1);
|
||||
printf("IPv6 link-local address: %02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x:%02x%02x\n",
|
||||
ipv6[0], ipv6[1], ipv6[2], ipv6[3], ipv6[4], ipv6[5], ipv6[6], ipv6[7],
|
||||
ipv6[8], ipv6[9], ipv6[10], ipv6[11], ipv6[12], ipv6[13], ipv6[14], ipv6[15]);
|
||||
}
|
||||
#endif
|
|
@ -1,21 +0,0 @@
|
|||
//----------------------------------------------------------------------------//
|
||||
#ifndef __MAIN_TEST_H
|
||||
#define __MAIN_TEST_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* Exported test functions ------------------------------------------------------- */
|
||||
void do_ping_test(char *ip, int size, int count, int interval);
|
||||
void do_ping_call(char *ip, int loop, int count);
|
||||
void interactive_question(char *question, char *choice, char *buf, int buf_size);
|
||||
void start_interactive_mode(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // __MAIN_TEST_H
|
||||
|
||||
//----------------------------------------------------------------------------//
|
|
@ -1,50 +0,0 @@
|
|||
/**
|
||||
******************************************************************************
|
||||
* @file netconf.h
|
||||
* @author MCD Application Team
|
||||
* @version V1.1.0
|
||||
* @date 07-October-2011
|
||||
* @brief This file contains all the functions prototypes for the netconf.c
|
||||
* file.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS
|
||||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE
|
||||
* TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY
|
||||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING
|
||||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE
|
||||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.
|
||||
*
|
||||
* <h2><center>© COPYRIGHT 2011 STMicroelectronics</center></h2>
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Define to prevent recursive inclusion -------------------------------------*/
|
||||
#ifndef __NETCONF_H
|
||||
#define __NETCONF_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
// TODO: remove this file
|
||||
#include "lwip_netconf.h"
|
||||
#if 0
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "main.h"
|
||||
/* Exported types ------------------------------------------------------------*/
|
||||
/* Exported constants --------------------------------------------------------*/
|
||||
/* Exported macro ------------------------------------------------------------*/
|
||||
/* Exported functions ------------------------------------------------------- */
|
||||
void LwIP_Init(void);
|
||||
void LwIP_DHCP(void);
|
||||
#endif
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __NETCONF_H */
|
||||
|
||||
|
||||
/******************* (C) COPYRIGHT 2011 STMicroelectronics *****END OF FILE****/
|
|
@ -1,8 +0,0 @@
|
|||
|
||||
#ifndef __RTL8195A_IT_H_
|
||||
#define __RTL8195A_IT_H_
|
||||
|
||||
|
||||
int irq_alloc_wlan(void *contex);
|
||||
|
||||
#endif //__RTL8195A_IT_H_
|
|
@ -1,47 +0,0 @@
|
|||
#ifndef _UTIL_H
|
||||
#define _UTIL_H
|
||||
|
||||
#include <wireless.h>
|
||||
#include <wlan_intf.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "wifi_util.h"
|
||||
#if 0
|
||||
typedef enum _WIFI_EVENT_INDICATE{
|
||||
WIFI_EVENT_CONNECT = 0,
|
||||
WIFI_EVENT_DISCONNECT = 1,
|
||||
WIFI_EVENT_FOURWAY_HANDSHAKE_DONE = 2,
|
||||
}WIFI_EVENT_INDICATE;
|
||||
rtw_event_indicate_t
|
||||
|
||||
int wext_get_ssid(const char *ifname, __u8 *ssid);
|
||||
int wext_set_ssid(const char *ifname, const __u8 *ssid, __u16 ssid_len);
|
||||
int wext_set_auth_param(const char *ifname, __u16 idx, __u32 value);
|
||||
int wext_set_key_ext(const char *ifname, __u16 alg, const __u8 *addr, int key_idx, int set_tx, const __u8 *seq, __u16 seq_len, __u8 *key, __u16 key_len);
|
||||
int wext_get_enc_ext(const char *ifname, __u16 *alg);
|
||||
int wext_set_passphrase(const char *ifname, const __u8 *passphrase, __u16 passphrase_len);
|
||||
int wext_get_passphrase(const char *ifname, __u8 *passphrase);
|
||||
int wext_set_mode(const char *ifname, int mode);
|
||||
int wext_get_mode(const char *ifname, int *mode);
|
||||
int wext_set_ap_ssid(const char *ifname, const __u8 *ssid, __u16 ssid_len);
|
||||
int wext_set_country(const char *ifname, char *country_code);
|
||||
int wext_get_rssi(const char *ifname, int *rssi);
|
||||
int wext_set_channel(const char *ifname, __u8 ch);
|
||||
int wext_get_channel(const char *ifname, __u8 *ch);
|
||||
int wext_set_scan(const char *ifname, char *buf, __u16 buf_len);
|
||||
int wext_get_scan(const char *ifname, char *buf, __u16 buf_len);
|
||||
int wext_mp_command(const char *ifname, char *cmd, int show_msg);
|
||||
int wext_wifi_priv(const char *ifname, int argc, char **argv);
|
||||
void wext_wlan_indicate(unsigned int cmd, union iwreq_data *wrqu, char *extra);
|
||||
#endif
|
||||
|
||||
#define wext_handshake_done rltk_wlan_handshake_done
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _UTIL_H */
|
|
@ -1,222 +0,0 @@
|
|||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "main.h"
|
||||
|
||||
#include <lwip/sockets.h>
|
||||
#if LWIP_SOCKET
|
||||
#include <lwip/raw.h>
|
||||
#include <lwip/icmp.h>
|
||||
#include <lwip/inet_chksum.h>
|
||||
#include <platform/platform_stdlib.h>
|
||||
|
||||
//#define PING_IP "192.168.0.1"
|
||||
#define PING_IP "192.168.159.1"
|
||||
#define PING_TO 1000
|
||||
#define PING_ID 0xABCD
|
||||
#define BUF_SIZE 10000
|
||||
#define STACKSIZE 1024
|
||||
|
||||
static unsigned short ping_seq = 0;
|
||||
static int infinite_loop, ping_count, data_size, ping_interval, ping_call;
|
||||
static char ping_ip[16];
|
||||
|
||||
static void generate_ping_echo(unsigned char *buf, int size)
|
||||
{
|
||||
int i;
|
||||
struct icmp_echo_hdr *pecho;
|
||||
|
||||
for(i = 0; i < size; i ++) {
|
||||
buf[sizeof(struct icmp_echo_hdr) + i] = (unsigned char) i;
|
||||
}
|
||||
|
||||
pecho = (struct icmp_echo_hdr *) buf;
|
||||
ICMPH_TYPE_SET(pecho, ICMP_ECHO);
|
||||
ICMPH_CODE_SET(pecho, 0);
|
||||
pecho->chksum = 0;
|
||||
pecho->id = PING_ID;
|
||||
pecho->seqno = htons(++ ping_seq);
|
||||
|
||||
//Checksum includes icmp header and data. Need to calculate after fill up icmp header
|
||||
pecho->chksum = inet_chksum(pecho, sizeof(struct icmp_echo_hdr) + size);
|
||||
}
|
||||
|
||||
void ping_test(void *param)
|
||||
//void ping_test()
|
||||
{
|
||||
int i, ping_socket;
|
||||
int pint_timeout = PING_TO;
|
||||
struct sockaddr_in to_addr, from_addr;
|
||||
int from_addr_len = sizeof(struct sockaddr);
|
||||
int ping_size, reply_size;
|
||||
unsigned char *ping_buf, *reply_buf;
|
||||
unsigned int ping_time, reply_time;
|
||||
struct ip_hdr *iphdr;
|
||||
struct icmp_echo_hdr *pecho;
|
||||
|
||||
if(data_size > BUF_SIZE){
|
||||
printf("[ERROR] %s: data size error, can't exceed %d\n",__func__,BUF_SIZE);
|
||||
return;
|
||||
}
|
||||
|
||||
//Ping size = icmp header(8 bytes) + data size
|
||||
ping_size = sizeof(struct icmp_echo_hdr) + data_size;
|
||||
|
||||
ping_buf = pvPortMalloc(ping_size);
|
||||
if(NULL == ping_buf){
|
||||
printf("[ERROR] %s: Allocate ping_buf failed\n",__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
reply_buf = pvPortMalloc(ping_size);
|
||||
if(NULL == reply_buf){
|
||||
vPortFree(ping_buf);
|
||||
printf("[ERROR] %s: Allocate reply_buf failed\n",__func__);
|
||||
return;
|
||||
}
|
||||
|
||||
printf("[%s] PING %s %d(%d) bytes of data\n", __FUNCTION__, ping_ip, data_size, sizeof(struct ip_hdr) + sizeof(struct icmp_echo_hdr) + data_size);
|
||||
|
||||
for(i = 0; (i < ping_count) || (infinite_loop == 1); i ++) {
|
||||
ping_socket = socket(AF_INET, SOCK_RAW, IP_PROTO_ICMP);
|
||||
#ifdef CONFIG_LWIP_1_5_0
|
||||
struct timeval timeout;
|
||||
timeout.tv_sec = pint_timeout / 1000;
|
||||
timeout.tv_usec = pint_timeout % 1000 * 1000;
|
||||
setsockopt(ping_socket, SOL_SOCKET, SO_RCVTIMEO, &timeout, sizeof(timeout));
|
||||
#else
|
||||
setsockopt(ping_socket, SOL_SOCKET, SO_RCVTIMEO, &pint_timeout, sizeof(pint_timeout));
|
||||
#endif
|
||||
to_addr.sin_len = sizeof(to_addr);
|
||||
to_addr.sin_family = AF_INET;
|
||||
to_addr.sin_addr.s_addr = inet_addr(ping_ip);
|
||||
|
||||
generate_ping_echo(ping_buf, data_size);
|
||||
sendto(ping_socket, ping_buf, ping_size, 0, (struct sockaddr *) &to_addr, sizeof(to_addr));
|
||||
|
||||
ping_time = xTaskGetTickCount();
|
||||
if((reply_size = recvfrom(ping_socket, reply_buf, ping_size, 0, (struct sockaddr *) &from_addr, (socklen_t *) &from_addr_len))
|
||||
>= (int)(sizeof(struct ip_hdr) + sizeof(struct icmp_echo_hdr))) {
|
||||
|
||||
reply_time = xTaskGetTickCount();
|
||||
iphdr = (struct ip_hdr *)reply_buf;
|
||||
pecho = (struct icmp_echo_hdr *)(reply_buf + (IPH_HL(iphdr) * 4));
|
||||
|
||||
if((pecho->id == PING_ID) && (pecho->seqno == htons(ping_seq))) {
|
||||
printf("[%s] %d bytes from %s: icmp_seq=%d time=%d ms\n", __FUNCTION__, reply_size - sizeof(struct ip_hdr), inet_ntoa(from_addr.sin_addr), htons(pecho->seqno), (reply_time - ping_time) * portTICK_RATE_MS);
|
||||
}
|
||||
}
|
||||
else
|
||||
printf("[%s] Request timeout for icmp_seq %d\n", __FUNCTION__, ping_seq);
|
||||
|
||||
close(ping_socket);
|
||||
vTaskDelay(ping_interval * configTICK_RATE_HZ);
|
||||
}
|
||||
|
||||
vPortFree(ping_buf);
|
||||
vPortFree(reply_buf);
|
||||
|
||||
if(!ping_call)
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
||||
void do_ping_call(char *ip, int loop, int count)
|
||||
{
|
||||
ping_call = 1;
|
||||
ping_seq = 0;
|
||||
data_size = 120;
|
||||
ping_interval = 1;
|
||||
infinite_loop = loop;
|
||||
ping_count = count;
|
||||
strcpy(ping_ip, ip);
|
||||
ping_test(NULL);
|
||||
}
|
||||
|
||||
void cmd_ping(int argc, char **argv)
|
||||
{
|
||||
int argv_count = 2;
|
||||
|
||||
if(argc < 2)
|
||||
goto Exit;
|
||||
|
||||
//ping cmd default value
|
||||
infinite_loop = 0;
|
||||
ping_count = 4;
|
||||
data_size = 32;
|
||||
ping_interval = 1;
|
||||
ping_call = 1;
|
||||
ping_seq = 0;
|
||||
|
||||
while(argv_count<=argc){
|
||||
//first operation
|
||||
if(argv_count == 2){
|
||||
memset(ping_ip, 0, sizeof(ping_ip));
|
||||
strncpy(ping_ip, argv[argv_count-1], (strlen(argv[argv_count-1])>16)?16:strlen(argv[argv_count-1]));
|
||||
argv_count++;
|
||||
}
|
||||
else{
|
||||
if(strcmp(argv[argv_count-1], "-t") == 0){
|
||||
infinite_loop = 1;
|
||||
argv_count++;
|
||||
}
|
||||
else if(strcmp(argv[argv_count-1], "-n") == 0){
|
||||
if(argc < (argv_count+1))
|
||||
goto Exit;
|
||||
ping_count = (int) atoi(argv[argv_count]);
|
||||
argv_count+=2;
|
||||
}
|
||||
else if(strcmp(argv[argv_count-1], "-l") == 0){
|
||||
if(argc < (argv_count+1))
|
||||
goto Exit;
|
||||
data_size = (int) atoi(argv[argv_count]);
|
||||
argv_count+=2;
|
||||
}
|
||||
else{
|
||||
goto Exit;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
ping_test(NULL);
|
||||
|
||||
return;
|
||||
|
||||
Exit:
|
||||
printf("[ATWI] Usage: ATWI=[host],[options]\n");
|
||||
printf("\t-t\tPing the specified host until stopped\n");
|
||||
printf("\t-n\t# Number of echo requests to send (default 4 times)\n");
|
||||
printf("\t-l\t# Send buffer size (default 32 bytes)\n");
|
||||
printf("\tExample:\n");
|
||||
printf("\t\tATWI=192.168.1.2,-n,100,-l,5000\n");
|
||||
return;
|
||||
}
|
||||
|
||||
void do_ping_test(char *ip, int size, int count, int interval)
|
||||
{
|
||||
if((sizeof(struct icmp_echo_hdr) + size) > BUF_SIZE) {
|
||||
printf("%s BUF_SIZE(%d) is too small\n", __FUNCTION__, BUF_SIZE);
|
||||
return;
|
||||
}
|
||||
|
||||
if(ip == NULL)
|
||||
strcpy(ping_ip, PING_IP);
|
||||
else
|
||||
strcpy(ping_ip, ip);
|
||||
|
||||
ping_call = 0;
|
||||
ping_seq = 0;
|
||||
data_size = size;
|
||||
ping_interval = interval;
|
||||
|
||||
if(count == 0) {
|
||||
infinite_loop = 1;
|
||||
ping_count = 0;
|
||||
}
|
||||
else {
|
||||
infinite_loop = 0;
|
||||
ping_count = count;
|
||||
}
|
||||
|
||||
if(xTaskCreate(ping_test, ((const signed char*)"ping_test"), STACKSIZE, NULL, tskIDLE_PRIORITY + 1, NULL) != pdPASS)
|
||||
printf("%s xTaskCreate failed\n", __FUNCTION__);
|
||||
}
|
||||
#endif // LWIP_SOCKET
|
|
@ -1,110 +0,0 @@
|
|||
#include "rtl8195a.h"
|
||||
#include <main.h>
|
||||
#include "rtl8195a_it.h"
|
||||
|
||||
/* os dependent*/
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "queue.h"
|
||||
#include "semphr.h"
|
||||
|
||||
|
||||
#include <diag.h>
|
||||
#define printf DiagPrintf
|
||||
|
||||
/*-----------------------------Global Variable ---------------------*/
|
||||
//#ifdef CONFIG_WLAN
|
||||
//#ifdef CONFIG_ISR_THREAD_MODE_INTERRUPT
|
||||
extern xSemaphoreHandle *pExportWlanIrqSemaphore;
|
||||
//#endif
|
||||
//#endif
|
||||
|
||||
|
||||
#ifdef CONFIG_WLAN
|
||||
#ifdef CONFIG_ISR_THREAD_MODE_INTERRUPT
|
||||
|
||||
//TODO: chris
|
||||
#define IRQ_HANDLED 1
|
||||
#define IRQ_NONE 0
|
||||
|
||||
int wlan_Interrupt (
|
||||
IN VOID* Data
|
||||
)
|
||||
{
|
||||
#if 1
|
||||
|
||||
portBASE_TYPE xHigherPriorityTaskWoken = pdFALSE;
|
||||
|
||||
printf("wlan interrupt\n");
|
||||
/* This semaphore is initialized once wlan interrupt handler thread is created and initialized*/
|
||||
if(!pExportWlanIrqSemaphore)
|
||||
{
|
||||
printf("%s(%d)\n", __FUNCTION__, __LINE__);
|
||||
goto exit;
|
||||
}
|
||||
|
||||
printf("%s(%d)\n", __FUNCTION__, __LINE__);
|
||||
xSemaphoreGiveFromISR( *pExportWlanIrqSemaphore, &xHigherPriorityTaskWoken );
|
||||
|
||||
printf("%s(%d)\n", __FUNCTION__, __LINE__);
|
||||
/* Switch tasks if necessary. */
|
||||
if( xHigherPriorityTaskWoken != pdFALSE )
|
||||
{
|
||||
printf("%s(%d)\n", __FUNCTION__, __LINE__);
|
||||
portEND_SWITCHING_ISR( xHigherPriorityTaskWoken );
|
||||
}
|
||||
|
||||
exit:
|
||||
|
||||
return IRQ_HANDLED;
|
||||
#else
|
||||
struct dvobj_priv *dvobj = (struct dvobj_priv *)Data;
|
||||
_adapter *adapter = dvobj->if1;
|
||||
DBG_8192C("Dma isr\n");
|
||||
|
||||
if (dvobj->irq_enabled == 0) {
|
||||
return IRQ_HANDLED;
|
||||
}
|
||||
DBG_871X("%s(%d)\n", __FUNCTION__, __LINE__);
|
||||
if(rtw_hal_interrupt_handler(adapter) == _FAIL)
|
||||
return IRQ_HANDLED;
|
||||
//return IRQ_NONE;
|
||||
DBG_871X("%s(%d)\n", __FUNCTION__, __LINE__);
|
||||
return IRQ_HANDLED;
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
|
||||
VOID
|
||||
lextra_bus_dma_Interrupt (
|
||||
IN VOID* Data
|
||||
);
|
||||
|
||||
|
||||
/*
|
||||
* This function register interrupt handler and is called by wlan driver
|
||||
* Return 0 if success, Others if fail
|
||||
*/
|
||||
|
||||
int irq_alloc_wlan(void *contex)
|
||||
{
|
||||
int ret = 0;
|
||||
IRQ_HANDLE IrqHandle = {0};
|
||||
|
||||
printf("Register Interrupt\n");
|
||||
IrqHandle.Data = (u32) (contex);
|
||||
IrqHandle.IrqNum = WL_DMA_IRQ;
|
||||
IrqHandle.IrqFun = (IRQ_FUN)wlan_Interrupt;
|
||||
//IrqHandle.IrqFun = (IRQ_FUN)lextra_bus_dma_Interrupt;
|
||||
IrqHandle.Priority = 0;
|
||||
|
||||
InterruptRegister(&IrqHandle);
|
||||
InterruptEn(&IrqHandle);
|
||||
|
||||
return ret;
|
||||
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
@ -1,90 +0,0 @@
|
|||
/*
|
||||
* Copyright (c) 2013 Realtek Semiconductor Corp.
|
||||
*/
|
||||
|
||||
#include "FreeRTOS.h"
|
||||
#include "task.h"
|
||||
#include "semphr.h"
|
||||
|
||||
#include "main.h"
|
||||
#include "main_test.h"
|
||||
#if CONFIG_WLAN
|
||||
#include "wifi_conf.h"
|
||||
#include "wlan_intf.h"
|
||||
#include "wifi_constants.h"
|
||||
#endif
|
||||
#include "lwip_netconf.h"
|
||||
#include <platform/platform_stdlib.h>
|
||||
//#include "wifi_interactive_ext.h"
|
||||
|
||||
#ifndef CONFIG_INIT_NET
|
||||
#define CONFIG_INIT_NET 1
|
||||
#endif
|
||||
#ifndef CONFIG_INTERACTIVE_MODE
|
||||
#define CONFIG_INTERACTIVE_MODE 1
|
||||
#endif
|
||||
|
||||
#define STACKSIZE (512 + 768)
|
||||
|
||||
xSemaphoreHandle uart_rx_interrupt_sema = NULL;
|
||||
|
||||
void init_thread(void *param)
|
||||
{
|
||||
|
||||
#if CONFIG_INIT_NET
|
||||
#if CONFIG_LWIP_LAYER
|
||||
/* Initilaize the LwIP stack */
|
||||
// DBG_8195A("\nLwIP Init\n");
|
||||
LwIP_Init();
|
||||
#endif
|
||||
#endif
|
||||
#if CONFIG_WIFI_IND_USE_THREAD
|
||||
wifi_manager_init();
|
||||
#endif
|
||||
#if CONFIG_WLAN
|
||||
// DBG_8195A("\nWiFi_on(RTW_MODE_STA)\n");
|
||||
wifi_on(RTW_MODE_STA);
|
||||
#if CONFIG_AUTO_RECONNECT
|
||||
//setup reconnection flag
|
||||
// u8 mode;
|
||||
// if(wifi_get_autoreconnect(&mode) > 0 && mode != 1)
|
||||
wifi_set_autoreconnect(1);
|
||||
#endif
|
||||
// printf("\n\r%s(%d), Available heap %d\n\r", __FUNCTION__, __LINE__, xPortGetFreeHeapSize());
|
||||
#endif
|
||||
|
||||
#if CONFIG_INTERACTIVE_MODE
|
||||
/* Initial uart rx swmaphore*/
|
||||
vSemaphoreCreateBinary(uart_rx_interrupt_sema);
|
||||
xSemaphoreTake(uart_rx_interrupt_sema, 1/portTICK_RATE_MS);
|
||||
start_interactive_mode();
|
||||
#endif
|
||||
|
||||
/* Kill init thread after all init tasks done */
|
||||
vTaskDelete(NULL);
|
||||
}
|
||||
|
||||
void wlan_network()
|
||||
{
|
||||
#if 0
|
||||
{
|
||||
void *stack_addr = tcm_heap_malloc(STACKSIZE*sizeof(int));
|
||||
if(stack_addr == NULL){
|
||||
printf("%s: Out of TCM heap!\n", __FUNCTION__);
|
||||
}
|
||||
if (xTaskGenericCreate(
|
||||
init_thread,
|
||||
(const char *)"init",
|
||||
STACKSIZE,
|
||||
NULL,
|
||||
tskIDLE_PRIORITY + 3 + PRIORITIE_OFFSET,
|
||||
NULL,
|
||||
stack_addr,
|
||||
NULL) != pdTRUE)
|
||||
printf("%s: xTaskCreate(init_thread) failed\n", __FUNCTION__);
|
||||
}
|
||||
#else
|
||||
if(xTaskCreate(init_thread, ((const char*)"init"), STACKSIZE, NULL, tskIDLE_PRIORITY + 3 + PRIORITIE_OFFSET, NULL) != pdPASS) // +3
|
||||
printf("%s: xTaskCreate(init_thread) failed\n", __FUNCTION__);
|
||||
#endif
|
||||
}
|
|
@ -1,262 +0,0 @@
|
|||
#ifndef __LIST_H
|
||||
#define __LIST_H
|
||||
|
||||
#if defined ( __CC_ARM )
|
||||
#ifndef inline
|
||||
#define inline __inline
|
||||
#endif
|
||||
#endif
|
||||
|
||||
/* This file is from Linux Kernel (include/linux/list.h)
|
||||
* and modified by simply removing hardware prefetching of list items.
|
||||
* Here by copyright, credits attributed to wherever they belong.
|
||||
* Kulesh Shanmugasundaram (kulesh [squiggly] isis.poly.edu)
|
||||
*/
|
||||
|
||||
/*
|
||||
* Simple doubly linked list implementation.
|
||||
*
|
||||
* Some of the internal functions ("__xxx") are useful when
|
||||
* manipulating whole lists rather than single entries, as
|
||||
* sometimes we already know the next/prev entries and we can
|
||||
* generate better code by using them directly rather than
|
||||
* using the generic single-entry routines.
|
||||
*/
|
||||
|
||||
struct list_head {
|
||||
struct list_head *next, *prev;
|
||||
};
|
||||
|
||||
#define LIST_HEAD_INIT(name) { &(name), &(name) }
|
||||
|
||||
#define LIST_HEAD(name) \
|
||||
struct list_head name = LIST_HEAD_INIT(name)
|
||||
|
||||
#define INIT_LIST_HEAD(ptr) do { \
|
||||
(ptr)->next = (ptr); (ptr)->prev = (ptr); \
|
||||
} while (0)
|
||||
|
||||
/*
|
||||
* Insert a new entry between two known consecutive entries.
|
||||
*
|
||||
* This is only for internal list manipulation where we know
|
||||
* the prev/next entries already!
|
||||
*/
|
||||
static inline void __list_add(struct list_head *new,
|
||||
struct list_head *prev,
|
||||
struct list_head *next)
|
||||
{
|
||||
next->prev = new;
|
||||
new->next = next;
|
||||
new->prev = prev;
|
||||
prev->next = new;
|
||||
}
|
||||
|
||||
/**
|
||||
* list_add - add a new entry
|
||||
* @new: new entry to be added
|
||||
* @head: list head to add it after
|
||||
*
|
||||
* Insert a new entry after the specified head.
|
||||
* This is good for implementing stacks.
|
||||
*/
|
||||
static inline void list_add(struct list_head *new, struct list_head *head)
|
||||
{
|
||||
__list_add(new, head, head->next);
|
||||
}
|
||||
|
||||
/**
|
||||
* list_add_tail - add a new entry
|
||||
* @new: new entry to be added
|
||||
* @head: list head to add it before
|
||||
*
|
||||
* Insert a new entry before the specified head.
|
||||
* This is useful for implementing queues.
|
||||
*/
|
||||
static inline void list_add_tail(struct list_head *new, struct list_head *head)
|
||||
{
|
||||
__list_add(new, head->prev, head);
|
||||
}
|
||||
|
||||
/*
|
||||
* Delete a list entry by making the prev/next entries
|
||||
* point to each other.
|
||||
*
|
||||
* This is only for internal list manipulation where we know
|
||||
* the prev/next entries already!
|
||||
*/
|
||||
static inline void __list_del(struct list_head *prev, struct list_head *next)
|
||||
{
|
||||
next->prev = prev;
|
||||
prev->next = next;
|
||||
}
|
||||
|
||||
/**
|
||||
* list_del - deletes entry from list.
|
||||
* @entry: the element to delete from the list.
|
||||
* Note: list_empty on entry does not return true after this, the entry is in an undefined state.
|
||||
*/
|
||||
static inline void list_del(struct list_head *entry)
|
||||
{
|
||||
__list_del(entry->prev, entry->next);
|
||||
entry->next = (void *) 0;
|
||||
entry->prev = (void *) 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* list_del_init - deletes entry from list and reinitialize it.
|
||||
* @entry: the element to delete from the list.
|
||||
*/
|
||||
static inline void list_del_init(struct list_head *entry)
|
||||
{
|
||||
__list_del(entry->prev, entry->next);
|
||||
INIT_LIST_HEAD(entry);
|
||||
}
|
||||
|
||||
/**
|
||||
* list_move - delete from one list and add as another's head
|
||||
* @list: the entry to move
|
||||
* @head: the head that will precede our entry
|
||||
*/
|
||||
static inline void list_move(struct list_head *list, struct list_head *head)
|
||||
{
|
||||
__list_del(list->prev, list->next);
|
||||
list_add(list, head);
|
||||
}
|
||||
|
||||
/**
|
||||
* list_move_tail - delete from one list and add as another's tail
|
||||
* @list: the entry to move
|
||||
* @head: the head that will follow our entry
|
||||
*/
|
||||
static inline void list_move_tail(struct list_head *list,
|
||||
struct list_head *head)
|
||||
{
|
||||
__list_del(list->prev, list->next);
|
||||
list_add_tail(list, head);
|
||||
}
|
||||
|
||||
/**
|
||||
* list_empty - tests whether a list is empty
|
||||
* @head: the list to test.
|
||||
*/
|
||||
static inline int list_empty(struct list_head *head)
|
||||
{
|
||||
return head->next == head;
|
||||
}
|
||||
|
||||
static inline void __list_splice(struct list_head *list,
|
||||
struct list_head *head)
|
||||
{
|
||||
struct list_head *first = list->next;
|
||||
struct list_head *last = list->prev;
|
||||
struct list_head *at = head->next;
|
||||
|
||||
first->prev = head;
|
||||
head->next = first;
|
||||
|
||||
last->next = at;
|
||||
at->prev = last;
|
||||
}
|
||||
|
||||
/**
|
||||
* list_splice - join two lists
|
||||
* @list: the new list to add.
|
||||
* @head: the place to add it in the first list.
|
||||
*/
|
||||
static inline void list_splice(struct list_head *list, struct list_head *head)
|
||||
{
|
||||
if (!list_empty(list))
|
||||
__list_splice(list, head);
|
||||
}
|
||||
|
||||
/**
|
||||
* list_splice_init - join two lists and reinitialise the emptied list.
|
||||
* @list: the new list to add.
|
||||
* @head: the place to add it in the first list.
|
||||
*
|
||||
* The list at @list is reinitialised
|
||||
*/
|
||||
static inline void list_splice_init(struct list_head *list,
|
||||
struct list_head *head)
|
||||
{
|
||||
if (!list_empty(list)) {
|
||||
__list_splice(list, head);
|
||||
INIT_LIST_HEAD(list);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* list_entry - get the struct for this entry
|
||||
* @ptr: the &struct list_head pointer.
|
||||
* @type: the type of the struct this is embedded in.
|
||||
* @member: the name of the list_struct within the struct.
|
||||
*/
|
||||
#define list_entry(ptr, type, member) \
|
||||
((type *)((char *)(ptr)-(unsigned long)(&((type *)0)->member)))
|
||||
|
||||
/**
|
||||
* list_first_entry - get the first element from a list
|
||||
* @ptr: the list head to take the element from.
|
||||
* @type: the type of the struct this is embedded in.
|
||||
* @member: the name of the list_head within the struct.
|
||||
*
|
||||
* Note, that list is expected to be not empty.
|
||||
*/
|
||||
|
||||
#define list_first_entry(ptr, type, member) \
|
||||
list_entry((ptr)->next, type, member)
|
||||
|
||||
|
||||
/**
|
||||
* list_for_each - iterate over a list
|
||||
* @pos: the &struct list_head to use as a loop counter.
|
||||
* @head: the head for your list.
|
||||
*/
|
||||
#define list_for_each(pos, head) \
|
||||
for (pos = (head)->next; pos != (head); \
|
||||
pos = pos->next)
|
||||
/**
|
||||
* list_for_each_prev - iterate over a list backwards
|
||||
* @pos: the &struct list_head to use as a loop counter.
|
||||
* @head: the head for your list.
|
||||
*/
|
||||
#define list_for_each_prev(pos, head) \
|
||||
for (pos = (head)->prev; pos != (head); \
|
||||
pos = pos->prev)
|
||||
|
||||
/**
|
||||
* list_for_each_safe - iterate over a list safe against removal of list entry
|
||||
* @pos: the &struct list_head to use as a loop counter.
|
||||
* @n: another &struct list_head to use as temporary storage
|
||||
* @head: the head for your list.
|
||||
*/
|
||||
#define list_for_each_safe(pos, n, head) \
|
||||
for (pos = (head)->next, n = pos->next; pos != (head); \
|
||||
pos = n, n = pos->next)
|
||||
|
||||
/**
|
||||
* list_for_each_entry - iterate over list of given type
|
||||
* @pos: the type * to use as a loop counter.
|
||||
* @head: the head for your list.
|
||||
* @member: the name of the list_struct within the struct.
|
||||
*/
|
||||
#define list_for_each_entry(pos, head, member, type) \
|
||||
for (pos = list_entry((head)->next, type, member); \
|
||||
&pos->member != (head); \
|
||||
pos = list_entry(pos->member.next, type, member))
|
||||
|
||||
/**
|
||||
* list_for_each_entry_safe - iterate over list of given type safe against removal of list entry
|
||||
* @pos: the type * to use as a loop counter.
|
||||
* @n: another type * to use as temporary storage
|
||||
* @head: the head for your list.
|
||||
* @member: the name of the list_struct within the struct.
|
||||
*/
|
||||
#define list_for_each_entry_safe(pos, n, head, member, type) \
|
||||
for (pos = list_entry((head)->next, type, member), \
|
||||
n = list_entry(pos->member.next, type, member); \
|
||||
&pos->member != (head); \
|
||||
pos = n, n = list_entry(n->member.next, type, member))
|
||||
|
||||
#endif
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue