From 0e6294ca27e213c151ea597404d20656a6bb1db0 Mon Sep 17 00:00:00 2001 From: stac Date: Sun, 4 Jul 2010 02:21:26 +0000 Subject: [PATCH] spi: remove internal pull-up from input data lines The input data lines between the OP and AHRS boards had internal pull-ups enabled. This seemed to be causing issues early on during development of the inter-board comms. Not sure if this is still necessary but this is how the current code was tested. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@1006 ebee16cc-31ac-478f-84a7-5cbb03baadba --- flight/AHRS/pios_board.c | 2 +- flight/OpenPilot/System/pios_board.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flight/AHRS/pios_board.c b/flight/AHRS/pios_board.c index 39b28cea2..db75a1c7a 100644 --- a/flight/AHRS/pios_board.c +++ b/flight/AHRS/pios_board.c @@ -121,7 +121,7 @@ static const struct pios_spi_cfg pios_spi_op_cfg = { .init = { .GPIO_Pin = GPIO_Pin_15, .GPIO_Speed = GPIO_Speed_50MHz, - .GPIO_Mode = GPIO_Mode_IPU, + .GPIO_Mode = GPIO_Mode_IN_FLOATING, }, }, }; diff --git a/flight/OpenPilot/System/pios_board.c b/flight/OpenPilot/System/pios_board.c index 129247d16..c999250e8 100644 --- a/flight/OpenPilot/System/pios_board.c +++ b/flight/OpenPilot/System/pios_board.c @@ -211,7 +211,7 @@ const struct pios_spi_cfg pios_spi_ahrs_cfg = { .init = { .GPIO_Pin = GPIO_Pin_14, .GPIO_Speed = GPIO_Speed_50MHz, - .GPIO_Mode = GPIO_Mode_IPU, + .GPIO_Mode = GPIO_Mode_IN_FLOATING, }, }, .mosi = {