aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-13 16:34:30 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2018-03-13 16:34:30 +0000
commit4d0f9d869a1005aeb23f41849b7f5fc5db384a03 (patch)
tree34e8d89beb5825b816e51300a4e85dadb53eb2c4 /testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
parentc706f5f20deabd680106ecaaf8047a03cf1d02ef (diff)
downloadChibiOS-4d0f9d869a1005aeb23f41849b7f5fc5db384a03.tar.gz
ChibiOS-4d0f9d869a1005aeb23f41849b7f5fc5db384a03.tar.bz2
ChibiOS-4d0f9d869a1005aeb23f41849b7f5fc5db384a03.zip
Improved multidemo
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11730 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c')
-rw-r--r--testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c80
1 files changed, 0 insertions, 80 deletions
diff --git a/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c b/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
deleted file mode 100644
index 76d1f193c..000000000
--- a/testhal/STM32/multi/UART/cfg-stm32f407_discovery/portab.c
+++ /dev/null
@@ -1,80 +0,0 @@
-/*
- 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. */
-/*===========================================================================*/
-
-void txend1(UARTDriver *uartp);
-void txend2(UARTDriver *uartp);
-void rxend(UARTDriver *uartp);
-void rxchar(UARTDriver *uartp, uint16_t c);
-void rxerr(UARTDriver *uartp, uartflags_t e);
-
-/*
- * UART driver configuration structure.
- */
-UARTConfig uart_cfg_1 = {
- NULL,
- NULL,
- NULL,
- NULL,
- NULL,
- 38400,
- 0,
- USART_CR2_LINEN,
- 0
-};
-
-/*===========================================================================*/
-/* Module local types. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module local variables. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module local functions. */
-/*===========================================================================*/
-
-/*===========================================================================*/
-/* Module exported functions. */
-/*===========================================================================*/
-
-void portab_setup(void) {
-
- palSetPadMode(GPIOA, 2, PAL_MODE_ALTERNATE(7));
- palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(7));
-}
-
-/** @} */