Ejemplo n.º 1
0
void
slip_arch_init(unsigned long ubr)
{	
   
	(void)ubr;

#if (SLIP_COMM == SLIP_USB)
#if BRTOS_CPU == COLDFIRE_V1	
    (void)CDC_Init(); /* Initialize the USB CDC Application */
#elif  BRTOS_CPU == ARM_Cortex_M0 
	USB_Init();	
	(void)cdc_Init(); /* Initialize the USB CDC Application */
#endif
#endif

#if (SLIP_COMM == SLIP_UART)
#if BRTOS_CPU == COLDFIRE_V1
	// Passado tamanho 0 de fila para não gerar fila do sistema
	// Passado prioridade 0 para não criar mutex
	uart_init(UART_NUMBER, 115200, 0, 0);
#elif  BRTOS_CPU == ARM_Cortex_M0
	// Passado tamanho 0 de fila para não gerar fila do sistema
	Init_UART0(115200, 0);
#endif
#endif
}
Ejemplo n.º 2
0
void Init_Peripherals(void)
{
 Init_Ports();
 Init_UART0();
}