From 7e55d6ff41e4a6f80e793dc27363d23dc52cff42 Mon Sep 17 00:00:00 2001 From: Alessio Morale Date: Sun, 7 Sep 2014 22:30:51 +0200 Subject: [PATCH] OP-1477 - add support for SPI/MAG --- flight/targets/boards/gpsplatinum/firmware/pios_board.c | 4 ++-- flight/targets/boards/gpsplatinum/pios_board.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/flight/targets/boards/gpsplatinum/firmware/pios_board.c b/flight/targets/boards/gpsplatinum/firmware/pios_board.c index 5c87ad5b0..12ef3ede2 100644 --- a/flight/targets/boards/gpsplatinum/firmware/pios_board.c +++ b/flight/targets/boards/gpsplatinum/firmware/pios_board.c @@ -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 diff --git a/flight/targets/boards/gpsplatinum/pios_board.h b/flight/targets/boards/gpsplatinum/pios_board.h index 289dfb5db..d5615aecd 100644 --- a/flight/targets/boards/gpsplatinum/pios_board.h +++ b/flight/targets/boards/gpsplatinum/pios_board.h @@ -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 */ // -------------------------