Bayley Wang
/
flash_configuration
flash based config testing
Diff: config.h
- Revision:
- 1:df6bbacb7bb9
- Parent:
- 0:941e150e78b6
- Child:
- 2:cfc39b0843ae
--- a/config.h Wed Mar 01 00:52:47 2017 +0000 +++ b/config.h Thu Mar 02 07:04:47 2017 +0000 @@ -1,6 +1,8 @@ #ifndef __CONFIG_H #define __CONFIG_H +#include "mbed.h" + /*---driving---*/ #define _TORQUE_MODE __int_reg[0] #define _MAX_TQPCT_PLUS __float_reg[0] @@ -68,7 +70,7 @@ 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 FPRINT(a) pc->printf("%s: %f\n", #a, _##a) +#define DPRINT(a) pc->printf("%s: %d\n", #a, _##a) #endif \ No newline at end of file