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

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

?? sys_arch.txt

?? FreeRTOSV4.1.0 安裝文件 FreeRTOS 是一個源碼公開的免費的嵌入式實時操作系統(tǒng)
?? 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久亚洲影视婷婷| 中文字幕在线观看一区| 欧美日韩一级大片网址| 91福利资源站| 91九色02白丝porn| 日本道免费精品一区二区三区| 成人国产精品免费网站| 粉嫩蜜臀av国产精品网站| 国产精品影视网| 国产成人夜色高潮福利影视| 国产精品伊人色| 本田岬高潮一区二区三区| 成人激情小说网站| 一本久道久久综合中文字幕| 91在线播放网址| 欧美亚洲精品一区| 欧美高清一级片在线| 制服丝袜av成人在线看| 91精品国产91久久久久久一区二区| 欧美日韩国产综合一区二区| 欧美另类高清zo欧美| 欧美高清激情brazzers| 欧美日韩精品福利| 精品黑人一区二区三区久久| 337p粉嫩大胆噜噜噜噜噜91av | 欧美大度的电影原声| 日韩亚洲欧美一区二区三区| 久久综合色天天久久综合图片| 国产亚洲福利社区一区| 综合久久一区二区三区| 亚洲一区在线观看网站| 男人的j进女人的j一区| 国产一区二区三区免费播放| 国产成人aaaa| 在线观看中文字幕不卡| 欧美一区二区不卡视频| 久久久不卡影院| 亚洲精品国产无天堂网2021| 首页亚洲欧美制服丝腿| 国产曰批免费观看久久久| 99久久综合99久久综合网站| 91极品视觉盛宴| 精品国产伦理网| 亚洲欧美色图小说| 美腿丝袜亚洲色图| jiyouzz国产精品久久| 欧美久久久影院| 国产欧美va欧美不卡在线| 亚洲精品国产无套在线观| 秋霞午夜鲁丝一区二区老狼| 国产成人精品网址| 欧美三级中文字幕| 国产午夜三级一区二区三| 亚洲靠逼com| 美国三级日本三级久久99| caoporm超碰国产精品| 欧美高清视频在线高清观看mv色露露十八| 国产午夜三级一区二区三| 亚洲大片精品永久免费| 国产丶欧美丶日本不卡视频| 99久久99久久久精品齐齐| 日韩视频一区在线观看| 日韩一区中文字幕| 久久精品国产99| 色综合色综合色综合| 2020国产精品| 三级成人在线视频| 91原创在线视频| 久久精品一区四区| 男女视频一区二区| 色悠悠亚洲一区二区| 国产人成一区二区三区影院| 日韩av在线播放中文字幕| 色综合久久久久| 久久久精品国产免费观看同学| 偷拍与自拍一区| 99视频在线观看一区三区| 久久夜色精品一区| 免费成人在线视频观看| 日本高清免费不卡视频| 亚洲欧洲精品一区二区精品久久久| 久久国产精品露脸对白| 欧美日韩卡一卡二| 亚洲欧美韩国综合色| 国v精品久久久网| 精品久久久久久久久久久院品网| 亚洲v中文字幕| 色婷婷精品久久二区二区蜜臂av| 国产精品久久久久久久久免费丝袜| 久久99最新地址| 日韩视频一区二区| 丝袜美腿一区二区三区| 欧美日韩在线三级| 一区二区三区久久| 99国产精品99久久久久久| 国产午夜精品久久久久久免费视| 麻豆精品久久久| 日韩欧美区一区二| 毛片不卡一区二区| 日韩一区二区在线观看视频| 午夜精品一区在线观看| 欧美综合欧美视频| 亚洲综合免费观看高清完整版在线 | 亚洲美女区一区| av午夜精品一区二区三区| 国产精品久久久久天堂| www.欧美日韩国产在线| 中文子幕无线码一区tr| 成人一级片在线观看| 国产精品美女一区二区三区| 国产精品一卡二卡| 欧美国产日韩亚洲一区| 国产91精品在线观看| 国产精品女上位| 91视频91自| 樱花影视一区二区| 精品视频全国免费看| 丝袜美腿亚洲一区| 日韩欧美成人午夜| 国产一区二区在线观看免费| 久久久精品免费观看| 不卡影院免费观看| 亚洲伦理在线精品| 欧美日韩亚洲综合在线 | 六月婷婷色综合| 久久一区二区三区四区| 高清beeg欧美| 亚洲激情在线播放| 欧美一区二区三区在线看| 美日韩一级片在线观看| 国产日韩欧美精品在线| 91网站在线播放| 午夜精品久久久久久久久久| 欧美电影免费观看高清完整版 | 成人久久18免费网站麻豆| 亚洲图片你懂的| 欧美日韩成人综合天天影院| 麻豆精品一二三| 国产精品每日更新在线播放网址 | 中文字幕欧美激情| 在线观看日韩一区| 玖玖九九国产精品| 国产精品萝li| 在线成人午夜影院| 国产精品一二三四区| 亚洲区小说区图片区qvod| 欧美理论电影在线| 国产麻豆一精品一av一免费| 中文字幕一区二区三区不卡| 欧美日韩黄色影视| 国产一区二区三区不卡在线观看 | 成人性生交大片免费| 亚洲一区二区免费视频| 久久综合视频网| 欧美色国产精品| 粉嫩久久99精品久久久久久夜| 亚洲aaa精品| 国产欧美一区在线| 91精品久久久久久蜜臀| 不卡在线观看av| 精品在线免费观看| 亚洲影视资源网| 久久久国产午夜精品| 欧美精品亚洲一区二区在线播放| 成人听书哪个软件好| 日韩黄色免费网站| 亚洲欧美日韩电影| 久久蜜臀中文字幕| 欧美裸体一区二区三区| 91在线看国产| 狠狠色丁香久久婷婷综合_中| 亚洲一级二级三级在线免费观看| 国产视频一区在线播放| 日韩欧美一级二级三级久久久| 一本色道久久加勒比精品| 国产不卡视频一区二区三区| 一级精品视频在线观看宜春院 | 欧美四级电影在线观看| 无码av免费一区二区三区试看| 欧美电影在线免费观看| 性久久久久久久久| 26uuu精品一区二区在线观看| 国内久久精品视频| 一区二区三区成人| 成人av小说网| 国产精品乱码妇女bbbb| 懂色av中文字幕一区二区三区| 国产精品久久久久一区二区三区共 | 懂色av一区二区三区免费观看| 欧美日韩高清影院| 天堂va蜜桃一区二区三区漫画版 | 国产精品国产精品国产专区不片| 亚洲国产精品天堂| 欧美日韩国产123区| 亚洲成a人在线观看| 日韩欧美在线不卡| 国产一区二区免费视频| 亚洲国产精品一区二区久久恐怖片| 国产精品久久三区| 亚洲欧美日韩中文字幕一区二区三区|