blob: a7bd379736893157eb7bef6cfaf40531b8a6428c [file] [log] [blame]
Kévin Redon69b92d92019-01-24 16:39:20 +01001/* Auto-generated config file hpl_port_config.h */
2#ifndef HPL_PORT_CONFIG_H
3#define HPL_PORT_CONFIG_H
4
5// <<< Use Configuration Wizard in Context Menu >>>
6
7// <e> PORT Input Event 0 configuration
8// <id> enable_port_input_event_0
9#ifndef CONF_PORT_EVCTRL_PORT_0
10#define CONF_PORT_EVCTRL_PORT_0 0
11#endif
12
13// <h> PORT Input Event 0 configuration on PORT A
14
15// <q> PORTA Input Event 0 Enable
16// <i> The event action will be triggered on any incoming event if PORT A Input Event 0 configuration is enabled
17// <id> porta_input_event_enable_0
18#ifndef CONF_PORTA_EVCTRL_PORTEI_0
19#define CONF_PORTA_EVCTRL_PORTEI_0 0x0
20#endif
21
22// <o> PORTA Event 0 Pin Identifier <0x00-0x1F>
23// <i> These bits define the I/O pin from port A on which the event action will be performed
24// <id> porta_event_pin_identifier_0
25#ifndef CONF_PORTA_EVCTRL_PID_0
26#define CONF_PORTA_EVCTRL_PID_0 0x0
27#endif
28
29// <o> PORTA Event 0 Action
30// <0=> Output register of pin will be set to level of event
31// <1=> Set output register of pin on event
32// <2=> Clear output register of pin on event
33// <3=> Toggle output register of pin on event
34// <i> These bits define the event action the PORT A will perform on event input 0
35// <id> porta_event_action_0
36#ifndef CONF_PORTA_EVCTRL_EVACT_0
37#define CONF_PORTA_EVCTRL_EVACT_0 0
38#endif
39
40// </h>
41// <h> PORT Input Event 0 configuration on PORT B
42
43// <q> PORTB Input Event 0 Enable
44// <i> The event action will be triggered on any incoming event if PORT B Input Event 0 configuration is enabled
45// <id> portb_input_event_enable_0
46#ifndef CONF_PORTB_EVCTRL_PORTEI_0
47#define CONF_PORTB_EVCTRL_PORTEI_0 0x0
48#endif
49
50// <o> PORTB Event 0 Pin Identifier <0x00-0x1F>
51// <i> These bits define the I/O pin from port B on which the event action will be performed
52// <id> portb_event_pin_identifier_0
53#ifndef CONF_PORTB_EVCTRL_PID_0
54#define CONF_PORTB_EVCTRL_PID_0 0x0
55#endif
56
57// <o> PORTB Event 0 Action
58// <0=> Output register of pin will be set to level of event
59// <1=> Set output register of pin on event
60// <2=> Clear output register of pin on event
61// <3=> Toggle output register of pin on event
62// <i> These bits define the event action the PORT B will perform on event input 0
63// <id> portb_event_action_0
64#ifndef CONF_PORTB_EVCTRL_EVACT_0
65#define CONF_PORTB_EVCTRL_EVACT_0 0
66#endif
67
68// </h>
69// <h> PORT Input Event 0 configuration on PORT C
70
71// <q> PORTC Input Event 0 Enable
72// <i> The event action will be triggered on any incoming event if PORT C Input Event 0 configuration is enabled
73// <id> portc_input_event_enable_0
74#ifndef CONF_PORTC_EVCTRL_PORTEI_0
75#define CONF_PORTC_EVCTRL_PORTEI_0 0x0
76#endif
77
78// <o> PORTC Event 0 Pin Identifier <0x00-0x1F>
79// <i> These bits define the I/O pin from port C on which the event action will be performed
80// <id> portc_event_pin_identifier_0
81#ifndef CONF_PORTC_EVCTRL_PID_0
82#define CONF_PORTC_EVCTRL_PID_0 0x0
83#endif
84
85// <o> PORTC Event 0 Action
86// <0=> Output register of pin will be set to level of event
87// <1=> Set output register of pin on event
88// <2=> Clear output register of pin on event
89// <3=> Toggle output register of pin on event
90// <i> These bits define the event action the PORT C will perform on event input 0
91// <id> portc_event_action_0
92#ifndef CONF_PORTC_EVCTRL_EVACT_0
93#define CONF_PORTC_EVCTRL_EVACT_0 0
94#endif
95
96// </h>
Kévin Redon69b92d92019-01-24 16:39:20 +010097
98// </e>
99
100// <e> PORT Input Event 1 configuration
101// <id> enable_port_input_event_1
102#ifndef CONF_PORT_EVCTRL_PORT_1
103#define CONF_PORT_EVCTRL_PORT_1 0
104#endif
105
106// <h> PORT Input Event 1 configuration on PORT A
107
108// <q> PORTA Input Event 1 Enable
109// <i> The event action will be triggered on any incoming event if PORT A Input Event 1 configuration is enabled
110// <id> porta_input_event_enable_1
111#ifndef CONF_PORTA_EVCTRL_PORTEI_1
112#define CONF_PORTA_EVCTRL_PORTEI_1 0x0
113#endif
114
115// <o> PORTA Event 1 Pin Identifier <0x00-0x1F>
116// <i> These bits define the I/O pin from port A on which the event action will be performed
117// <id> porta_event_pin_identifier_1
118#ifndef CONF_PORTA_EVCTRL_PID_1
119#define CONF_PORTA_EVCTRL_PID_1 0x0
120#endif
121
122// <o> PORTA Event 1 Action
123// <0=> Output register of pin will be set to level of event
124// <1=> Set output register of pin on event
125// <2=> Clear output register of pin on event
126// <3=> Toggle output register of pin on event
127// <i> These bits define the event action the PORT A will perform on event input 1
128// <id> porta_event_action_1
129#ifndef CONF_PORTA_EVCTRL_EVACT_1
130#define CONF_PORTA_EVCTRL_EVACT_1 0
131#endif
132
133// </h>
134// <h> PORT Input Event 1 configuration on PORT B
135
136// <q> PORTB Input Event 1 Enable
137// <i> The event action will be triggered on any incoming event if PORT B Input Event 1 configuration is enabled
138// <id> portb_input_event_enable_1
139#ifndef CONF_PORTB_EVCTRL_PORTEI_1
140#define CONF_PORTB_EVCTRL_PORTEI_1 0x0
141#endif
142
143// <o> PORTB Event 1 Pin Identifier <0x00-0x1F>
144// <i> These bits define the I/O pin from port B on which the event action will be performed
145// <id> portb_event_pin_identifier_1
146#ifndef CONF_PORTB_EVCTRL_PID_1
147#define CONF_PORTB_EVCTRL_PID_1 0x0
148#endif
149
150// <o> PORTB Event 1 Action
151// <0=> Output register of pin will be set to level of event
152// <1=> Set output register of pin on event
153// <2=> Clear output register of pin on event
154// <3=> Toggle output register of pin on event
155// <i> These bits define the event action the PORT B will perform on event input 1
156// <id> portb_event_action_1
157#ifndef CONF_PORTB_EVCTRL_EVACT_1
158#define CONF_PORTB_EVCTRL_EVACT_1 0
159#endif
160
161// </h>
162// <h> PORT Input Event 1 configuration on PORT C
163
164// <q> PORTC Input Event 1 Enable
165// <i> The event action will be triggered on any incoming event if PORT C Input Event 1 configuration is enabled
166// <id> portc_input_event_enable_1
167#ifndef CONF_PORTC_EVCTRL_PORTEI_1
168#define CONF_PORTC_EVCTRL_PORTEI_1 0x0
169#endif
170
171// <o> PORTC Event 1 Pin Identifier <0x00-0x1F>
172// <i> These bits define the I/O pin from port C on which the event action will be performed
173// <id> portc_event_pin_identifier_1
174#ifndef CONF_PORTC_EVCTRL_PID_1
175#define CONF_PORTC_EVCTRL_PID_1 0x0
176#endif
177
178// <o> PORTC Event 1 Action
179// <0=> Output register of pin will be set to level of event
180// <1=> Set output register of pin on event
181// <2=> Clear output register of pin on event
182// <3=> Toggle output register of pin on event
183// <i> These bits define the event action the PORT C will perform on event input 1
184// <id> portc_event_action_1
185#ifndef CONF_PORTC_EVCTRL_EVACT_1
186#define CONF_PORTC_EVCTRL_EVACT_1 0
187#endif
188
189// </h>
Kévin Redon69b92d92019-01-24 16:39:20 +0100190
191// </e>
192
193// <e> PORT Input Event 2 configuration
194// <id> enable_port_input_event_2
195#ifndef CONF_PORT_EVCTRL_PORT_2
196#define CONF_PORT_EVCTRL_PORT_2 0
197#endif
198
199// <h> PORT Input Event 2 configuration on PORT A
200
201// <q> PORTA Input Event 2 Enable
202// <i> The event action will be triggered on any incoming event if PORT A Input Event 2 configuration is enabled
203// <id> porta_input_event_enable_2
204#ifndef CONF_PORTA_EVCTRL_PORTEI_2
205#define CONF_PORTA_EVCTRL_PORTEI_2 0x0
206#endif
207
208// <o> PORTA Event 2 Pin Identifier <0x00-0x1F>
209// <i> These bits define the I/O pin from port A on which the event action will be performed
210// <id> porta_event_pin_identifier_2
211#ifndef CONF_PORTA_EVCTRL_PID_2
212#define CONF_PORTA_EVCTRL_PID_2 0x0
213#endif
214
215// <o> PORTA Event 2 Action
216// <0=> Output register of pin will be set to level of event
217// <1=> Set output register of pin on event
218// <2=> Clear output register of pin on event
219// <3=> Toggle output register of pin on event
220// <i> These bits define the event action the PORT A will perform on event input 2
221// <id> porta_event_action_2
222#ifndef CONF_PORTA_EVCTRL_EVACT_2
223#define CONF_PORTA_EVCTRL_EVACT_2 0
224#endif
225
226// </h>
227// <h> PORT Input Event 2 configuration on PORT B
228
229// <q> PORTB Input Event 2 Enable
230// <i> The event action will be triggered on any incoming event if PORT B Input Event 2 configuration is enabled
231// <id> portb_input_event_enable_2
232#ifndef CONF_PORTB_EVCTRL_PORTEI_2
233#define CONF_PORTB_EVCTRL_PORTEI_2 0x0
234#endif
235
236// <o> PORTB Event 2 Pin Identifier <0x00-0x1F>
237// <i> These bits define the I/O pin from port B on which the event action will be performed
238// <id> portb_event_pin_identifier_2
239#ifndef CONF_PORTB_EVCTRL_PID_2
240#define CONF_PORTB_EVCTRL_PID_2 0x0
241#endif
242
243// <o> PORTB Event 2 Action
244// <0=> Output register of pin will be set to level of event
245// <1=> Set output register of pin on event
246// <2=> Clear output register of pin on event
247// <3=> Toggle output register of pin on event
248// <i> These bits define the event action the PORT B will perform on event input 2
249// <id> portb_event_action_2
250#ifndef CONF_PORTB_EVCTRL_EVACT_2
251#define CONF_PORTB_EVCTRL_EVACT_2 0
252#endif
253
254// </h>
255// <h> PORT Input Event 2 configuration on PORT C
256
257// <q> PORTC Input Event 2 Enable
258// <i> The event action will be triggered on any incoming event if PORT C Input Event 2 configuration is enabled
259// <id> portc_input_event_enable_2
260#ifndef CONF_PORTC_EVCTRL_PORTEI_2
261#define CONF_PORTC_EVCTRL_PORTEI_2 0x0
262#endif
263
264// <o> PORTC Event 2 Pin Identifier <0x00-0x1F>
265// <i> These bits define the I/O pin from port C on which the event action will be performed
266// <id> portc_event_pin_identifier_2
267#ifndef CONF_PORTC_EVCTRL_PID_2
268#define CONF_PORTC_EVCTRL_PID_2 0x0
269#endif
270
271// <o> PORTC Event 2 Action
272// <0=> Output register of pin will be set to level of event
273// <1=> Set output register of pin on event
274// <2=> Clear output register of pin on event
275// <3=> Toggle output register of pin on event
276// <i> These bits define the event action the PORT C will perform on event input 2
277// <id> portc_event_action_2
278#ifndef CONF_PORTC_EVCTRL_EVACT_2
279#define CONF_PORTC_EVCTRL_EVACT_2 0
280#endif
281
282// </h>
Kévin Redon69b92d92019-01-24 16:39:20 +0100283
284// </e>
285
286// <e> PORT Input Event 3 configuration
287// <id> enable_port_input_event_3
288#ifndef CONF_PORT_EVCTRL_PORT_3
289#define CONF_PORT_EVCTRL_PORT_3 0
290#endif
291
292// <h> PORT Input Event 3 configuration on PORT A
293
294// <q> PORTA Input Event 3 Enable
295// <i> The event action will be triggered on any incoming event if PORT A Input Event 3 configuration is enabled
296// <id> porta_input_event_enable_3
297#ifndef CONF_PORTA_EVCTRL_PORTEI_3
298#define CONF_PORTA_EVCTRL_PORTEI_3 0x0
299#endif
300
301// <o> PORTA Event 3 Pin Identifier <0x00-0x1F>
302// <i> These bits define the I/O pin from port A on which the event action will be performed
303// <id> porta_event_pin_identifier_3
304#ifndef CONF_PORTA_EVCTRL_PID_3
305#define CONF_PORTA_EVCTRL_PID_3 0x0
306#endif
307
308// <o> PORTA Event 3 Action
309// <0=> Output register of pin will be set to level of event
310// <1=> Set output register of pin on event
311// <2=> Clear output register of pin on event
312// <3=> Toggle output register of pin on event
313// <i> These bits define the event action the PORT A will perform on event input 3
314// <id> porta_event_action_3
315#ifndef CONF_PORTA_EVCTRL_EVACT_3
316#define CONF_PORTA_EVCTRL_EVACT_3 0
317#endif
318
319// </h>
320// <h> PORT Input Event 3 configuration on PORT B
321
322// <q> PORTB Input Event 3 Enable
323// <i> The event action will be triggered on any incoming event if PORT B Input Event 3 configuration is enabled
324// <id> portb_input_event_enable_3
325#ifndef CONF_PORTB_EVCTRL_PORTEI_3
326#define CONF_PORTB_EVCTRL_PORTEI_3 0x0
327#endif
328
329// <o> PORTB Event 3 Pin Identifier <0x00-0x1F>
330// <i> These bits define the I/O pin from port B on which the event action will be performed
331// <id> portb_event_pin_identifier_3
332#ifndef CONF_PORTB_EVCTRL_PID_3
333#define CONF_PORTB_EVCTRL_PID_3 0x0
334#endif
335
336// <o> PORTB Event 3 Action
337// <0=> Output register of pin will be set to level of event
338// <1=> Set output register of pin on event
339// <2=> Clear output register of pin on event
340// <3=> Toggle output register of pin on event
341// <i> These bits define the event action the PORT B will perform on event input 3
342// <id> portb_event_action_3
343#ifndef CONF_PORTB_EVCTRL_EVACT_3
344#define CONF_PORTB_EVCTRL_EVACT_3 0
345#endif
346
347// </h>
348// <h> PORT Input Event 3 configuration on PORT C
349
350// <q> PORTC Input Event 3 Enable
351// <i> The event action will be triggered on any incoming event if PORT C Input Event 3 configuration is enabled
352// <id> portc_input_event_enable_3
353#ifndef CONF_PORTC_EVCTRL_PORTEI_3
354#define CONF_PORTC_EVCTRL_PORTEI_3 0x0
355#endif
356
357// <o> PORTC Event 3 Pin Identifier <0x00-0x1F>
358// <i> These bits define the I/O pin from port C on which the event action will be performed
359// <id> portc_event_pin_identifier_3
360#ifndef CONF_PORTC_EVCTRL_PID_3
361#define CONF_PORTC_EVCTRL_PID_3 0x0
362#endif
363
364// <o> PORTC Event 3 Action
365// <0=> Output register of pin will be set to level of event
366// <1=> Set output register of pin on event
367// <2=> Clear output register of pin on event
368// <3=> Toggle output register of pin on event
369// <i> These bits define the event action the PORT C will perform on event input 3
370// <id> portc_event_action_3
371#ifndef CONF_PORTC_EVCTRL_EVACT_3
372#define CONF_PORTC_EVCTRL_EVACT_3 0
373#endif
374
375// </h>
Kévin Redon69b92d92019-01-24 16:39:20 +0100376
377// </e>
378
379#define CONF_PORTA_EVCTRL \
380 (0 | PORT_EVCTRL_EVACT0(CONF_PORTA_EVCTRL_EVACT_0) | CONF_PORTA_EVCTRL_PORTEI_0 << PORT_EVCTRL_PORTEI0_Pos \
381 | PORT_EVCTRL_PID0(CONF_PORTA_EVCTRL_PID_0) | PORT_EVCTRL_EVACT1(CONF_PORTA_EVCTRL_EVACT_1) \
382 | CONF_PORTA_EVCTRL_PORTEI_1 << PORT_EVCTRL_PORTEI1_Pos | PORT_EVCTRL_PID1(CONF_PORTA_EVCTRL_PID_1) \
383 | PORT_EVCTRL_EVACT2(CONF_PORTA_EVCTRL_EVACT_2) | CONF_PORTA_EVCTRL_PORTEI_2 << PORT_EVCTRL_PORTEI2_Pos \
384 | PORT_EVCTRL_PID2(CONF_PORTA_EVCTRL_PID_2) | PORT_EVCTRL_EVACT3(CONF_PORTA_EVCTRL_EVACT_3) \
385 | CONF_PORTA_EVCTRL_PORTEI_3 << PORT_EVCTRL_PORTEI3_Pos | PORT_EVCTRL_PID3(CONF_PORTA_EVCTRL_PID_3))
386#define CONF_PORTB_EVCTRL \
387 (0 | PORT_EVCTRL_EVACT0(CONF_PORTB_EVCTRL_EVACT_0) | CONF_PORTB_EVCTRL_PORTEI_0 << PORT_EVCTRL_PORTEI0_Pos \
388 | PORT_EVCTRL_PID0(CONF_PORTB_EVCTRL_PID_0) | PORT_EVCTRL_EVACT1(CONF_PORTB_EVCTRL_EVACT_1) \
389 | CONF_PORTB_EVCTRL_PORTEI_1 << PORT_EVCTRL_PORTEI1_Pos | PORT_EVCTRL_PID1(CONF_PORTB_EVCTRL_PID_1) \
390 | PORT_EVCTRL_EVACT2(CONF_PORTB_EVCTRL_EVACT_2) | CONF_PORTB_EVCTRL_PORTEI_2 << PORT_EVCTRL_PORTEI2_Pos \
391 | PORT_EVCTRL_PID2(CONF_PORTB_EVCTRL_PID_2) | PORT_EVCTRL_EVACT3(CONF_PORTB_EVCTRL_EVACT_3) \
392 | CONF_PORTB_EVCTRL_PORTEI_3 << PORT_EVCTRL_PORTEI3_Pos | PORT_EVCTRL_PID3(CONF_PORTB_EVCTRL_PID_3))
393#define CONF_PORTC_EVCTRL \
394 (0 | PORT_EVCTRL_EVACT0(CONF_PORTC_EVCTRL_EVACT_0) | CONF_PORTC_EVCTRL_PORTEI_0 << PORT_EVCTRL_PORTEI0_Pos \
395 | PORT_EVCTRL_PID0(CONF_PORTC_EVCTRL_PID_0) | PORT_EVCTRL_EVACT1(CONF_PORTC_EVCTRL_EVACT_1) \
396 | CONF_PORTC_EVCTRL_PORTEI_1 << PORT_EVCTRL_PORTEI1_Pos | PORT_EVCTRL_PID1(CONF_PORTC_EVCTRL_PID_1) \
397 | PORT_EVCTRL_EVACT2(CONF_PORTC_EVCTRL_EVACT_2) | CONF_PORTC_EVCTRL_PORTEI_2 << PORT_EVCTRL_PORTEI2_Pos \
398 | PORT_EVCTRL_PID2(CONF_PORTC_EVCTRL_PID_2) | PORT_EVCTRL_EVACT3(CONF_PORTC_EVCTRL_EVACT_3) \
399 | CONF_PORTC_EVCTRL_PORTEI_3 << PORT_EVCTRL_PORTEI3_Pos | PORT_EVCTRL_PID3(CONF_PORTC_EVCTRL_PID_3))
Kévin Redon69b92d92019-01-24 16:39:20 +0100400
401// <<< end of configuration section >>>
402
403#endif // HPL_PORT_CONFIG_H