[FLP] Adding safe guards in HAL implementation
[FLP] ATSAM4S CMSIS part cleanup