Ignore:
Timestamp:
Apr 5, 2019, 9:26:53 PM (5 years ago)
Author:
coas-nagasima
Message:

mbed関連を更新
シリアルドライバをmbedのHALを使うよう変更
ファイルディスクリプタの処理を更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asp3_tinet_ecnl_rx/trunk/usbhost/src/usb_hbth.h

    r337 r374  
    1111#define USBHOST_STACK_SIZE                      2048
    1212
    13 extern void usbhost_init(ID tskid);
    14 extern void usbhost_main(intptr_t exinf);
     13enum task_event_t {
     14        TASK_EVENT_START,
     15        TASK_EVENT_TERMINATE,
     16        TASK_EVENT_WAKEUP,
     17        TASK_EVENT_TIMEOUT,
     18        TASK_EVENT_TICK = 0x80,
     19};
     20
     21struct task_if_t {
     22        void (*on_start)(struct task_if_t *task, ID tskid);
     23        void (*on_end)(struct task_if_t *task);
     24        int (*get_timer)(struct task_if_t *task);
     25        void (*progress)(struct task_if_t *task, int elapse);
     26        void (*process)(struct task_if_t *task, enum task_event_t event);
     27};
     28
     29extern struct task_if_t bt_task;
     30
     31void usbhost_init(ID tskid);
     32void usbhost_main(intptr_t exinf);
    1533
    1634/*
Note: See TracChangeset for help on using the changeset viewer.