1 /* generated common source file - do not edit */
2 #include "common_data.h"
3 /** IOPORT interface configuration for event link **/
4             const ioport_extend_cfg_t  g_ioport_cfg_extend =
5             {
6                 .port_group_output_cfg[IOPORT_PORT_GROUP_1] =
7                 {
8                     .pin_select   = (uint8_t)( IOPORT_EVENT_PIN_SELECTION_NONE),
9                     .operation    = IOPORT_EVENT_OUTPUT_OPERATION_LOW
10                 },
11                 .port_group_output_cfg[IOPORT_PORT_GROUP_2] =
12                 {
13                     .pin_select   = (uint8_t)( IOPORT_EVENT_PIN_SELECTION_NONE),
14                     .operation    = IOPORT_EVENT_OUTPUT_OPERATION_LOW
15                 },
16                 .port_group_input_cfg[IOPORT_PORT_GROUP_1] =
17                 {
18                     .event_control = IOPORT_EVENT_CONTROL_DISABLE,
19                     .pin_select    = (uint8_t)( IOPORT_EVENT_PIN_SELECTION_NONE),
20                     .edge_detection    = IOPORT_EVENT_DETECTION_RISING_EDGE,
21                     .overwrite_control = IOPORT_EVENT_CONTROL_DISABLE,
22                     .buffer_init_value = IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 7U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 6U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 5U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 3U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 2U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 1U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW
23                 },
24                 .port_group_input_cfg[IOPORT_PORT_GROUP_2] =
25                 {
26                     .event_control = IOPORT_EVENT_CONTROL_DISABLE,
27                     .pin_select    = (uint8_t)( IOPORT_EVENT_PIN_SELECTION_NONE),
28                     .edge_detection    = IOPORT_EVENT_DETECTION_RISING_EDGE,
29                     .overwrite_control = IOPORT_EVENT_CONTROL_DISABLE,
30                     .buffer_init_value = IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 6U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 5U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 4U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 3U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 2U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW << 1U | IOPORT_EVENT_INITIAL_BUFFER_VALUE_LOW
31                 },
32                 .single_port_cfg[IOPORT_SINGLE_PORT_0] =
33                 {
34                     .event_control = IOPORT_EVENT_CONTROL_DISABLE,
35                     .direction = IOPORT_EVENT_DIRECTION_OUTPUT,
36                     .port_num  = (uint16_t)BSP_IO_PORT_16_PIN_0,
37                     .operation = IOPORT_EVENT_OUTPUT_OPERATION_LOW,
38                     .edge_detection = IOPORT_EVENT_DETECTION_RISING_EDGE
39                 },
40                 .single_port_cfg[IOPORT_SINGLE_PORT_1] =
41                 {
42                     .event_control = IOPORT_EVENT_CONTROL_DISABLE,
43                     .direction = IOPORT_EVENT_DIRECTION_OUTPUT,
44                     .port_num  = (uint16_t)BSP_IO_PORT_16_PIN_0,
45                     .operation = IOPORT_EVENT_OUTPUT_OPERATION_LOW,
46                     .edge_detection = IOPORT_EVENT_DETECTION_RISING_EDGE
47                 },
48                 .single_port_cfg[IOPORT_SINGLE_PORT_2] =
49                 {
50                     .event_control = IOPORT_EVENT_CONTROL_DISABLE,
51                     .direction = IOPORT_EVENT_DIRECTION_OUTPUT,
52                     .port_num  = (uint16_t)BSP_IO_PORT_16_PIN_0,
53                     .operation = IOPORT_EVENT_OUTPUT_OPERATION_LOW,
54                     .edge_detection = IOPORT_EVENT_DETECTION_RISING_EDGE
55                 },
56                 .single_port_cfg[IOPORT_SINGLE_PORT_3] =
57                 {
58                     .event_control = IOPORT_EVENT_CONTROL_DISABLE,
59                     .direction = IOPORT_EVENT_DIRECTION_OUTPUT,
60                     .port_num  = (uint16_t)BSP_IO_PORT_16_PIN_0,
61                     .operation = IOPORT_EVENT_OUTPUT_OPERATION_LOW,
62                     .edge_detection = IOPORT_EVENT_DETECTION_RISING_EDGE
63                 }
64             };
65 
66 ioport_instance_ctrl_t g_ioport_ctrl;
67 
68 const ioport_instance_t g_ioport =
69         {
70             .p_api = &g_ioport_on_ioport,
71             .p_ctrl = &g_ioport_ctrl,
72             .p_cfg = &g_bsp_pin_cfg
73         };
g_common_init(void)74 void g_common_init(void) {
75 }
76