Update simulate.h

This commit is contained in:
Ronny 2014-11-11 17:26:27 +01:00
parent 9cbfe33a9d
commit 2bf20acb3e
1 changed files with 10 additions and 6 deletions

View File

@ -3,6 +3,7 @@
#include <math.h>
#include <stdint.h>
#include <cstdio>
#define RF_CONTROL_SIMULATE_ARDUINO
#define HIGH 0x1
#define LOW 0x0
@ -13,6 +14,7 @@
#define FALLING 2
#define RISING 3
void pinMode(uint8_t, uint8_t);
void digitalWrite(uint8_t, uint8_t);
int digitalRead(uint8_t);
@ -26,9 +28,11 @@ void delayMicroseconds(unsigned int us);
void attachInterrupt(uint8_t, void (*)(void), int mode);
void detachInterrupt(uint8_t);
static char sate2string[4][255] = {
"STATUS_WAITING",
"STATUS_RECORDING",
"STATUS_VERIFY",
"STATUS_DATA_READY"
};
static char sate2string[6][255] = {
"STATUS_WAITING",
"STATUS_RECORDING_0",
"STATUS_RECORDING_1",
"STATUS_RECORDING_2",
"STATUS_RECORDING_3",
"STATUS_RECORDING_END"
};