1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-02-20 10:54:14 +01:00

Fix linker script and get rid of dead code

This commit is contained in:
James Cotton 2011-08-12 03:44:55 -05:00
parent f247112090
commit b3b4fcd007
2 changed files with 1 additions and 5 deletions

View File

@ -186,7 +186,7 @@ EXTRA_LIBDIRS =
EXTRA_LIBS =
# Path to Linker-Scripts
LINKERSCRIPTPATH = $(PIOSSTM32F10X)
LINKERSCRIPTPATH = $(PIOSSTM32F2XX)
# Optimization level, can be [0, 1, 2, 3, s].
# 0 = turn off optimization. s = optimize for size.

View File

@ -58,10 +58,6 @@ static bool PIOS_HMC5883_Write(uint8_t address, uint8_t buffer);
*/
void PIOS_HMC5883_Init(const struct pios_hmc5883_cfg * cfg)
{
/* Enable DRDY GPIO clock */
// Started by pios_sys.c
// RCC_APB2PeriphClockCmd(PIOS_HMC5883_DRDY_CLK | RCC_APB2Periph_AFIO, ENABLE);
/* Configure EOC pin as input floating */
GPIO_Init(cfg->drdy.gpio, &cfg->drdy.init);