Pixhawk1 build with chibios

When I use following target to build pixhawk1 copter firmware.
why the following code get gray color:

how to let this code include into the project when building

That’s an artefact of the build process.

CONFIG_HAL_BOARD is defined at compile-time, so any code editors will see it as undefined in the code.

OK, thank you very much for your explaination