AWHUBADC/history/V01/AWHUBADC/AWHUBADC/src/driver_init.c
/* configure the pins and initialize the registers */
configure the pins and initialize the registers
configure the pins and initialize the registers
void USART_0_initialization(void)
{
	PA2_set_dir(PORT_DIR_IN);
	PA2_set_pull_mode(
	    PORT_PULL_OFF);
	PORTMUX.CTRLB |= PORTMUX_USART0_bm;
	PA1_set_level(
	    false);
	PA1_set_dir(PORT_DIR_OUT);
	PORTMUX.CTRLB |= PORTMUX_USART0_bm;
	USART_0_init();
}
void USART_0_initialization ( void ) { PA2_set_dir ( PORT_DIR_IN ) ; PA2_set_pull_mode ( PORT_PULL_OFF ) ; PORTMUX . CTRLB |= PORTMUX_USART0_bm ; PA1_set_level ( false ) ; PA1_set_dir ( PORT_DIR_OUT ) ; PORTMUX . CTRLB |= PORTMUX_USART0_bm ; USART_0_init ( ) ; }
configure the pins and initialize the registers
configure the pins and initialize the registers
// Set pin direction to input // <y> Pull configuration // <id> pad_pull_config // <PORT_PULL_OFF"> Off // <PORT_PULL_UP"> Pull-up /* set the alternate pin mux */ // Set pin direction to output // <y> Initial level // <id> pad_initial_level // <false"> Low // <true"> High /* set the alternate pin mux */