// Basic Arduino program to blink the built-in LED following MISRA C guidelines
#define LED_PIN 13U // MISRA C: Use unsigned integer literals
void setup(void) {
// Set the LED pin as an output
pinMode(LED_PIN, OUTPUT); // MISRA C: Function should have a prototype in a header file
}
void loop(void) {
digitalWrite(LED_PIN, HIGH); // Turn LED on
_delay_ms(1000U); // Wait for a second - MISRA C: Use fixed-width delay function
digitalWrite(LED_PIN, LOW); // Turn LED off
_delay_ms(1000U); // Wait for a second
}