ti_lm3s6965: Add Bluetooth initialization to system.c
Add Bluetooth initialization for target ti_lm3s6965. Change-Id: I7c7e392d2bb8671098e54b1305051a5882fd3bef Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
This commit is contained in:
parent
be2135d75e
commit
cc19fbb873
|
@ -116,6 +116,27 @@ static void consoleInit(void)
|
|||
} while ((0))
|
||||
#endif /* DO_CONSOLE_INIT */
|
||||
|
||||
#if defined(CONFIG_BLUETOOTH)
|
||||
#if defined(CONFIG_BLUETOOTH_UART)
|
||||
#include <bluetooth/uart.h>
|
||||
#endif /* CONFIG_BLUETOOTH_UART */
|
||||
|
||||
static void bluetooth_init(void)
|
||||
{
|
||||
#if defined(CONFIG_BLUETOOTH_UART)
|
||||
/* Enable clock to UART1 */
|
||||
RCGC1 |= RCGC1_UART1_EN;
|
||||
|
||||
/* General UART init */
|
||||
bt_uart_init();
|
||||
#endif /* CONFIG_BLUETOOTH_UART */
|
||||
}
|
||||
#else /* CONFIG_BLUETOOTH */
|
||||
#define bluetooth_init() \
|
||||
do {/* nothing */ \
|
||||
} while ((0))
|
||||
#endif /* CONFIG_BLUETOOTH */
|
||||
|
||||
/*******************************************************************************
|
||||
*
|
||||
* _InitHardware - perform basic hardware initialization
|
||||
|
@ -130,6 +151,7 @@ static void consoleInit(void)
|
|||
void _InitHardware(void)
|
||||
{
|
||||
consoleInit(); /* NOP if not needed */
|
||||
bluetooth_init(); /* NOP if not needed */
|
||||
|
||||
/* Install default handler that simply resets the CPU
|
||||
* if configured in the kernel, NOP otherwise
|
||||
|
|
Loading…
Reference in a new issue