Bayley Wang
/
pyroflex_AND
control the laser with the MBED
prefs.h
- Committer:
- bwang
- Date:
- 2019-11-11
- Revision:
- 1:d42ef49f54df
File content as of revision 1:d42ef49f54df:
#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