From 5afc304e5afac82f2bce2837804019a21c259761 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sun, 20 Oct 2013 10:49:37 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6369 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/OLIMEX_STM32_H407/board.c | 36 ++++++++++++++++++++---------------- 1 file changed, 20 insertions(+), 16 deletions(-) (limited to 'boards/OLIMEX_STM32_H407/board.c') diff --git a/boards/OLIMEX_STM32_H407/board.c b/boards/OLIMEX_STM32_H407/board.c index a4152433a..fc9d1aab9 100644 --- a/boards/OLIMEX_STM32_H407/board.c +++ b/boards/OLIMEX_STM32_H407/board.c @@ -1,17 +1,21 @@ /* - ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio + ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010, + 2011,2012,2013 Giovanni Di Sirio. - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at + This file is part of ChibiOS/RT. - http://www.apache.org/licenses/LICENSE-2.0 + ChibiOS/RT is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. + ChibiOS/RT is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see . */ #include "ch.h" @@ -61,10 +65,10 @@ void __early_init(void) { * @brief SDC card detection. */ bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) { - static bool_t last_status = FALSE; - - if (blkIsTransferring(sdcp)) - return last_status; + static bool_t last_status = FALSE; + + if (blkIsTransferring(sdcp)) + return last_status; return last_status = (bool_t)palReadPad(GPIOC, GPIOC_SD_D3); } @@ -72,8 +76,8 @@ bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) { * @brief SDC card write protection detection. */ bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) { - - (void)sdcp; + + (void)sdcp; return FALSE; } #endif /* HAL_USE_SDC */ -- cgit v1.2.3