1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-31 16:52:10 +01:00

OP-1477 - add support for SPI/MAG

This commit is contained in:
Alessio Morale 2014-09-07 22:30:51 +02:00
parent b4f9c7c2b1
commit 7e55d6ff41
2 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@
#include "../board_hw_defs.c" #include "../board_hw_defs.c"
#define PIOS_COM_MAIN_RX_BUF_LEN 16 #define PIOS_COM_MAIN_RX_BUF_LEN 16
#define PIOS_COM_MAIN_TX_BUF_LEN 64 #define PIOS_COM_MAIN_TX_BUF_LEN 255
uint32_t pios_com_main_id; uint32_t pios_com_main_id;
@ -75,7 +75,7 @@ void PIOS_Board_Init(void)
} }
#ifdef PIOS_INCLUDE_HMC5X83 #ifdef PIOS_INCLUDE_HMC5X83
PIOS_SPI_SetPrescalar(pios_spi_mag_flash_id, SPI_BaudRatePrescaler_16); PIOS_SPI_SetClockSpeed(pios_spi_mag_flash_id, SPI_BaudRatePrescaler_16);
PIOS_HMC5x83_Init(&pios_mag_cfg, pios_spi_mag_flash_id, 0); PIOS_HMC5x83_Init(&pios_mag_cfg, pios_spi_mag_flash_id, 0);
#endif #endif