你好,卡洛斯,
目前,我们没有任何定义,它标识代码中的PSoC 6。但是,我们已经定义了部件号,可以用来识别PSoC 6。你甚至可以根据你正在使用的部分删除代码。
以下为PSoC 63系列:
如果定义(CY8C6336BZIILBLF03)
El ILIF定义(CY8C6316BZIILBLF03)
El ILIF定义(CY8C6316BZIILBLF53)
El ILIF定义(CY8C6336BZIILBLD13)
El ILIF定义(CY8C637BZIYBLD43)
El ILIF定义(CY8C637BZIYBLD33)
El ILIF定义(CY8C637BZIYBLD53)
El ILIF定义(CY8C634 7FMII1.BLD13)
El ILIF定义(CY8C634 7FMIILBLD43)
El ILIF定义(CY8C634 7FMIILBLD33)
El ILIF定义(CY8C634 7FMIILBLD53)
否则
定义CythNo.PoSOC6
第二节
γIFNDEF CYN-NON-PSOC6
定义CyspSOC6
第二节
还可以在为PSoC 6构建时为M0+和M4在编译器设置中定义的附加预处理器定义CysPoS6。
当做,
Meenakshi Sundaram R
以上来自于百度翻译
以下为原文
Hello Carlos,
Currently we do not have any defines, which identifies PSoC 6 in a code. However, we have defines for part number, which you can use to identify PSoC 6. And you can even remove codes depending on the part# you are using.
Something like below for PSoC 63 family:
#if defined (CY8C6336BZI_BLF03)
#elif defined (CY8C6316BZI_BLF03)
#elif defined (CY8C6316BZI_BLF53)
#elif defined (CY8C6336BZI_BLD13)
#elif defined (CY8C6347BZI_BLD43)
#elif defined (CY8C6347BZI_BLD33)
#elif defined (CY8C6347BZI_BLD53)
#elif defined (CY8C6347FMI_BLD13)
#elif defined (CY8C6347FMI_BLD43)
#elif defined (CY8C6347FMI_BLD33)
#elif defined (CY8C6347FMI_BLD53)
#else
#define CY_NON_PSOC6
#endif
#ifndef CY_NON_PSOC6
#define CY_PSOC6
#endif
You can also define CY_PSOC6 in the additional preprocessor defines in the compiler settings for both M0+ and M4 when building for PSoC 6.
Regards,
Meenakshi Sundaram R
你好,卡洛斯,
目前,我们没有任何定义,它标识代码中的PSoC 6。但是,我们已经定义了部件号,可以用来识别PSoC 6。你甚至可以根据你正在使用的部分删除代码。
以下为PSoC 63系列:
如果定义(CY8C6336BZIILBLF03)
El ILIF定义(CY8C6316BZIILBLF03)
El ILIF定义(CY8C6316BZIILBLF53)
El ILIF定义(CY8C6336BZIILBLD13)
El ILIF定义(CY8C637BZIYBLD43)
El ILIF定义(CY8C637BZIYBLD33)
El ILIF定义(CY8C637BZIYBLD53)
El ILIF定义(CY8C634 7FMII1.BLD13)
El ILIF定义(CY8C634 7FMIILBLD43)
El ILIF定义(CY8C634 7FMIILBLD33)
El ILIF定义(CY8C634 7FMIILBLD53)
否则
定义CythNo.PoSOC6
第二节
γIFNDEF CYN-NON-PSOC6
定义CyspSOC6
第二节
还可以在为PSoC 6构建时为M0+和M4在编译器设置中定义的附加预处理器定义CysPoS6。
当做,
Meenakshi Sundaram R
以上来自于百度翻译
以下为原文
Hello Carlos,
Currently we do not have any defines, which identifies PSoC 6 in a code. However, we have defines for part number, which you can use to identify PSoC 6. And you can even remove codes depending on the part# you are using.
Something like below for PSoC 63 family:
#if defined (CY8C6336BZI_BLF03)
#elif defined (CY8C6316BZI_BLF03)
#elif defined (CY8C6316BZI_BLF53)
#elif defined (CY8C6336BZI_BLD13)
#elif defined (CY8C6347BZI_BLD43)
#elif defined (CY8C6347BZI_BLD33)
#elif defined (CY8C6347BZI_BLD53)
#elif defined (CY8C6347FMI_BLD13)
#elif defined (CY8C6347FMI_BLD43)
#elif defined (CY8C6347FMI_BLD33)
#elif defined (CY8C6347FMI_BLD53)
#else
#define CY_NON_PSOC6
#endif
#ifndef CY_NON_PSOC6
#define CY_PSOC6
#endif
You can also define CY_PSOC6 in the additional preprocessor defines in the compiler settings for both M0+ and M4 when building for PSoC 6.
Regards,
Meenakshi Sundaram R
举报