1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-18 08:54:15 +01:00

RFM22b: Added SPI initialization back into PipX pios_board.c.

Signed-off-by: James Cotton <peabody124@gmail.com>
This commit is contained in:
Brian Webb 2012-08-27 19:10:54 -07:00 committed by James Cotton
parent d9ec6454c2
commit fcbf01fa74

View File

@ -68,6 +68,11 @@ void PIOS_Board_Init(void) {
/* Initialize UAVObject libraries */
EventDispatcherInitialize();
UAVObjInitialize();
/* Set up the SPI interface to the rfm22b */
if (PIOS_SPI_Init(&pios_spi_rfm22b_id, &pios_spi_rfm22b_cfg)) {
PIOS_DEBUG_Assert(0);
}
#ifdef PIOS_INCLUDE_WDG
/* Initialize watchdog as early as possible to catch faults during init */