annotate Discovery/Inc/ostc_hw2.h @ 937:d461d9e89e3c Evo_2_23

Compile switch for RTE sleep debug: there was already a compiler switch for enabling debugging while RTE is in sleep but the switches were distributed across the code => to make selection easier they are now part of the configuration.h
author Ideenmodellierer
date Tue, 10 Dec 2024 20:59:37 +0100
parents 5e027b0f7475
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
1 ///////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
2 /// -*- coding: UTF-8 -*-
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
3 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
4 /// \file Discovery/Inc/ostc_hw2.h
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
5 /// \brief
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
6 /// \author Heinrichs Weikamp
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
7 /// \date 2018
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
8 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
9 /// $Id$
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
10 ///////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
11 /// \par Copyright (c) 2014-2018 Heinrichs Weikamp gmbh
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
12 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
13 /// This program is free software: you can redistribute it and/or modify
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
14 /// it under the terms of the GNU General Public License as published by
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
15 /// the Free Software Foundation, either version 3 of the License, or
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
16 /// (at your option) any later version.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
17 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
18 /// This program is distributed in the hope that it will be useful,
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
19 /// but WITHOUT ANY WARRANTY; without even the implied warranty of
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
20 /// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
21 /// GNU General Public License for more details.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
22 ///
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
23 /// You should have received a copy of the GNU General Public License
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
24 /// along with this program. If not, see <http://www.gnu.org/licenses/>.
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
25 //////////////////////////////////////////////////////////////////////////////
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
26
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
27 /* Define to prevent recursive inclusion -------------------------------------*/
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
28 #ifndef OSTC_HW2_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
29 #define OSTC_HW2_H
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
30
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
31 #include "stm32f429xx.h"
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
32
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
33 /*
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
34 #define DISPLAY_BACKLIGHT_PIN GPIO_PIN_7
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
35 #define DISPLAY_BACKLIGHT_GPIO_PORT GPIOC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
36 #define DISPLAY_BACKLIGHT_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
37 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
38 #define SMALL_BOARD_PCB9_AND_LATER
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
39 #define TESTPIN
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
40
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
41 #define DISPLAY_RESETB_PIN GPIO_PIN_13
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
42 #define DISPLAY_RESETB_GPIO_PORT GPIOC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
43 #define DISPLAY_RESETB_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
44
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
45 #define DISPLAY_CSB_PIN GPIO_PIN_8
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
46 #define DISPLAY_CSB_GPIO_PORT GPIOI
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
47 #define DISPLAY_CSB_GPIO_ENABLE() __GPIOI_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
48
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
49 #define VSYNC_IRQ_PIN GPIO_PIN_3
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
50 #define VSYNC_IRQ_GPIO_PORT GPIOE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
51 #define VSYNC_IRQ_GPIO_ENABLE() __GPIOE_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
52 #define VSYNC_IRQ_EXTI_IRQn EXTI3_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
53
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
54 #ifdef SMALL_BOARD_PCB9_AND_LATER
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
55 #define BUTTON_BACK_PIN GPIO_PIN_0
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
56 #define BUTTON_BACK_EXTI_IRQn EXTI0_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
57 #define BUTTON_BACK_GPIO_PORT GPIOB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
58 #define BUTTON_BACK_GPIO_ENABLE() __GPIOB_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
59
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
60 #define BUTTON_ENTER_PIN GPIO_PIN_1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
61 #define BUTTON_ENTER_EXTI_IRQn EXTI1_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
62 #define BUTTON_ENTER_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
63 #define BUTTON_ENTER_GPIO_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
64
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
65 #define BUTTON_NEXT_PIN GPIO_PIN_2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
66 #define BUTTON_NEXT_EXTI_IRQn EXTI2_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
67 #define BUTTON_NEXT_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
68 #define BUTTON_NEXT_GPIO_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
69 #else
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
70 #define BUTTON_BACK_PIN GPIO_PIN_0
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
71 #define BUTTON_BACK_EXTI_IRQn EXTI0_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
72 #define BUTTON_BACK_GPIO_PORT GPIOB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
73 #define BUTTON_BACK_GPIO_ENABLE() __GPIOB_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
74
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
75 #define BUTTON_ENTER_PIN GPIO_PIN_4
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
76 #define BUTTON_ENTER_EXTI_IRQn EXTI4_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
77 #define BUTTON_ENTER_GPIO_PORT GPIOH
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
78 #define BUTTON_ENTER_GPIO_ENABLE() __GPIOH_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
79
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
80 #define BUTTON_NEXT_PIN GPIO_PIN_2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
81 #define BUTTON_NEXT_EXTI_IRQn EXTI2_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
82 #define BUTTON_NEXT_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
83 #define BUTTON_NEXT_GPIO_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
84
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
85 #define BUTTON_CUSTOM_PIN GPIO_PIN_1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
86 #define BUTTON_CUSTOM_EXTI_IRQn EXTI1_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
87 #define BUTTON_CUSTOM_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
88 #define BUTTON_CUSTOM_GPIO_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
89 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
90
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
91
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
92 #ifdef TESTPIN
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
93 #define TEST_PIN GPIO_PIN_4
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
94 #define TEST_GPIO_PORT GPIOH
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
95 #define TEST_GPIO_ENABLE() __GPIOH_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
96 #endif
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
97
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
98
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
99 #define EXTFLASH_CSB_PIN GPIO_PIN_6
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
100 #define EXTFLASH_CSB_GPIO_PORT GPIOF
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
101 #define EXTFLASH_CSB_GPIO_ENABLE() __GPIOF_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
102
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
103 #define OSCILLOSCOPE_PIN GPIO_PIN_3
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
104 #define OSCILLOSCOPE_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
105 #define OSCILLOSCOPE_GPIO_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
106
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
107 #define OSCILLOSCOPE2_PIN GPIO_PIN_11
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
108 #define OSCILLOSCOPE2_GPIO_PORT GPIOB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
109 #define OSCILLOSCOPE2_GPIO_ENABLE() __GPIOB_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
110
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
111 /* Bluetooth */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
112 #define BLE_NENABLE_PIN GPIO_PIN_7
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
113 #define BLE_NENABLE_GPIO_PORT GPIOB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
114 #define BLE_NENABLE_GPIO_ENABLE() __GPIOB_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
115 /*
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
116 #define BLE_NENABLE_PIN GPIO_PIN_11
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
117 #define BLE_NENABLE_GPIO_PORT GPIOD
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
118 #define BLE_NENABLE_GPIO_ENABLE() __GPIOD_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
119 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
120 #define USARTx USART1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
121 #define USARTx_CLK_ENABLE() __USART1_CLK_ENABLE();
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
122 #define USARTx_FORCE_RESET() __USART1_FORCE_RESET()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
123 #define USARTx_RELEASE_RESET() __USART1_RELEASE_RESET()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
124
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
125 #define USARTx_TX_AF GPIO_AF7_USART1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
126 #define USARTx_TX_PIN GPIO_PIN_9
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
127 #define USARTx_TX_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
128 #define USARTx_TX_GPIO_CLK_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
129
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
130 #define USARTx_RX_AF GPIO_AF7_USART1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
131 #define USARTx_RX_PIN GPIO_PIN_10
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
132 #define USARTx_RX_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
133 #define USARTx_RX_GPIO_CLK_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
134
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
135 #define USARTx_CTS_AF GPIO_AF7_USART1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
136 #define USARTx_CTS_PIN GPIO_PIN_11
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
137 #define USARTx_CTS_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
138 #define USARTx_CTS_GPIO_CLK_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
139
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
140 #define USARTx_RTS_AF GPIO_AF7_USART1
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
141 #define USARTx_RTS_PIN GPIO_PIN_12
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
142 #define USARTx_RTS_GPIO_PORT GPIOA
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
143 #define USARTx_RTS_GPIO_CLK_ENABLE() __GPIOA_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
144
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
145 #define USARTx_IRQn USART1_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
146 // to it directly#define USARTx_IRQHandler USART1_IRQHandler
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
147
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
148 /*
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
149 #define IR_HUD_ENABLE_PIN GPIO_PIN_7
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
150 #define IR_HUD_ENABLE_GPIO_PORT GPIOD
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
151 #define IR_HUD_ENABLE_GPIO_ENABLE() __GPIOD_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
152 */
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
153
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
154 #define USART_IR_HUD USART2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
155 #define USART_IR_HUD_CLK_ENABLE() __USART2_CLK_ENABLE();
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
156 #define USART_IR_HUD_FORCE_RESET() __USART2_FORCE_RESET()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
157 #define USART_IR_HUD_RELEASE_RESET() __USART2_RELEASE_RESET()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
158 #define USART_IR_HUD_TX_AF GPIO_AF7_USART2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
159 #define USART_IR_HUD_TX_PIN GPIO_PIN_5
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
160 #define USART_IR_HUD_TX_GPIO_PORT GPIOD
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
161 #define USART_IR_HUD_TX_GPIO_CLK_ENABLE() __GPIOD_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
162
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
163 #define USART_IR_HUD_RX_AF GPIO_AF7_USART2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
164 #define USART_IR_HUD_RX_PIN GPIO_PIN_6
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
165 #define USART_IR_HUD_RX_GPIO_PORT GPIOD
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
166 #define USART_IR_HUD_RX_GPIO_CLK_ENABLE() __GPIOD_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
167 #define USART_IR_HUD_IRQn USART2_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
168 // to it directly#define USART_IR_HUD_IRQHandler USART2_IRQHandler
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
169
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
170 #define TIMx TIM4
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
171 #define TIMx_CLK_ENABLE __TIM4_CLK_ENABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
172 #define TIMx_IRQn TIM4_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
173 // to it directly #define TIMx_IRQHandler TIM4_IRQHandler
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
174
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
175 #define TIM_BACKLIGHT TIM3
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
176 #define TIM_BACKLIGHT_CLK_ENABLE __TIM3_CLK_ENABLE
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
177 #define TIM_BACKLIGHT_IRQn TIM3_IRQn
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
178 #define TIM_BACKLIGHT_IRQHandler TIM3_IRQHandler
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
179 #define TIM_BACKLIGHT_CHANNEL TIM_CHANNEL_2
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
180 #define TIM_BACKLIGHT_PIN GPIO_PIN_7
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
181 #define TIM_BACKLIGHT_GPIO_PORT GPIOC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
182 #define TIM_BACKLIGHT_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
183
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
184 #define SMALLCPU_CSB_PIN GPIO_PIN_5
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
185 #define SMALLCPU_CSB_GPIO_PORT GPIOC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
186 #define SMALLCPU_CSB_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
187
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
188 #define SMALLCPU_BOOT0_PIN GPIO_PIN_9
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
189 #define SMALLCPU_BOOT0_GPIO_PORT GPIOC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
190 #define SMALLCPU_BOOT0_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
191
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
192 #define SMALLCPU_NRESET_PIN GPIO_PIN_8
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
193 #define SMALLCPU_NRESET_GPIO_PORT GPIOC
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
194 #define SMALLCPU_NRESET_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
195
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
196 #define RESET_LOGIC_ALLES_OK_PIN GPIO_PIN_15
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
197 #define RESET_LOGIC_ALLES_OK_GPIO_PORT GPIOB
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
198 #define RESET_LOGIC_ALLES_OK_GPIO_ENABLE() __GPIOB_CLK_ENABLE()
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
199
872
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
200 /* new OSTC5 */
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
201 #define BLE_UBLOX_DSR_PIN GPIO_PIN_12
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
202 #define BLE_UBLOX_DSR_GPIO_PORT GPIOC
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
203 #define BLE_UBLOX_DSR_GPIO_ENABLE() __GPIOC_CLK_ENABLE()
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
204
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
205
5e027b0f7475 Added first time initialization for new bluetooth module:
Ideenmodellierer
parents: 38
diff changeset
206
38
5f11787b4f42 include in ostc4 repository
heinrichsweikamp
parents:
diff changeset
207 #endif // OSTC_HW2_H