Пример #1
0
void UserStartup(void)
{
    // The following UART functions initialize Bluetooth communications used by the
    // Freescale Sensor Fusion Toolbox.  If the developer is not using the toolbox,
    // these can be removed.
    //
    // initialize BlueRadios Bluetooth module
    BlueRadios_Init(UART_DeviceData);

    // put code here to be executed at the end of the RTOS startup sequence.
    //
    // PUT YOUR CODE HERE
    //

    return;
}
Пример #2
0
void UserStartup(void)
{
	// initialize the BlueRadios Bluetooth module
	BlueRadios_Init(UART_A_DeviceData);

	// trigger a callback when any single character is received into 
	// the UART_A or UART_B buffers.
	UART_A_ReceiveBlock(UART_A_DeviceData, sUART_A_InputBuffer, 1);	// Bluetooth on shield
	UART_B_ReceiveBlock(UART_B_DeviceData, sUART_B_InputBuffer, 1);	// OpenSDA and USB
	
	// UART callbacks and command interpreter are located in Events.c

	// put code here to be executed at the end of the RTOS startup sequence.
	//
	// PUT YOUR CODE HERE
	//

	return;
}