spinsim/spinsim.h

22 lines
426 B
C
Raw Normal View History

2018-04-13 02:20:22 +00:00
#include <stdint.h>
int step_chip(void);
2018-04-13 02:20:22 +00:00
//int CheckSerialIn(SerialT *serial);
void CheckCommand(void);
void putchx(int32_t val);
2018-04-13 02:20:22 +00:00
//void CheckSerialOut(SerialT *serial);
void spinsim_exit(int32_t exitcode);
2018-04-13 02:20:22 +00:00
#define WAIT_CNT 01
#define WAIT_CORDIC 02
#define WAIT_PIN 03
#define WAIT_HUB 16
#define WAIT_CACHE 17
#define WAIT_FLAG 18
2018-04-13 02:20:22 +00:00
#ifdef __MINGW32__
#define NEW_LINE "\n"
#else
#define NEW_LINE "\r\n"
#endif