RL78开饭板如何连接CUBESUITE+调试,运行代码.我的头文件这样写是否有问题:
/**************************************/
/*port register */
/**************************************/
#define P0 (*((volatile unsigned char *) 0xFFF00))
#define P1 (*((volatile unsigned char *) 0xFFF01))
#define P2 (*((volatile unsigned char*) 0xFFF02))
#define P3 (*((volatile unsigned char *) 0xFFF03))
/**************************************/
/*port mode register */
/**************************************/
#define PM0 (*((volatile unsigned char *)0xFFF20))
#define PM1 (*((volatile unsigned char *)0xFFF21))
#define PM2 (*((volatile unsigned char *)0xFFF22))
#define PM3 (*((volatile unsigned char *)0xFFF23))