File tree Expand file tree Collapse file tree 4 files changed +2
-111
lines changed Expand file tree Collapse file tree 4 files changed +2
-111
lines changed Original file line number Diff line number Diff line change @@ -5,10 +5,7 @@ zephyr_library()
5
5
zephyr_library_sources_ifdef (CONFIG_MODEM_RECEIVER modem_receiver.c )
6
6
zephyr_library_sources_ifdef (CONFIG_MODEM_SHELL modem_shell.c )
7
7
8
- zephyr_library_sources_ifdef (CONFIG_MODEM_CONTEXT
9
- modem_context.c
10
- modem_pin.c
11
- )
8
+ zephyr_library_sources_ifdef (CONFIG_MODEM_CONTEXT modem_context.c )
12
9
13
10
zephyr_library_sources_ifdef (CONFIG_MODEM_IFACE_UART_INTERRUPT modem_iface_uart_interrupt.c )
14
11
zephyr_library_sources_ifdef (CONFIG_MODEM_IFACE_UART_ASYNC modem_iface_uart_async.c )
Original file line number Diff line number Diff line change @@ -128,22 +128,9 @@ struct modem_context *modem_context_from_id(int id)
128
128
129
129
int modem_context_register (struct modem_context * ctx )
130
130
{
131
- int ret ;
132
-
133
131
if (!ctx ) {
134
132
return - EINVAL ;
135
133
}
136
134
137
- ret = modem_context_get (ctx );
138
- if (ret < 0 ) {
139
- return ret ;
140
- }
141
-
142
- ret = modem_pin_init (ctx );
143
- if (ret < 0 ) {
144
- LOG_ERR ("modem pin init error: %d" , ret );
145
- return ret ;
146
- }
147
-
148
- return 0 ;
135
+ return modem_context_get (ctx );
149
136
}
Original file line number Diff line number Diff line change 24
24
extern "C" {
25
25
#endif
26
26
27
- #define MODEM_PIN (name_ , pin_ , flags_ ) { \
28
- .dev_name = name_, \
29
- .pin = pin_, \
30
- .init_flags = flags_ \
31
- }
32
-
33
27
struct modem_iface {
34
28
const struct device * dev ;
35
29
@@ -49,13 +43,6 @@ struct modem_cmd_handler {
49
43
void * cmd_handler_data ;
50
44
};
51
45
52
- struct modem_pin {
53
- const struct device * gpio_port_dev ;
54
- char * dev_name ;
55
- gpio_pin_t pin ;
56
- gpio_flags_t init_flags ;
57
- };
58
-
59
46
struct modem_context {
60
47
/* modem data */
61
48
char * data_manufacturer ;
@@ -73,9 +60,6 @@ struct modem_context {
73
60
#endif
74
61
int * data_rssi ;
75
62
bool is_automatic_oper ;
76
- /* pin config */
77
- struct modem_pin * pins ;
78
- size_t pins_len ;
79
63
80
64
/* interface config */
81
65
struct modem_iface iface ;
@@ -137,12 +121,6 @@ struct modem_context *modem_context_from_iface_dev(const struct device *dev);
137
121
*/
138
122
int modem_context_register (struct modem_context * ctx );
139
123
140
- /* pin config functions */
141
- int modem_pin_read (struct modem_context * ctx , uint32_t pin );
142
- int modem_pin_write (struct modem_context * ctx , uint32_t pin , uint32_t value );
143
- int modem_pin_config (struct modem_context * ctx , uint32_t pin , bool enable );
144
- int modem_pin_init (struct modem_context * ctx );
145
-
146
124
#ifdef __cplusplus
147
125
}
148
126
#endif
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments