File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,13 @@ elseif(MICROCHIP_MCU MATCHES "^(dsPIC|PIC)(32M[XZ]|[0-9]+[A-Z])([A-Z0-9]+)$")
102
102
103
103
if (MICROCHIP_MCU_FAMILY IN_LIST MICROCHIP_FAMILIES_8 )
104
104
set (CMAKE_SYSTEM_PROCESSOR "PIC_8" )
105
+ add_definitions (-D__${MICROCHIP_MCU_FAMILY}__ -D__${MICROCHIP_MCU_MODEL}__ )
105
106
elseif (MICROCHIP_MCU_FAMILY IN_LIST MICROCHIP_FAMILIES_16 )
106
107
set (CMAKE_SYSTEM_PROCESSOR "PIC_16" )
108
+ add_definitions (-D__${MICROCHIP_MCU_FAMILY}__ -D__${MICROCHIP_MCU_MODEL}__ )
107
109
elseif (MICROCHIP_MCU_FAMILY IN_LIST MICROCHIP_FAMILIES_32 )
108
110
set (CMAKE_SYSTEM_PROCESSOR "PIC_32" )
111
+ add_definitions (-D__${MICROCHIP_MCU_FAMILY}__ -D__${MICROCHIP_MCU_MODEL}__ )
109
112
else ()
110
113
message (FATAL_ERROR
111
114
"Unsupported MCU family '${MICROCHIP_MCU_FAMILY} '."
You can’t perform that action at this time.
0 commit comments