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

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

?? sys_arch.txt

?? 新版的FreeRTOS操作系統源代碼4.0.0版
?? 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一区二区三区免费野_久草精品视频
国产精品网站在线播放| 国产福利不卡视频| 国产黄色91视频| 欧美视频日韩视频在线观看| 国产欧美一区二区精品忘忧草 | 欧洲亚洲国产日韩| 精品999在线播放| 亚洲成av人综合在线观看| 丁香亚洲综合激情啪啪综合| 欧美一区日本一区韩国一区| 国产欧美精品国产国产专区 | 911精品产国品一二三产区| 天堂久久一区二区三区| 亚洲少妇最新在线视频| 国产日韩精品一区二区三区在线| 亚洲欧美日韩在线不卡| 风间由美性色一区二区三区| 欧美tickle裸体挠脚心vk| 三级影片在线观看欧美日韩一区二区| 成人av网站在线观看| 欧美激情在线观看视频免费| 精久久久久久久久久久| 欧美电影影音先锋| 午夜私人影院久久久久| 欧美日韩在线直播| 亚洲综合色婷婷| 在线观看91精品国产入口| 综合在线观看色| 91丨九色丨黑人外教| 国产精品大尺度| 91在线视频在线| 亚洲精品免费在线播放| 在线精品视频小说1| 一区二区高清在线| 在线观看免费亚洲| 日韩精品三区四区| 欧美本精品男人aⅴ天堂| 久久电影国产免费久久电影| 26uuu亚洲| 大桥未久av一区二区三区中文| 欧美国产欧美综合| 白白色亚洲国产精品| 有坂深雪av一区二区精品| 欧美日韩国产综合视频在线观看| 男女性色大片免费观看一区二区| 欧美一级片在线| 国产一区二区0| 日韩毛片视频在线看| 欧美亚洲高清一区二区三区不卡| 日韩专区一卡二卡| 日韩精品一区二区三区老鸭窝| 国产成人免费在线观看| 综合精品久久久| 欧美福利视频导航| 国产精品亚洲第一区在线暖暖韩国| 中文字幕欧美区| 欧美综合一区二区三区| 久久99精品国产麻豆婷婷洗澡| 国产精品毛片无遮挡高清| 欧美亚洲尤物久久| 久色婷婷小香蕉久久| 国产精品短视频| 欧美一区三区二区| 99这里都是精品| 免费在线观看精品| 亚洲少妇最新在线视频| 日韩视频一区在线观看| 91麻豆自制传媒国产之光| 日韩精品亚洲一区| 18成人在线观看| 欧美一区二区成人6969| 99久久精品免费看国产| 免费观看在线综合色| 中文字幕一区二区不卡| 日韩一级片网站| 一本色道综合亚洲| 久久精品国产秦先生| 亚洲午夜私人影院| 国产精品久久久久久久裸模| 欧美肥妇毛茸茸| 91在线小视频| 国产九九视频一区二区三区| 亚洲成人免费在线观看| 亚洲欧洲日产国码二区| 精品成人一区二区| 欧美日韩三级在线| 91日韩精品一区| 国产九色精品成人porny| 日韩精品一级二级| 亚洲自拍与偷拍| 一色桃子久久精品亚洲| 久久综合九色欧美综合狠狠| 欧美精品一卡两卡| 欧日韩精品视频| 色婷婷av久久久久久久| av电影在线观看一区| 国产一区二区美女| 久久国产精品一区二区| 日本欧美久久久久免费播放网| 一区二区在线看| 国产精品天美传媒沈樵| 国产网站一区二区| 精品国产百合女同互慰| 日韩一区二区三| 日韩欧美二区三区| 69av一区二区三区| 欧美久久婷婷综合色| 91高清视频免费看| 在线看不卡av| 欧美乱熟臀69xxxxxx| 欧美日本一区二区| 欧美猛男超大videosgay| 欧美伊人精品成人久久综合97| 91免费国产在线| 日本久久精品电影| 91高清视频在线| 7777精品伊人久久久大香线蕉超级流畅| 91黄色免费看| 欧美日韩国产一级二级| 欧美精品欧美精品系列| 91精品国产福利在线观看| 欧美久久高跟鞋激| 精品欧美一区二区久久| 久久综合九色欧美综合狠狠| 久久精品欧美一区二区三区麻豆| 亚洲国产精品高清| 亚洲欧洲精品成人久久奇米网| 中文字幕av一区 二区| 国产精品美女久久久久久久久| 亚洲天堂2014| 午夜精品久久久久久久99水蜜桃 | 欧美专区亚洲专区| 欧美精品日日鲁夜夜添| 精品久久久久久无| 中文在线一区二区| 一区二区三区在线免费播放| 婷婷丁香久久五月婷婷| 国产一区二区三区美女| 99re热视频这里只精品| 666欧美在线视频| 久久精品欧美一区二区三区麻豆| 亚洲欧洲精品一区二区精品久久久 | 国产亚洲综合av| 亚洲精品写真福利| 琪琪久久久久日韩精品| 国产成人激情av| 精品视频在线免费| 久久精品网站免费观看| 亚洲人成网站色在线观看| 天天综合网天天综合色| 成人视屏免费看| 欧美人牲a欧美精品| 国产蜜臀97一区二区三区| 亚洲国产日韩精品| 成人手机电影网| 日韩一级视频免费观看在线| 亚洲男人天堂av| 国产一区欧美一区| 欧美综合欧美视频| 欧美精品一区二区三区四区 | 欧美亚洲另类激情小说| 久久网这里都是精品| 一区2区3区在线看| 国产激情偷乱视频一区二区三区| 欧美日韩日日摸| 亚洲欧洲性图库| 国产成人自拍网| 日韩欧美黄色影院| 亚洲小说春色综合另类电影| 成人国产精品免费观看动漫| 欧美大片在线观看一区二区| 亚洲一区二区三区四区五区黄| 成人天堂资源www在线| 久久婷婷色综合| 日韩专区欧美专区| 欧美日韩一区高清| 亚洲日本va午夜在线电影| 国产一区二区三区免费在线观看 | 国产偷国产偷亚洲高清人白洁| 天天综合天天综合色| 91成人在线精品| 亚洲色图19p| 99国产一区二区三精品乱码| 国产女人18水真多18精品一级做| 久久草av在线| 欧美大片日本大片免费观看| 亚洲成国产人片在线观看| 色先锋资源久久综合| 中文字幕不卡的av| 成人国产视频在线观看| 中文一区二区完整视频在线观看 | 欧美日韩一区二区三区四区五区| 综合精品久久久| 91亚洲国产成人精品一区二三 | 色综合色狠狠天天综合色| 国产精品国产三级国产aⅴ中文| 国产成人精品亚洲777人妖| 久久久精品免费观看| 国产精品综合一区二区三区| 久久亚洲精精品中文字幕早川悠里|