Hi Juan,
there is a link in each demo for the specific MCU linked in fsl_device_registers.h
In these folder you will find board specific files, which are different for MK21FA12 and for MK22F12.

in fsl_device_registers.h you will find supported MCUs for concrete serie.
In MK22F12 folder you will find in fsl_device_registers.h
#if (defined(CPU_MK22FN1M0VLH12) || defined(CPU_MK22FN1M0VLK12) || defined(CPU_MK22FN1M0VLL12) || \
defined(CPU_MK22FN1M0VLQ12) || defined(CPU_MK22FN1M0VMC12) || defined(CPU_MK22FN1M0VMD12) || \
defined(CPU_MK22FX512VLH12) || defined(CPU_MK22FX512VLK12) || defined(CPU_MK22FX512VLL12) || \
defined(CPU_MK22FX512VLQ12) || defined(CPU_MK22FX512VMC12) || defined(CPU_MK22FX512VMD12))
and the second folder is for these MCUs
#if (defined(CPU_MK21FX512AVLQ12) || defined(CPU_MK21FN1M0AVLQ12) || defined(CPU_MK21FX512AVMC12) || \
defined(CPU_MK21FN1M0AVMC12) || defined(CPU_MK21FX512AVMD12) || defined(CPU_MK21FN1M0AVMD12))
And here you can find how there are particular files linked:

Please, does this help you?
Best Regards,
Iva