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

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

?? sys_arch.txt

?? 一個免費的實時操作系統??捎糜谫Y源較少的場合。
?? 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免费专区久久| 日韩三级中文字幕| 在线观看不卡一区| 日韩精品国产精品| 日韩一级免费观看| 欧美一区二区日韩一区二区| 精品一区二区三区不卡| 国产精品麻豆视频| 在线观看成人小视频| 欧美性大战久久| 久久精品噜噜噜成人av农村| 美国欧美日韩国产在线播放| 国产精品久久久久久久久果冻传媒| 欧美日韩精品二区第二页| 国产乱理伦片在线观看夜一区| 夜夜爽夜夜爽精品视频| 亚洲一区二区三区四区的| 午夜精品久久久久久久99樱桃| 日韩中文字幕一区二区三区| 日产国产高清一区二区三区| 久久91精品久久久久久秒播 | 国产成人日日夜夜| av中文字幕一区| 青椒成人免费视频| 国产麻豆午夜三级精品| 成人动漫中文字幕| 欧美电影影音先锋| 精品欧美久久久| 一区二区三区av电影 | 91精品欧美福利在线观看| 精品久久一二三区| 精品捆绑美女sm三区| 久久蜜桃av一区二区天堂 | 色天天综合色天天久久| 日本二三区不卡| 日韩一区二区高清| 久久夜色精品国产噜噜av| 成人黄色在线网站| 日本成人在线网站| aaa欧美色吧激情视频| 欧美午夜精品一区二区三区| 久久亚洲一区二区三区明星换脸 | 91福利在线播放| 久久一区二区三区国产精品| 亚洲成av人片| 国产精品理伦片| 国产人妖乱国产精品人妖| 日韩欧美你懂的| 欧美一卡二卡在线观看| 日韩理论片中文av| 一区二区三区在线不卡| 国产成人免费视频网站| youjizz国产精品| 五月综合激情婷婷六月色窝| 国产成人在线免费| 精品久久久久久无| 日日夜夜精品视频天天综合网| 成人高清免费观看| 93久久精品日日躁夜夜躁欧美| 精品国产乱码久久| 日韩**一区毛片| 欧美日韩情趣电影| 制服丝袜av成人在线看| 亚洲精品日日夜夜| 99re8在线精品视频免费播放| 26uuu国产日韩综合| 麻豆国产欧美一区二区三区| 国产精品一区二区免费不卡| 风间由美一区二区三区在线观看| 欧美成人综合网站| 六月丁香综合在线视频| 日韩视频在线永久播放| 视频在线观看一区二区三区| 一区二区三区欧美亚洲| 99这里只有久久精品视频| 中文字幕精品在线不卡| 亚洲成人免费观看| 欧美视频一区二区在线观看| 亚洲制服欧美中文字幕中文字幕| 在线免费观看一区| 日韩美女一区二区三区| 久久99国产精品尤物| 91麻豆123| 亚洲综合免费观看高清完整版 | 精品影视av免费| 精品粉嫩超白一线天av| 国产二区国产一区在线观看| 丁香激情综合五月| 日韩一区欧美小说| 在线免费亚洲电影| 亚洲国产精品黑人久久久| 不卡区在线中文字幕| 欧美日韩国产综合视频在线观看| 五月激情六月综合| 日韩精品一区二区三区四区 | 亚洲第一精品在线| 午夜欧美一区二区三区在线播放| 麻豆精品一区二区| 国产精品美女久久久久av爽李琼 | 日韩电影在线一区| 2021中文字幕一区亚洲| av一区二区三区在线| 亚洲日本va午夜在线电影| 免费欧美在线视频| 国产精品素人视频| 91精品国产综合久久久久久久 | 夜夜亚洲天天久久| 日韩欧美一卡二卡| 一区二区三区日韩| 国产福利一区二区三区在线视频| 欧美日本韩国一区| 亚洲一二三区在线观看| 欧美videos大乳护士334| 午夜精品视频在线观看| 欧美三级欧美一级| 国产酒店精品激情| 日本一区二区三区免费乱视频| 精品一区二区三区欧美| 中文字幕在线不卡视频| 91丝袜美女网| 九色porny丨国产精品| 一区二区三区美女| 在线视频国产一区| 亚洲国产一区二区三区| 欧美—级在线免费片| 欧美亚洲国产一区二区三区va | 91色乱码一区二区三区| 国产专区综合网| 午夜精品免费在线观看| 色琪琪一区二区三区亚洲区| 久久精品av麻豆的观看方式| 精品伦理精品一区| 欧美精品tushy高清| 99re6这里只有精品视频在线观看| 国产一区二区三区国产| 免费观看在线综合| 无吗不卡中文字幕| 亚洲一区二区三区在线看| 国产精品嫩草99a| 欧美国产精品一区二区三区| 久久午夜色播影院免费高清| 欧美精品日韩综合在线| 香蕉乱码成人久久天堂爱免费| 制服.丝袜.亚洲.另类.中文| 国产在线播精品第三| 久久精品国产澳门| 久久精品一区二区三区不卡 | 色婷婷综合久色| 成人深夜在线观看| 成人综合婷婷国产精品久久蜜臀 | **欧美大码日韩| 国产精品传媒入口麻豆| 欧美区一区二区三区| 精品视频在线视频| 国内精品免费**视频| 精品一区二区免费视频| 亚洲欧美综合另类在线卡通| 在线不卡的av| 日韩精品一区二区三区蜜臀| 精品区一区二区| 国产网站一区二区| 亚洲视频综合在线| 欧美一卡2卡3卡4卡| 99久久婷婷国产综合精品| 99re成人精品视频| 欧美日韩一级黄| 精品国产一区久久| 欧美日韩亚洲综合一区二区三区| 日本丶国产丶欧美色综合| 欧美唯美清纯偷拍| 日韩女优视频免费观看| 亚洲激情自拍视频| 8x福利精品第一导航| 日韩美女主播在线视频一区二区三区| 精品日韩一区二区三区免费视频| 久久网站热最新地址| 国产精品国产三级国产aⅴ入口| 一区二区欧美国产| 激情综合色综合久久综合| 成人国产免费视频| 欧美精品精品一区| 在线观看国产精品网站| 不卡的av网站| 欧美高清激情brazzers| 久久久国产综合精品女国产盗摄| 国产精品欧美经典| 青椒成人免费视频| 日本电影欧美片| 色一情一伦一子一伦一区| 日韩区在线观看| 91 com成人网| 国产麻豆精品久久一二三| 成人动漫一区二区| 精品国产伦一区二区三区观看方式 | 欧美综合视频在线观看| eeuss国产一区二区三区| 在线成人免费视频| 7777精品伊人久久久大香线蕉 |