Bayley Wang
/
pyroflex_AND
control the laser with the MBED
Diff: prefs.h
- Revision:
- 1:d42ef49f54df
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/prefs.h Mon Nov 11 03:38:40 2019 +0000 @@ -0,0 +1,21 @@ +#ifndef __CONFIG_H +#define __CONFIG_H + +#include "mbed.h" + +/*---pulsewidth/frequency---*/ +#define _PULSE_WIDTH __int_reg[0] +#define _PULSE_FREQ __int_reg[1] + +/*internal variables and macros*/ + +extern float __float_reg[]; +extern int __int_reg[]; + +#define DEFAULT(a) _##a = a +#define FPRINT(a) pc->printf("%s: %f\n", #a, _##a) +#define DPRINT(a) pc->printf("%s: %d\n", #a, _##a) +#define FPRINT2(a) pc->printf("%s: %f\n", #a, a); +#define DPRINT2(a) pc->printf("%s: %d\n", #a, a) + +#endif \ No newline at end of file