亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? sys_arch.txt

?? FreeRtos Source code Version 4.04
?? TXT
字號:
sys_arch interface for lwIP 0.6++Author: Adam DunkelsThe operating system emulation layer provides a common interfacebetween the lwIP code and the underlying operating system kernel. Thegeneral idea is that porting lwIP to new architectures requires onlysmall changes to a few header files and a new sys_archimplementation. It is also possible to do a sys_arch implementationthat does not rely on any underlying operating system.The sys_arch provides semaphores and mailboxes to lwIP. For the fulllwIP functionality, multiple threads support can be implemented in thesys_arch, but this is not required for the basic lwIPfunctionality. Previous versions of lwIP required the sys_arch toimplement timer scheduling as well but as of lwIP 0.5 this isimplemented in a higher layer.In addition to the source file providing the functionality of sys_arch,the OS emulation layer must provide several header files definingmacros used throughout lwip.  The files required and the macros theymust define are listed below the sys_arch description.Semaphores can be either counting or binary - lwIP works with bothkinds. Mailboxes are used for message passing and can be implementedeither as a queue which allows multiple messages to be posted to amailbox, or as a rendez-vous point where only one message can beposted at a time. lwIP works with both kinds, but the former type willbe more efficient. A message in a mailbox is just a pointer, nothingmore. Semaphores are represented by the type "sys_sem_t" which is typedef'din the sys_arch.h file. Mailboxes are equivalently represented by thetype "sys_mbox_t". lwIP does not place any restrictions on howsys_sem_t or sys_mbox_t are represented internally.The following functions must be implemented by the sys_arch:- void sys_init(void)  Is called to initialize the sys_arch layer.- sys_sem_t sys_sem_new(u8_t count)  Creates and returns a new semaphore. The "count" argument specifies  the initial state of the semaphore.- void sys_sem_free(sys_sem_t sem)  Deallocates a semaphore.- void sys_sem_signal(sys_sem_t sem)  Signals a semaphore.- u32_t sys_arch_sem_wait(sys_sem_t sem, u32_t timeout)  Blocks the thread while waiting for the semaphore to be  signaled. If the "timeout" argument is non-zero, the thread should  only be blocked for the specified time (measured in  milliseconds).  If the timeout argument is non-zero, the return value is the number of  milliseconds spent waiting for the semaphore to be signaled. If the  semaphore wasn't signaled within the specified time, the return value is  SYS_ARCH_TIMEOUT. If the thread didn't have to wait for the semaphore  (i.e., it was already signaled), the function may return zero.  Notice that lwIP implements a function with a similar name,  sys_sem_wait(), that uses the sys_arch_sem_wait() function.- sys_mbox_t sys_mbox_new(void)  Creates an empty mailbox.- void sys_mbox_free(sys_mbox_t mbox)  Deallocates a mailbox. If there are messages still present in the  mailbox when the mailbox is deallocated, it is an indication of a  programming error in lwIP and the developer should be notified.- void sys_mbox_post(sys_mbox_t mbox, void *msg)  Posts the "msg" to the mailbox.- u32_t sys_arch_mbox_fetch(sys_mbox_t mbox, void **msg, u32_t timeout)  Blocks the thread until a message arrives in the mailbox, but does  not block the thread longer than "timeout" milliseconds (similar to  the sys_arch_sem_wait() function). The "msg" argument is a result  parameter that is set by the function (i.e., by doing "*msg =  ptr"). The "msg" parameter maybe NULL to indicate that the message  should be dropped.  The return values are the same as for the sys_arch_sem_wait() function:  Number of milliseconds spent waiting or SYS_ARCH_TIMEOUT if there was a  timeout.  Note that a function with a similar name, sys_mbox_fetch(), is  implemented by lwIP.   - struct sys_timeouts *sys_arch_timeouts(void)  Returns a pointer to the per-thread sys_timeouts structure. In lwIP,  each thread has a list of timeouts which is repressented as a linked  list of sys_timeout structures. The sys_timeouts structure holds a  pointer to a linked list of timeouts. This function is called by  the lwIP timeout scheduler and must not return a NULL value.   In a single threadd sys_arch implementation, this function will  simply return a pointer to a global sys_timeouts variable stored in  the sys_arch module.  If threads are supported by the underlying operating system and ifsuch functionality is needed in lwIP, the following function will haveto be implemented as well:- sys_thread_t sys_thread_new(void (* thread)(void *arg), void *arg, int prio)  Starts a new thread with priority "prio" that will begin its execution in the  function "thread()". The "arg" argument will be passed as an argument to the  thread() function. The id of the new thread is returned. Both the id and  the priority are system dependent.- sys_prot_t sys_arch_protect(void)  This optional function does a "fast" critical region protection and returns  the previous protection level. This function is only called during very short  critical regions. An embedded system which supports ISR-based drivers might  want to implement this function by disabling interrupts. Task-based systems  might want to implement this by using a mutex or disabling tasking. This  function should support recursive calls from the same task or interrupt. In  other words, sys_arch_protect() could be called while already protected. In  that case the return value indicates that it is already protected.  sys_arch_protect() is only required if your port is supporting an operating  system.- void sys_arch_unprotect(sys_prot_t pval)  This optional function does a "fast" set of critical region protection to the  value specified by pval. See the documentation for sys_arch_protect() for  more information. This function is only required if your port is supporting  an operating system.-------------------------------------------------------------------------------Additional files required for the "OS support" emulation layer:-------------------------------------------------------------------------------cc.h       - Architecture environment, some compiler specific, some             environment specific (probably should move env stuff              to sys_arch.h.)  Typedefs for the types used by lwip -    u8_t, s8_t, u16_t, s16_t, u32_t, s32_t, mem_ptr_t  Compiler hints for packing lwip's structures -    PACK_STRUCT_FIELD(x)    PACK_STRUCT_STRUCT    PACK_STRUCT_BEGIN    PACK_STRUCT_END  Platform specific diagnostic output -    LWIP_PLATFORM_DIAG(x)    - non-fatal, print a message.    LWIP_PLATFORM_ASSERT(x)  - fatal, print message and abandon execution.  "lightweight" synchronization mechanisms -    SYS_ARCH_DECL_PROTECT(x) - declare a protection state variable.    SYS_ARCH_PROTECT(x)      - enter protection mode.    SYS_ARCH_UNPROTECT(x)    - leave protection mode.  If the compiler does not provide memset() this file must include a  definition of it, or include a file which defines it.  This file must either include a system-local <errno.h> which defines  the standard *nix error codes, or it should #define LWIP_PROVIDE_ERRNO  to make lwip/arch.h define the codes which are used throughout.perf.h     - Architecture specific performance measurement.  Measurement calls made throughout lwip, these can be defined to nothing.    PERF_START               - start measuring something.    PERF_STOP(x)             - stop measuring something, and record the result.sys_arch.h - Tied to sys_arch.c  Arch dependent types for the following objects:    sys_sem_t, sys_mbox_t, sys_thread_t,  And, optionally:    sys_prot_t  Defines to set vars of sys_mbox_t and sys_sem_t to NULL.    SYS_MBOX_NULL NULL    SYS_SEM_NULL NULL

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲第一主播视频| av动漫一区二区| 成人丝袜18视频在线观看| 91精品国产品国语在线不卡| 亚洲国产精品传媒在线观看| 午夜影视日本亚洲欧洲精品| 成人av网站在线观看| 欧美电影免费观看高清完整版在线观看| 国产午夜精品一区二区三区嫩草| 爽好多水快深点欧美视频| 成人精品在线视频观看| www久久精品| 日本在线播放一区二区三区| 色婷婷国产精品| 国产精品白丝在线| 国产成a人无v码亚洲福利| 欧美mv日韩mv亚洲| 日韩av一区二区在线影视| 欧美亚洲综合一区| 亚洲男人的天堂av| 91在线你懂得| 成人欧美一区二区三区1314| 国产精华液一区二区三区| 日韩精品一区二区三区在线播放 | 久久国产欧美日韩精品| 欧美亚洲精品一区| 国产精品理伦片| 成人性色生活片| 亚洲视频免费看| 国产精品一级在线| 久久久夜色精品亚洲| 韩国一区二区在线观看| 欧美成人video| 国产精品资源网| 欧美激情在线一区二区| 成人性生交大片免费看视频在线| 国产精品午夜春色av| 懂色av一区二区夜夜嗨| 国产精品嫩草99a| 91原创在线视频| 一区二区三区**美女毛片| 日本二三区不卡| 婷婷夜色潮精品综合在线| 在线成人免费视频| 裸体在线国模精品偷拍| 久久久综合九色合综国产精品| 国产麻豆成人精品| 国产精品视频一二| 欧美伊人久久久久久久久影院| 性久久久久久久久| 精品理论电影在线| 成人动漫一区二区| 亚洲福利电影网| 日韩美女一区二区三区| 国产成人三级在线观看| 亚洲欧美一区二区三区极速播放| 在线欧美日韩国产| 日本不卡视频在线观看| 久久精品男人天堂av| 99视频有精品| 天堂一区二区在线| 久久午夜免费电影| 7777精品伊人久久久大香线蕉超级流畅 | 3atv一区二区三区| 国产在线播精品第三| 亚洲欧美日韩国产手机在线| 在线不卡免费欧美| 成人av小说网| 三级一区在线视频先锋| 国产欧美一区二区精品忘忧草| 色域天天综合网| 久久av资源网| 亚洲午夜国产一区99re久久| 欧美成人乱码一区二区三区| 99久久99久久久精品齐齐| 五月天国产精品| 国产精品国产三级国产aⅴ无密码| 欧美日免费三级在线| 国产精品18久久久久久久久久久久| 亚洲女同一区二区| 久久久精品蜜桃| 欧美一区二区成人6969| av中文字幕不卡| 极品美女销魂一区二区三区| 一区二区在线观看免费视频播放| 精品久久久久一区| 欧美视频你懂的| 成人精品小蝌蚪| 国产剧情一区二区| 日韩和的一区二区| 日韩黄色在线观看| 亚洲人快播电影网| 欧美激情一区二区三区蜜桃视频| 91麻豆精品国产自产在线| 91蜜桃在线观看| 国产精品资源网站| 蜜臀91精品一区二区三区| 一区二区免费视频| 亚洲人被黑人高潮完整版| 久久久www成人免费无遮挡大片 | 日韩国产在线一| 一区二区视频免费在线观看| 国产欧美精品一区二区三区四区| 精品日韩欧美在线| 日韩欧美在线影院| 欧美一区二区三区视频免费| 欧美性猛交xxxxxx富婆| 色综合久久99| 在线精品视频一区二区| 91论坛在线播放| 色先锋资源久久综合| 成人av网站在线观看免费| 不卡的电影网站| k8久久久一区二区三区| 高清在线不卡av| 成人精品视频.| 不卡av电影在线播放| aa级大片欧美| 一本色道a无线码一区v| 色婷婷av一区二区三区软件| 欧美亚洲国产一区在线观看网站| 欧美在线不卡视频| 欧美日韩视频在线第一区| 69堂成人精品免费视频| 欧美一区二区三区免费大片| 精品福利视频一区二区三区| 国产亚洲精品bt天堂精选| 中文av一区特黄| 一区二区三区精品视频| 丝袜亚洲另类欧美| 久久se精品一区二区| 成人免费视频视频在线观看免费| 不卡视频免费播放| 日韩视频不卡中文| 久久久亚洲精品一区二区三区 | 日韩视频免费观看高清完整版 | 免费视频一区二区| 激情伊人五月天久久综合| 盗摄精品av一区二区三区| 99久久99久久精品国产片果冻| 在线视频观看一区| 91精品国产全国免费观看| 久久精品一区二区三区四区| 国产精品电影一区二区| 偷拍与自拍一区| 狠狠色综合日日| 色综合天天综合狠狠| 欧美一区二区三区免费视频| 国产欧美日韩视频在线观看| 亚洲一级二级三级| 精品一区二区三区免费观看| 99精品在线免费| 欧美成人精品3d动漫h| 综合网在线视频| 久久国产精品72免费观看| gogogo免费视频观看亚洲一| 欧美挠脚心视频网站| 国产精品色哟哟网站| 日本欧美加勒比视频| 成人福利视频网站| 91麻豆精品国产无毒不卡在线观看 | 国产一区二区毛片| 91美女蜜桃在线| 国产视频一区不卡| 日日夜夜免费精品视频| 99久久婷婷国产综合精品| 日韩视频在线你懂得| 一区二区三区色| 国产69精品久久久久毛片 | 国产精品视频第一区| 亚洲第四色夜色| 成人免费高清视频在线观看| 欧美一级精品在线| 亚洲国产一二三| 99久久久久久99| 国产免费成人在线视频| 久久9热精品视频| 337p亚洲精品色噜噜狠狠| 亚洲麻豆国产自偷在线| 日本韩国视频一区二区| 久久久99久久精品欧美| 日韩电影在线免费| 欧美日韩久久久久久| 亚洲精品久久久蜜桃| 懂色av一区二区三区蜜臀| 精品少妇一区二区三区在线播放| 一区二区三区高清| 不卡区在线中文字幕| 中文字幕国产一区| 国产精品一区免费视频| 久久综合给合久久狠狠狠97色69| 日韩精品欧美精品| 制服丝袜亚洲精品中文字幕| 一区二区三区欧美激情| 色综合天天视频在线观看| 亚洲人成在线播放网站岛国| 不卡av在线免费观看| 日韩理论片网站| 91蜜桃视频在线| 亚洲图片欧美色图|