mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
PiOS: Move driver out of common directory since it makes calls to configure the
EXTI system.
This commit is contained in:
parent
d78450eae8
commit
8be9ac9cc9
@ -88,7 +88,7 @@ SRC += $(BOOT)/ahrs_spi_program_slave.c
|
||||
SRC += $(BOOT)/ahrs_slave_test.c
|
||||
SRC += $(BOOT)/ahrs_spi_program.c
|
||||
|
||||
## PIOS Hardware (STM32F10x)
|
||||
## PIOS Hardware (STM32F2xx)
|
||||
SRC += $(PIOSSTM32FXX)/pios_sys.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_led.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_delay.c
|
||||
@ -98,13 +98,13 @@ SRC += $(PIOSSTM32FXX)/pios_i2c.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_debug.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_gpio.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_spi.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_exti.c
|
||||
#SRC += $(PIOSSTM32FXX)/pios_exti.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_iap.c
|
||||
SRC += $(PIOSSTM32FXX)/pios_bma180.c
|
||||
|
||||
## PIOS Hardware (Common)
|
||||
SRC += $(PIOSCOMMON)/pios_com.c
|
||||
SRC += $(PIOSCOMMON)/printf-stdarg.c
|
||||
SRC += $(PIOSCOMMON)/pios_iap.c
|
||||
SRC += $(PIOSCOMMON)/pios_bma180.c
|
||||
SRC += $(PIOSCOMMON)/pios_hmc5883.c
|
||||
SRC += $(PIOSCOMMON)/pios_bmp085.c
|
||||
SRC += $(PIOSCOMMON)/pios_imu3000.c
|
||||
|
@ -7,8 +7,7 @@
|
||||
* @{
|
||||
*
|
||||
* @file pios_bma180.h
|
||||
* @author David "Buzz" Carlson (buzz@chebuzz.com)
|
||||
* The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
|
||||
* @author The OpenPilot Team, http://www.openpilot.org Copyright (C) 2011.
|
||||
* @brief PiOS BMA180 digital accelerometer driver.
|
||||
* - Driver for the BMA180 digital accelerometer on the SPI bus.
|
||||
* @see The GNU Public License (GPL) Version 3
|
||||
@ -62,7 +61,9 @@ void PIOS_BMA180_Init()
|
||||
|
||||
/* Configure EOC pin as input floating */
|
||||
GPIO_InitStructure.GPIO_Pin = PIOS_BMA180_DRDY_GPIO_PIN;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;
|
||||
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN;
|
||||
GPIO_InitStructure.GPIO_OType = GPIO_OType_OD;
|
||||
GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;
|
||||
GPIO_Init(PIOS_BMA180_DRDY_GPIO_PORT, &GPIO_InitStructure);
|
||||
|
||||
/* Configure the End Of Conversion (EOC) interrupt */
|
Loading…
x
Reference in New Issue
Block a user