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_arm/trunk/usbhost/src/usb_hbth.h

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