void ciaaDriverUart_init(void) { uint8_t loopi; /* add uart driver to the list of devices */ for(loopi = 0; loopi < ciaaDriverUartConst.countOfDevices; loopi++) { /* add each device */ ciaaSerialDevices_addDriver(ciaaDriverUartConst.devices[loopi]); } }
void ciaaDriverUart_init(void) { uint8_t loopi; /* add uart driver to the list of devices */ for(loopi = 0; loopi < ciaaDriverUartConst.countOfDevices; loopi++) { /* initialize configuration variables and port */ ciaaDriverUart_configInit(ciaaDriverUartConst.devices[loopi], loopi); /* add each device */ ciaaSerialDevices_addDriver(ciaaDriverUartConst.devices[loopi]); } }