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

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

?? sys_arch.txt

?? Modbus協(xié)議的源代碼 Modbus協(xié)議的源代碼、 Modbus協(xié)議的源代碼 Modbus協(xié)議的源代碼
?? TXT
字號:
sys_arch interface for lwIP 0.6++

Author: Adam Dunkels

The operating system emulation layer provides a common interface
between the lwIP code and the underlying operating system kernel. The
general idea is that porting lwIP to new architectures requires only
small changes to a few header files and a new sys_arch
implementation. It is also possible to do a sys_arch implementation
that does not rely on any underlying operating system.

The sys_arch provides semaphores and mailboxes to lwIP. For the full
lwIP functionality, multiple threads support can be implemented in the
sys_arch, but this is not required for the basic lwIP
functionality. Previous versions of lwIP required the sys_arch to
implement timer scheduling as well but as of lwIP 0.5 this is
implemented 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 defining
macros used throughout lwip.  The files required and the macros they
must define are listed below the sys_arch description.

Semaphores can be either counting or binary - lwIP works with both
kinds. Mailboxes are used for message passing and can be implemented
either as a queue which allows multiple messages to be posted to a
mailbox, or as a rendez-vous point where only one message can be
posted at a time. lwIP works with both kinds, but the former type will
be more efficient. A message in a mailbox is just a pointer, nothing
more. 

Semaphores are represented by the type "sys_sem_t" which is typedef'd
in the sys_arch.h file. Mailboxes are equivalently represented by the
type "sys_mbox_t". lwIP does not place any restrictions on how
sys_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 if
such functionality is needed in lwIP, the following function will have
to 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一区二区三区免费野_久草精品视频
日韩理论片在线| 亚洲三级在线免费观看| 欧美伊人精品成人久久综合97| 国产成都精品91一区二区三| 极品尤物av久久免费看| 经典三级视频一区| 国产精品99久久久久| 成人黄色软件下载| 色香色香欲天天天影视综合网 | 日韩精品一区二区三区视频在线观看 | 欧美国产乱子伦| 国产日韩欧美精品在线| 亚洲国产成人午夜在线一区| 国产精品久久久一区麻豆最新章节| 国产精品美女久久福利网站| 一二三四社区欧美黄| 日韩精品一二三四| 国产成人亚洲综合a∨婷婷图片 | 在线观看日韩国产| 在线综合视频播放| 国产视频一区不卡| 一区二区久久久| 久久99久久精品| 一本一道波多野结衣一区二区| 欧美日韩精品一区二区三区| 亚洲精品在线免费播放| 亚洲日本在线视频观看| 青青国产91久久久久久| 成人在线视频一区| 欧美日韩一区成人| 国产拍欧美日韩视频二区| 一区二区三区欧美在线观看| 久久国产生活片100| 99热99精品| 日韩一级高清毛片| 国产精品成人免费精品自在线观看 | 一区二区在线观看免费| 日本vs亚洲vs韩国一区三区二区 | 日韩主播视频在线| 国产成人精品在线看| 欧美日韩电影在线播放| 国产亚洲欧美色| 奇米影视7777精品一区二区| 91女人视频在线观看| 精品成人a区在线观看| 亚洲综合男人的天堂| 成人妖精视频yjsp地址| 欧美一级国产精品| 亚洲综合999| 成人黄色在线视频| 久久久99久久| 久久精品国产**网站演员| 在线影视一区二区三区| 国产欧美日产一区| 久久99精品一区二区三区| 欧洲精品视频在线观看| 中文字幕一区二区三区四区不卡| 国产一区二区在线免费观看| 欧美一区二区三区视频免费| 亚洲韩国精品一区| 色婷婷av一区二区三区软件| 中日韩免费视频中文字幕| 精品一区二区免费| 欧美videos中文字幕| 青青草成人在线观看| 欧美精品自拍偷拍动漫精品| 亚洲自拍另类综合| 色狠狠色噜噜噜综合网| 中文字幕色av一区二区三区| 国产精品一区二区在线播放| 久久久三级国产网站| 麻豆91免费看| 精品日韩欧美在线| 国产美女视频一区| 中文字幕国产一区| av在线免费不卡| 一区二区高清视频在线观看| 91久久精品日日躁夜夜躁欧美| 亚洲欧美日韩在线不卡| 欧洲一区在线观看| 亚洲电影欧美电影有声小说| 在线不卡中文字幕播放| 麻豆91精品视频| 精品国产免费视频| 懂色av一区二区三区免费观看| 国产精品乱码久久久久久| 91在线小视频| 亚洲高清不卡在线| 欧美成人猛片aaaaaaa| 国产高清成人在线| 亚洲欧美二区三区| 欧美一区二区三区视频免费| 精品一区二区在线播放| 欧美国产一区在线| 91理论电影在线观看| 日韩黄色小视频| 精品国产麻豆免费人成网站| 国产成人精品免费一区二区| 亚洲美女少妇撒尿| 欧美一区二区在线视频| 国产一区免费电影| 亚洲私人影院在线观看| 7777精品伊人久久久大香线蕉的| 国内精品伊人久久久久av影院| 中文字幕在线免费不卡| 在线播放日韩导航| 国产成人综合在线| 亚洲综合在线电影| 久久久精品影视| 欧美色国产精品| 国产成人一级电影| 日韩av成人高清| 国产精品国产三级国产普通话三级| 欧美日韩精品是欧美日韩精品| 国产精品自拍一区| 性欧美疯狂xxxxbbbb| 国产欧美日韩在线| 日韩一区二区三区在线观看 | 一区二区视频免费在线观看| 欧美成人在线直播| 欧美中文字幕久久| 成人激情免费视频| 激情综合色综合久久| 亚洲福中文字幕伊人影院| 国产日韩欧美精品电影三级在线| 欧美色精品在线视频| 成人avav影音| 国产盗摄精品一区二区三区在线 | 欧美片网站yy| 91欧美激情一区二区三区成人| 国产一区二区三区四区五区美女| 亚洲在线一区二区三区| 中文字幕亚洲区| 国产午夜久久久久| 精品理论电影在线| 日韩欧美激情一区| 欧美电影免费观看高清完整版 | 久久久精品免费免费| 欧美一区三区四区| 欧美一区二区在线免费观看| 91九色02白丝porn| 色婷婷av一区二区三区软件| a美女胸又www黄视频久久| 国产一区 二区| 国产一区二区成人久久免费影院| 蜜臀久久99精品久久久画质超高清| 亚洲一区二区在线播放相泽| 最近中文字幕一区二区三区| 国产精品久久久久影院色老大| 欧美国产精品中文字幕| 中文字幕精品一区二区精品绿巨人 | 日本在线观看不卡视频| 亚洲va欧美va天堂v国产综合| 伊人婷婷欧美激情| 怡红院av一区二区三区| 亚洲精品v日韩精品| 亚洲尤物在线视频观看| 一区二区三区美女视频| 亚洲一区二区三区视频在线播放| 亚洲免费观看高清完整版在线观看 | 老司机精品视频导航| 麻豆国产精品视频| 国产一区二区三区美女| 成人动漫中文字幕| 日本丶国产丶欧美色综合| 97久久精品人人爽人人爽蜜臀| 99久久伊人精品| 色婷婷综合久久久久中文一区二区| 色偷偷久久一区二区三区| 在线观看日韩电影| 欧美一区二区精美| 久久久亚洲精华液精华液精华液| 国产三级欧美三级| 自拍偷拍亚洲综合| 亚洲高清一区二区三区| 九一久久久久久| 成人免费高清在线观看| 在线免费观看日本欧美| 日韩午夜精品视频| 国产精品天美传媒| 午夜视频一区在线观看| 国产精品香蕉一区二区三区| 99久久精品一区二区| 91.com在线观看| 国产欧美一区二区三区网站| 亚洲女与黑人做爰| 蜜桃91丨九色丨蝌蚪91桃色| 风间由美一区二区三区在线观看| 色婷婷av一区二区三区之一色屋| 91精品国产91久久综合桃花| 国产女同互慰高潮91漫画| 亚洲第一综合色| 成人av免费观看| 欧美一级理论片| 一个色综合网站| 国产高清视频一区| 欧美一级精品在线| 亚洲成a人v欧美综合天堂下载| 国产福利不卡视频| 欧美一级夜夜爽|