aboutsummaryrefslogtreecommitdiff
path: root/include/drv/ir/control.h
blob: 11e36048f1a3bb83004bbea4da0b8fa9fb54c7b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#ifndef _DRV_IR_CONTROL_H_
#define _DRV_IR_CONTROL_H_

#include "kern/common.h"

#define add_ir_code_callback(code, fn, closure) \
  add_ir_code_callback_(code, (void (*)(uint32_t, void*))(fn), closure)

void add_ir_code_callback_(
    uint32_t code, void (*fn)(uint32_t code, void* closure), void* closure);

void enable_ir_control();

#endif /* _DRV_IR_CONTROL_H_ */