What are the values of the "S.CPU.PcdType" constant?

FAQ #101292

In the system tab from the PG5 2.0 a constant with the symbol name "S.CPU.PcdType" can be found. This constant is created based on the CPU type selected in the Device Configurator and is very useful in order to check the type of the PCD within IL code.

 

The values of S.CPU.PcdType constant (__PCDx_Mxxx__ constants)
PCD1 = 1
PCD2 = 2
PCD2.M170 = 3
PCD2.M480 = 10
PCD2.M5440 = 25
PCD2.M5540 = 26
PCD3.M2030V6 = 27
PCD3.M2130V6 = 28
PCD3.M3020 = 15
PCD3.M3120 = 22
PCD3.M3230 = 16
PCD3.M3330 = 17
PCD3.M5340 = 24
PCD3.M5440 = 18
PCD3.M5540 = 19
PCD3.M6340 = 20
PCD3.M6440 = 29
PCD3.M6540 = 21
PCS1 = 8

Example
The S.CPU.PcdType constant can be used for checking the type of the PCD during build time. This could be useful for defining e.g. a SASI text depending on the port, or for checking whether a feature is implemented or can be used or not.

  image

 

Related Files:

Categories

PG5 2.0 / SEdit (IL programming)

Last update: 31.05.2015 00:19

First release: 08.09.2009 07:18

Views: 2996

The requested software / document is no longer marketed by Saia-Burgess Controls AG and without technical support. It is an older software version which can be operated only on certain now no longer commercially available products.

Download