This function is used to pre-initiate the controller I/O pins. This settings may be overwritten later through other functions/modules.
Definition at line 125 of file init.c. References FAN_BIT, FAN_DDR, LED1_BIT, LED1_DDR, LED2_BIT, LED2_DDR, LED3_BIT, LED3_DDR, LED4_BIT, LED4_DDR, LED5_BIT, LED5_DDR, MUX_CURR_BIT, MUX_CURR_DDR, MUX_VOLT_BIT, MUX_VOLT_DDR, RELAY_BIT, RELAY_DDR, SPEAKER_BIT, SPEAKER_DDR, TXD_BIT, and TXD_DDR. Referenced by main(). { /* IO initialisation */ DDRB = 0x00U; DDRC = 0x00U; DDRD = 0x00U; TXD_DDR |= (1U << TXD_BIT); LED1_DDR |= (1U << LED1_BIT); LED2_DDR |= (1U << LED2_BIT); LED3_DDR |= (1U << LED3_BIT); LED4_DDR |= (1U << LED4_BIT); LED5_DDR |= (1U << LED5_BIT); MUX_VOLT_DDR |= (1U << MUX_VOLT_BIT); MUX_CURR_DDR |= (1U << MUX_CURR_BIT); SPEAKER_DDR |= (1U << SPEAKER_BIT); RELAY_DDR |= (1U << RELAY_BIT); FAN_DDR |= (1U << FAN_BIT); PORTB = 0x00U; PORTC = 0x00U; PORTD = 0x00U; }
Here is the caller graph for this function:
![]() |