pxt-ev3/libs/core/pxt.h
Michal Moskal 97b6c7dc4b Add music
2017-07-07 11:44:34 +01:00

24 lines
369 B
C++

#ifndef __PXT_H
#define __PXT_H
#include "pxtbase.h"
#define ID_BUTTON_BASE 100
namespace pxt {
void raiseEvent(int id, int event);
int allocateNotifyEvent();
void sleep_core_us(uint64_t us);
class Button;
typedef Button *Button_;
extern "C" void target_init();
}
#define DEVICE_EVT_ANY 0
#define DEVICE_ID_NOTIFY 10000
#define DEVICE_ID_NOTIFY_ONE 10001
#endif