/**
* @brief Initialization function for Arduino UNO.
* @test MISRA-C 2012 Compliant function.
* @return void
*/
void setup(void)
{
/*
DDRD stands for The Port D Data Direction Register.
Initializing the PORT D's 0th bit PD0 pin of arduino UNO as OUTPUT
*/
DDRD=0b00000001;
while(true)
{
/*
PORTD stands for The Port D Data Register.
Bit 0 is getting SET to HIGH, it will give logic HIGH to the connected LED on the
PD0 Pin.
*/
PORTD=0b00000001;
/*
Giving one second of delay to acheive 1Hz frequency for LED blinking.
*/
delay(1000);
/*
PORTD stands for The Port D Data Register.
Bit 0 is getting SET to LOW, it will give logic LOW to the connected LED on the
PD0 Pin.
*/
PORTD=0b00000000;
/*
Giving one second of delay to acheive 1Hz frequency for LED blinking.
*/
delay(1000);
}
}