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

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

?? sys_arch.txt

?? freertosV4.40 是一種small的嵌入式系統(tǒng)。利于嵌入式開好者入門學(xué)習(xí)嵌入式操作系統(tǒng)。通過對(duì)于源碼的學(xué)習(xí)可以很好的掌握freertos的運(yùn)行機(jī)制。
?? 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一区二区三区免费野_久草精品视频
国产黑丝在线一区二区三区| 国产精品少妇自拍| 欧美三区在线观看| 欧美一区二区三区喷汁尤物| 欧美一区二区三区婷婷月色| 日韩欧美久久久| 国产精品网友自拍| 亚洲影院理伦片| 国产一区二区美女诱惑| 日本亚洲三级在线| 国产成人精品免费在线| 丝袜亚洲另类欧美| 国产一区二区三区久久久| 国产91精品精华液一区二区三区| xnxx国产精品| 国产一区二区三区不卡在线观看| 国产麻豆视频精品| 91国偷自产一区二区三区观看| 91在线国内视频| 欧美日韩国产精选| 中文乱码免费一区二区| 香蕉久久一区二区不卡无毒影院 | 色综合天天视频在线观看 | 欧美在线不卡视频| 欧美v亚洲v综合ⅴ国产v| 亚洲视频免费观看| 久久精品国产久精国产| 色综合亚洲欧洲| 国产午夜精品一区二区三区嫩草| 亚洲成人激情综合网| 粉嫩av亚洲一区二区图片| 欧美一级午夜免费电影| 国产精品每日更新| 国产精华液一区二区三区| 91精品国产入口| 中文字幕巨乱亚洲| 亚洲色大成网站www久久九九| 中文字幕成人网| 国产精品久久影院| 一区二区三区高清在线| 精品一区二区在线看| 国产成人综合网| 免费看日韩精品| 国产美女av一区二区三区| av一区二区三区在线| 欧美视频一区在线观看| 精品日韩99亚洲| 亚洲欧美另类图片小说| 日韩精品视频网站| 成人黄色电影在线 | 3d成人h动漫网站入口| 久久久蜜臀国产一区二区| 亚洲激情在线激情| 精品系列免费在线观看| 91捆绑美女网站| 精品国免费一区二区三区| 国产精品久久久久久久岛一牛影视| 亚洲国产成人精品视频| 国产一区二区91| 欧美日韩午夜影院| 国产精品久久久久久久岛一牛影视 | 国产精品综合网| 欧美色视频一区| 亚洲国产精品激情在线观看| 日韩精品电影一区亚洲| 91看片淫黄大片一级在线观看| 欧美大片一区二区| 亚洲国产欧美日韩另类综合 | 丁香另类激情小说| 日韩一区二区三区观看| 亚洲与欧洲av电影| av欧美精品.com| 久久亚洲欧美国产精品乐播| 亚洲永久免费视频| 91在线国产福利| 国产日韩在线不卡| 九九精品视频在线看| 538在线一区二区精品国产| 亚洲丝袜制服诱惑| 成人精品高清在线| 欧美精品一区男女天堂| 日韩av网站免费在线| 欧美在线一二三四区| 亚洲欧美一区二区在线观看| 国产高清一区日本| 久久久精品国产免大香伊 | 日韩欧美国产wwwww| 丝瓜av网站精品一区二区| 在线亚洲高清视频| 亚洲蜜臀av乱码久久精品蜜桃| 成人激情校园春色| 欧美国产亚洲另类动漫| 丰满少妇久久久久久久| 久久久久久久久久看片| 国产综合一区二区| 久久综合成人精品亚洲另类欧美| 日韩va欧美va亚洲va久久| 欧美女孩性生活视频| 亚洲精品国产一区二区精华液 | 亚洲激情自拍偷拍| 风间由美一区二区av101| 精品国产sm最大网站| 蜜桃av一区二区在线观看| 欧美日韩国产乱码电影| 三级欧美韩日大片在线看| 91成人在线精品| 亚洲欧洲精品一区二区三区不卡| 国产精品一区一区| 欧美大胆一级视频| 免费av成人在线| 欧美日韩午夜影院| 亚洲国产一区二区视频| 色视频欧美一区二区三区| 亚洲欧美日韩中文字幕一区二区三区| 大陆成人av片| 国产精品免费视频一区| 91玉足脚交白嫩脚丫在线播放| 中文字幕在线观看不卡| 成人av资源下载| 中文字幕日韩欧美一区二区三区| 国产91精品久久久久久久网曝门| 国产精品久久久久婷婷| 成人污污视频在线观看| 国产亚洲精品超碰| 国产成人av一区二区三区在线| 国产亚洲午夜高清国产拍精品 | 美日韩黄色大片| 日韩免费视频一区二区| 麻豆成人免费电影| 欧美精品一级二级三级| 黄一区二区三区| 久久精品亚洲精品国产欧美kt∨| 国产成人av一区二区| 国产精品毛片久久久久久 | 日韩一区二区不卡| 国产999精品久久| 一区二区中文视频| 91成人在线观看喷潮| 亚洲第一福利一区| 制服丝袜中文字幕一区| 日日摸夜夜添夜夜添精品视频| wwwwww.欧美系列| 国v精品久久久网| 亚洲视频一区在线观看| 欧美日韩亚洲不卡| 久久99热这里只有精品| 日本一区二区三区在线不卡| 欧美亚洲自拍偷拍| 麻豆91在线观看| 中文字幕精品一区二区三区精品| 91免费小视频| 首页综合国产亚洲丝袜| 中文字幕av一区 二区| 色妹子一区二区| 蜜臀av一区二区| 中文字幕一区二区三区乱码在线 | 欧美不卡在线视频| 91免费看视频| 麻豆成人在线观看| 久久综合色一综合色88| 99精品久久久久久| 日韩国产欧美在线视频| 欧美国产精品一区二区| 欧美性大战xxxxx久久久| 国产精品888| 亚洲成a天堂v人片| 久久一日本道色综合| 99re在线视频这里只有精品| 日本不卡不码高清免费观看 | 亚洲免费观看高清完整版在线| 精品国产污污免费网站入口| www.日韩在线| 蜜桃久久精品一区二区| 亚洲视频综合在线| 精品美女在线播放| 欧美综合久久久| 国产高清精品久久久久| 五月婷婷综合激情| 国产精品午夜春色av| 日韩一区二区三区免费看| 一道本成人在线| 高清不卡一二三区| 视频一区二区三区中文字幕| 亚洲精品五月天| 久久精品视频免费观看| 欧美卡1卡2卡| eeuss影院一区二区三区| 日韩高清在线一区| 亚洲国产精品人人做人人爽| 中文字幕第一区二区| 精品国产一区二区三区四区四 | 欧美剧情片在线观看| 在线免费精品视频| 成人理论电影网| 国产综合成人久久大片91| 丝袜美腿高跟呻吟高潮一区| 中文字幕佐山爱一区二区免费| 国产午夜精品美女毛片视频| 日韩一区二区三区四区| 欧美日韩激情一区|