在程序设计中,使用了两个类,这两个类都有引脚定义并同名,程序如下:
#ifndef E32_400T20S_H_
#define E32_400T20S_H_
#include "io.h"
#include "mini_uart.h"
#ifdef __cplusplus
extern "C"{
class CM0:public CIO_Output
{
public:
CM0(void);
};
class CM1:public CIO_Output
{
public:
CM1(void);
};
class CE32_400t20s:public CMiniUART
{
public:
CM0 M0;
CM1 M1;
public:
CE32_400t20s(void);
void ReadParameter(void);
void WriteParameter(uint8_t u8_CommunicationChannel);
void SetMode(uint8_t u8_Mode);
void Restart(void);
};
}
#endif
#endif
|