mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-19 04:52:12 +01:00
OP-1477 - add support for SPI/MAG
This commit is contained in:
parent
b4f9c7c2b1
commit
7e55d6ff41
@ -44,7 +44,7 @@
|
||||
#include "../board_hw_defs.c"
|
||||
|
||||
#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;
|
||||
|
||||
@ -75,7 +75,7 @@ void PIOS_Board_Init(void)
|
||||
}
|
||||
|
||||
#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);
|
||||
#endif
|
||||
|
||||
|
@ -118,12 +118,12 @@ extern uint32_t pios_i2c_gps_adapter_id;
|
||||
//
|
||||
// See also pios_board.c
|
||||
// -------------------------
|
||||
#define PIOS_COM_MAX_DEVS 1
|
||||
#define PIOS_COM_MAX_DEVS 1
|
||||
extern uint32_t pios_com_main_id;
|
||||
#define PIOS_COM_TELEM_USB pios_com_main_id
|
||||
#if defined(PIOS_INCLUDE_DEBUG_CONSOLE)
|
||||
|
||||
#define PIOS_COM_DEBUG (pios_com_main_id)
|
||||
#define PIOS_COM_DEBUG (pios_com_main_id)
|
||||
#endif /* PIOS_INCLUDE_DEBUG_CONSOLE */
|
||||
|
||||
// -------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user