Core: Cortex: replace defines with parameters