You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
409 B
24 lines
409 B
#pragma once
|
|
#include <functional>
|
|
#include <list>
|
|
|
|
#include "basic/base.hpp"
|
|
|
|
namespace iflytop {
|
|
using namespace std;
|
|
class ZIRQDispatcher {
|
|
public:
|
|
typedef function<void(zchip_tim_t *)> ontimirq_t;
|
|
|
|
list<ontimirq_t> m_ontimirqs;
|
|
|
|
public:
|
|
static ZIRQDispatcher &instance();
|
|
|
|
void regTimIrqListener(ontimirq_t listener);
|
|
|
|
public:
|
|
void _callOnTimIrq(zchip_tim_t *tim);
|
|
};
|
|
|
|
} // namespace iflytop
|