diff options
author | gdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01> | 2018-11-25 16:02:00 +0000 |
---|---|---|
committer | gdisirio <gdisirio@110e8d01-0319-4d1e-a829-52ad28d1bb01> | 2018-11-25 16:02:00 +0000 |
commit | c0eefeeb5c531642953fc8a1126fee276ccc5133 (patch) | |
tree | d8c5b5402cec5e0e15fe2ed9fe7da77ec2df97d0 /testhal/STM32/multi/RTC/cfg/stm32f407_discovery/portab.c | |
parent | c8700fc5eeeeb71fce78f169b49ffd62c4748414 (diff) | |
download | ChibiOS-c0eefeeb5c531642953fc8a1126fee276ccc5133.tar.gz ChibiOS-c0eefeeb5c531642953fc8a1126fee276ccc5133.tar.bz2 ChibiOS-c0eefeeb5c531642953fc8a1126fee276ccc5133.zip |
RTC update for F4.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@12442 110e8d01-0319-4d1e-a829-52ad28d1bb01
Diffstat (limited to 'testhal/STM32/multi/RTC/cfg/stm32f407_discovery/portab.c')
-rw-r--r-- | testhal/STM32/multi/RTC/cfg/stm32f407_discovery/portab.c | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/portab.c b/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/portab.c new file mode 100644 index 000000000..683d68881 --- /dev/null +++ b/testhal/STM32/multi/RTC/cfg/stm32f407_discovery/portab.c @@ -0,0 +1,59 @@ +/*
+ 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) {
+
+ palSetPadMode(GPIOA, 2, PAL_MODE_ALTERNATE(7));
+ palSetPadMode(GPIOA, 3, PAL_MODE_ALTERNATE(7));
+}
+
+/** @} */
|