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

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

?? sys_arch.txt

?? freertosV4.40 是一種small的嵌入式系統。利于嵌入式開好者入門學習嵌入式操作系統。通過對于源碼的學習可以很好的掌握freertos的運行機制。
?? 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网在线| 99vv1com这只有精品| 欧美色成人综合| 26uuu国产一区二区三区 | 91丨九色丨国产丨porny| 欧洲国产伦久久久久久久| 蜜臀va亚洲va欧美va天堂| 国产高清久久久久| 国产一区二区三区在线观看免费| 国内久久精品视频| 欧美性做爰猛烈叫床潮| 久久人人超碰精品| 日韩中文字幕一区二区三区| 国产在线观看一区二区| 在线观看精品一区| 26uuu色噜噜精品一区| 国产精品乱人伦中文| 免费观看成人鲁鲁鲁鲁鲁视频| 99久久精品情趣| 日韩欧美综合一区| 久久免费看少妇高潮| 亚洲综合网站在线观看| 亚洲欧美日韩在线不卡| 国产一区二区三区视频在线播放| 在线看国产一区| 欧美国产激情二区三区| 麻豆精品一二三| 欧美日韩在线免费视频| 亚洲精品国产第一综合99久久| 国产精品一区二区果冻传媒| 337p日本欧洲亚洲大胆精品| 香蕉av福利精品导航| 国产成人免费高清| 日韩欧美一级二级三级| 日韩高清在线电影| 国产高清成人在线| 久久久777精品电影网影网| 亚洲线精品一区二区三区八戒| 91在线国产福利| 一区在线播放视频| 国产电影一区二区三区| 国产日韩亚洲欧美综合| 国产91对白在线观看九色| 一区二区三区**美女毛片| 国产寡妇亲子伦一区二区| 国产女人aaa级久久久级| 免费观看成人av| 久久这里只精品最新地址| 麻豆一区二区在线| 一区二区三区在线观看国产| 久久一区二区三区国产精品| 欧美日韩中文国产| 91女人视频在线观看| 美女任你摸久久| 丝袜美腿亚洲一区| 亚洲综合免费观看高清在线观看| 久久―日本道色综合久久| 欧美三级乱人伦电影| 色网站国产精品| 91在线观看地址| jvid福利写真一区二区三区| 国产一区二区调教| 麻豆久久久久久| 麻豆国产欧美日韩综合精品二区 | 色婷婷国产精品综合在线观看| 国产剧情一区二区| 激情综合网av| 久草精品在线观看| 欧美aaaaaa午夜精品| 日韩精品一级二级| 美女免费视频一区| 国产自产2019最新不卡| 国产高清在线精品| 成人动漫中文字幕| 成人少妇影院yyyy| 91在线观看免费视频| 欧美色精品在线视频| 欧美亚洲国产一区二区三区va | 欧美第一区第二区| 91麻豆精品久久久久蜜臀| 91精品麻豆日日躁夜夜躁| 日韩欧美一级二级三级| 久久久国产精品麻豆| 国产亚洲一区字幕| 国产精品久久久一区麻豆最新章节| 国产精品系列在线| 亚洲成在人线在线播放| 国产美女一区二区三区| 97久久精品人人澡人人爽| 在线视频一区二区免费| 日韩一区二区在线播放| 久久免费精品国产久精品久久久久| 中文子幕无线码一区tr| 亚洲国产成人va在线观看天堂| 国产美女一区二区三区| 成人av午夜电影| 欧美久久久一区| 日韩美女视频一区| 激情综合色综合久久综合| 在线观看免费成人| 中文字幕精品—区二区四季| 丝袜亚洲精品中文字幕一区| 国产99精品国产| 欧美一区二区三区男人的天堂| 国产精品久久网站| 丝袜美腿亚洲一区| 99精品偷自拍| 26uuu精品一区二区在线观看| 一区二区三区四区在线| 国产91综合网| 日韩区在线观看| 亚洲电影一级片| 色婷婷亚洲精品| 亚洲欧美区自拍先锋| 成人在线视频一区| 国产日产欧美一区二区视频| 精品综合免费视频观看| 欧美日韩激情一区二区| 亚洲欧美色图小说| 成人一区二区视频| 国产欧美日韩麻豆91| 韩国三级在线一区| 日韩视频免费直播| 午夜精品久久久久久| 91官网在线免费观看| 国产精品不卡视频| 国产精品白丝jk黑袜喷水| 久久尤物电影视频在线观看| 美女网站视频久久| 日韩一区二区三区观看| 亚洲免费av在线| 91黄视频在线观看| 亚洲线精品一区二区三区八戒| 欧美亚洲免费在线一区| 亚洲3atv精品一区二区三区| 欧美亚洲一区二区在线| 五月婷婷激情综合网| 久久网这里都是精品| 激情丁香综合五月| 国产无人区一区二区三区| a美女胸又www黄视频久久| 一区二区在线观看免费视频播放| 在线一区二区观看| 麻豆国产一区二区| 国产精品乱码人人做人人爱 | 欧美精品一区二区三区在线 | 久草中文综合在线| 国产精品久久久久久亚洲伦| 欧美三级电影精品| 国产成人av电影在线播放| 一区二区欧美视频| 国产精品狼人久久影院观看方式| 欧美精品vⅰdeose4hd| 成人黄色一级视频| 国产一区二区美女诱惑| 日韩av电影免费观看高清完整版 | 亚洲图片欧美视频| 国产午夜亚洲精品羞羞网站| 91麻豆精品91久久久久久清纯| 色综合天天综合色综合av| 国产一区二区剧情av在线| 日韩国产在线一| 亚洲国产视频一区二区| 亚洲人成精品久久久久久| 日韩欧美专区在线| 色噜噜狠狠成人网p站| 成人免费看片app下载| 国产激情精品久久久第一区二区 | 欧洲一区二区三区免费视频| 国产乱人伦偷精品视频免下载| 韩国女主播成人在线观看| 免费在线观看成人| 日韩主播视频在线| 日韩成人午夜精品| 日韩1区2区日韩1区2区| 日本不卡123| 午夜亚洲国产au精品一区二区| 亚洲综合丁香婷婷六月香| 中文字幕一区二区三中文字幕| 久久精品亚洲乱码伦伦中文| 久久久久久久久久久黄色| 自拍偷拍亚洲欧美日韩| 亚洲精品福利视频网站| 欧美国产精品一区二区| 亚洲国产经典视频| 亚洲天堂成人在线观看| 亚洲欧美一区二区三区孕妇| 亚洲乱码国产乱码精品精的特点| 亚洲精品水蜜桃| 日本亚洲免费观看| 国产aⅴ精品一区二区三区色成熟| 粉嫩13p一区二区三区| 99久久精品费精品国产一区二区| 在线观看不卡一区| 欧美一区二区三区四区在线观看 | 久久成人综合网| 国产激情偷乱视频一区二区三区|