From b3fe2fa43b91e429c8a600e5a3e6d2ec7d9bb4b1 Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sun, 21 Oct 2018 18:48:24 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12385 110e8d01-0319-4d1e-a829-52ad28d1bb01 --- .../cfg/stm32f746_discovery/portab.c | 60 ++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/portab.c (limited to 'demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/portab.c') diff --git a/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/portab.c b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/portab.c new file mode 100644 index 000000000..5eb3b33f3 --- /dev/null +++ b/demos/STM32/RT-STM32-LWIP-FATFS-USB/cfg/stm32f746_discovery/portab.c @@ -0,0 +1,60 @@ +/* + ChibiOS - Copyright (C) 2006..2018 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 + + http://www.apache.org/licenses/LICENSE-2.0 + + 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. +*/ + +/** + * @file portab.c + * @brief Application portability module code. + * + * @addtogroup application_portability + * @{ + */ + +#include "hal.h" +#include "portab.h" + +/*===========================================================================*/ +/* Module local definitions. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Module exported variables. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Module local types. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Module local variables. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Module local functions. */ +/*===========================================================================*/ + +/*===========================================================================*/ +/* Module exported functions. */ +/*===========================================================================*/ + +void portab_setup(void) { + + /* + * Initialize board LED. + */ + palSetLineMode(LINE_ARD_D13, PAL_MODE_OUTPUT_PUSHPULL); +} + +/** @} */ -- cgit v1.2.3