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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? sys_arch.txt

?? 最新版FreeRTOS, 包擴(kuò)多種開發(fā)平臺(tái)的移植
?? TXT
字號(hào):
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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲va国产天堂va久久en| 日韩你懂的在线播放| 亚洲人123区| 欧美最猛黑人xxxxx猛交| 一区二区三区在线免费播放| 色婷婷国产精品综合在线观看| 亚洲精品视频一区二区| 欧美日韩免费高清一区色橹橹| 日韩国产精品91| 精品国产乱码久久久久久影片| 国产精品亚洲成人| 自拍偷拍国产精品| 91精品综合久久久久久| 精品一区在线看| 成人免费在线播放视频| 精品视频一区二区不卡| 狠狠色伊人亚洲综合成人| 亚洲欧洲精品一区二区三区不卡 | 精品国产乱码久久久久久图片| 精品一区二区影视| 国产精品国产三级国产普通话三级 | 91论坛在线播放| 免费在线观看精品| 亚洲国产精品成人综合色在线婷婷| 日本道色综合久久| 美女一区二区视频| 亚洲黄色av一区| 欧美va亚洲va| 在线观看亚洲精品视频| 国产精品一区二区三区乱码| 亚洲精品网站在线观看| 久久夜色精品国产噜噜av| 一本一道综合狠狠老| 国产一级精品在线| 亚洲国产毛片aaaaa无费看| 久久久噜噜噜久久中文字幕色伊伊 | 欧美精品一区二区三区蜜臀| 色妹子一区二区| 国产一区 二区 三区一级| 亚洲国产综合人成综合网站| 久久精品一区二区三区不卡牛牛| 在线视频一区二区三| 精品在线免费观看| 天天影视涩香欲综合网| 综合在线观看色| 国产欧美日韩视频在线观看| 91精品国产麻豆| 欧美三级电影在线看| av中文字幕在线不卡| 国产一区在线视频| 免费成人av在线| 午夜免费久久看| 亚洲美女免费在线| 综合激情成人伊人| 欧美国产乱子伦| 精品国产123| 91精品国产综合久久国产大片| 一本色道亚洲精品aⅴ| 成人av一区二区三区| 国产一区二区久久| 国产美女主播视频一区| 精品一区二区影视| 看电影不卡的网站| 久久精品噜噜噜成人88aⅴ| 丝袜亚洲另类欧美| 天天综合色天天| 丝袜亚洲精品中文字幕一区| 亚洲国产美女搞黄色| 亚洲综合在线第一页| 亚洲欧美另类久久久精品2019| 国产精品视频一二三区| 国产精品女主播在线观看| 亚洲国产高清在线| 中文字幕亚洲一区二区av在线| 国产精品三级视频| 中文字幕在线免费不卡| 国产精品二三区| 亚洲精品亚洲人成人网| 亚洲在线免费播放| 午夜电影网一区| 日韩电影一区二区三区四区| 日韩av电影免费观看高清完整版在线观看| 亚洲国产综合91精品麻豆| 手机精品视频在线观看| 免费精品视频最新在线| 激情偷乱视频一区二区三区| 国产a久久麻豆| eeuss影院一区二区三区 | 午夜伦理一区二区| 美洲天堂一区二卡三卡四卡视频| 美女www一区二区| 国产制服丝袜一区| 99免费精品视频| 91传媒视频在线播放| 欧美精品色一区二区三区| 日韩一区和二区| 久久久另类综合| 亚洲精品视频观看| 免费国产亚洲视频| 国产91富婆露脸刺激对白| 99久久国产综合精品麻豆| 欧美性色黄大片| 久久品道一品道久久精品| 国产精品国产三级国产a| 亚洲国产综合在线| 国产精品一区二区三区网站| 91小视频免费观看| 91精品国产综合久久久久久久| 久久久午夜电影| 亚洲无人区一区| 国产91对白在线观看九色| 欧美日韩在线一区二区| 久久蜜桃一区二区| 亚洲国产日韩av| 成年人午夜久久久| 日韩欧美中文字幕一区| 1000精品久久久久久久久| 日本不卡在线视频| 99久久婷婷国产综合精品| 欧美一区二区观看视频| 国产精品网曝门| 美女在线观看视频一区二区| 9色porny自拍视频一区二区| 日韩色在线观看| 一区二区三区四区av| 国产综合成人久久大片91| 欧美三级蜜桃2在线观看| 国产精品免费aⅴ片在线观看| 五月天亚洲婷婷| 色婷婷国产精品久久包臀| 久久久精品黄色| 日韩国产精品久久久| 色婷婷一区二区三区四区| 久久婷婷国产综合精品青草| 亚洲一区二区在线免费观看视频 | 1024成人网色www| 国产最新精品精品你懂的| 555www色欧美视频| 亚洲另类一区二区| 成人污视频在线观看| 久久婷婷国产综合精品青草| 日韩二区三区四区| 欧美日韩国产高清一区| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 日本高清视频一区二区| 国产女人18毛片水真多成人如厕| 日本中文字幕不卡| 在线一区二区三区四区| 亚洲视频在线一区| 成av人片一区二区| 国产欧美一区二区三区网站| 韩国av一区二区三区在线观看| 欧美喷潮久久久xxxxx| 夜夜精品视频一区二区| 一本一道久久a久久精品| 日韩美女啊v在线免费观看| 国产成人精品亚洲日本在线桃色| 欧美大片在线观看一区二区| 日本网站在线观看一区二区三区| 在线亚洲免费视频| 亚洲第一搞黄网站| 欧美日韩国产综合一区二区三区 | 国产精品一二三四| 国产亚洲精品中文字幕| 韩国av一区二区三区四区| 久久这里只有精品首页| 久久国产尿小便嘘嘘尿| 日韩免费观看高清完整版| 美国十次综合导航| 欧美tk—视频vk| 国产成人精品1024| 综合色中文字幕| 欧美这里有精品| 爽爽淫人综合网网站| 91精品国产综合久久久蜜臀粉嫩 | 中文字幕一区二区三区乱码在线| 成人午夜碰碰视频| 亚洲人成在线播放网站岛国| 91丝袜美腿高跟国产极品老师| 亚洲日穴在线视频| 欧美丝袜丝nylons| 免费在线观看精品| 国产人伦精品一区二区| av一区二区久久| 亚洲地区一二三色| 精品日韩一区二区三区| 国产精品一二三四五| 亚洲欧美日本在线| 91精品国产麻豆| 国产激情一区二区三区四区| 亚洲视频资源在线| 欧美一级片在线| 国产成人8x视频一区二区| 亚洲美女在线国产| 日韩免费在线观看| 99国产精品99久久久久久| 日韩精品亚洲专区| 精品动漫一区二区三区在线观看| 99天天综合性| 热久久一区二区|