1.LOOK_Mutex.H
- #include "look_config.h"
- #include <look.h>
- // 任务类 task_Look_Mutex_Led1_t 的定义
- class task_Look_Mutex_Led1_t : public task_t {
- public:
- __INLINE__ task_Look_Mutex_Led1_t(uintptr_t prio); // 构造函数
- protected:
- void routine(); // 任务例程
- };
- // 任务类 task_Look_Mutex_Led1_t 的构造函数
- __INLINE__ task_Look_Mutex_Led1_t::task_Look_Mutex_Led1_t(uintptr_t prio)
- :task_t(prio)
- {
- // TODO: 在此初始化 task_Look_Mutex_Led1_t 的类成员
- }
- // 任务类 task_Look_Mutex_Led2_t 的定义
- class task_Look_Mutex_Led2_t : public task_t {
- public:
- __INLINE__ task_Look_Mutex_Led2_t(uintptr_t prio); // 构造函数
- protected:
- void routine(); // 任务例程
- };
- // 任务类 task_Look_Mutex_Led1_t 的构造函数
- __INLINE__ task_Look_Mutex_Led2_t::task_Look_Mutex_Led2_t(uintptr_t prio)
- :task_t(prio)
- {
- // TODO: 在此初始化 task_Look_Mutex_Led1_t 的类成员
- }
- // 任务类 task_Look_Mutex_Beep_t 的定义
- class task_Look_Mutex_Beep_t : public task_t {
- public:
- __INLINE__ task_Look_Mutex_Beep_t(uintptr_t prio); // 构造函数
- protected:
- void routine(); // 任务例程
- };
- // 任务类 task_Look_Mutex_Led1_t 的构造函数
- __INLINE__ task_Look_Mutex_Beep_t::task_Look_Mutex_Beep_t(uintptr_t prio)
- :task_t(prio)
- {
- // TODO: 在此初始化 task_Look_Mutex_Led1_t 的类成员
- }
- extern instantiate::task<task_Look_Mutex_Led1_t, LOOK_STACK_SIZE> task_Look_Mutex_Led1;
- extern instantiate::task<task_Look_Mutex_Led2_t, LOOK_STACK_SIZE> task_Look_Mutex_Led2;
- extern instantiate::task<task_Look_Mutex_Beep_t, LOOK_STACK_SIZE> task_Look_Mutex_Beep;
2.LOOK_Mutex.CPP
|