gpiod 2.2.0__tar.gz → 2.2.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {gpiod-2.2.0/gpiod.egg-info → gpiod-2.2.1}/PKG-INFO +1 -1
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/chip.py +4 -3
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/chip.c +4 -2
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/line-settings.c +4 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/version.py +1 -1
- {gpiod-2.2.0 → gpiod-2.2.1/gpiod.egg-info}/PKG-INFO +1 -1
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/chip-info.c +2 -2
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-info.c +2 -2
- gpiod-2.2.1/libgpiod-version.txt +1 -0
- gpiod-2.2.0/libgpiod-version.txt +0 -1
- {gpiod-2.2.0 → gpiod-2.2.1}/MANIFEST.in +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/README.md +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/build_tests.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/__init__.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/chip_info.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/edge_event.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/exception.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/common.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/internal.h +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/line-config.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/module.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/ext/request.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/info_event.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/internal.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line_info.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line_request.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod/line_settings.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod.egg-info/SOURCES.txt +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod.egg-info/dependency_links.txt +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/gpiod.egg-info/top_level.txt +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/include/gpiod.h +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/chip.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/edge-event.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/info-event.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/internal.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/internal.h +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-config.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-request.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/line-settings.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/misc.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/request-config.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/lib/uapi/gpio.h +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/pyproject.toml +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/setup.cfg +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/setup.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/__init__.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/__main__.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/gpiosim/__init__.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/gpiosim/chip.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/gpiosim/ext.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/helpers.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/procname/__init__.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/procname/ext.c +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_chip.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_chip_info.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_edge_event.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_info_event.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line_info.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line_request.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_line_settings.py +0 -0
- {gpiod-2.2.0 → gpiod-2.2.1}/tests/tests_module.py +0 -0
|
@@ -279,11 +279,12 @@ class Chip:
|
|
|
279
279
|
else:
|
|
280
280
|
mapped_output_values = None
|
|
281
281
|
|
|
282
|
+
name_map = dict()
|
|
283
|
+
offset_map = dict()
|
|
284
|
+
global_output_values = list()
|
|
285
|
+
|
|
282
286
|
for lines, settings in config.items():
|
|
283
287
|
offsets = list()
|
|
284
|
-
name_map = dict()
|
|
285
|
-
offset_map = dict()
|
|
286
|
-
global_output_values = list()
|
|
287
288
|
|
|
288
289
|
if isinstance(lines, int) or isinstance(lines, str):
|
|
289
290
|
lines = (lines,)
|
|
@@ -274,14 +274,16 @@ static PyObject *chip_request_lines(chip_object *self, PyObject *args)
|
|
|
274
274
|
Py_BEGIN_ALLOW_THREADS;
|
|
275
275
|
request = gpiod_chip_request_lines(self->chip, req_cfg, line_cfg);
|
|
276
276
|
Py_END_ALLOW_THREADS;
|
|
277
|
-
|
|
278
|
-
|
|
277
|
+
if (!request) {
|
|
278
|
+
gpiod_request_config_free(req_cfg);
|
|
279
279
|
return Py_gpiod_SetErrFromErrno();
|
|
280
|
+
}
|
|
280
281
|
|
|
281
282
|
req_obj = Py_gpiod_MakeRequestObject(request,
|
|
282
283
|
gpiod_request_config_get_event_buffer_size(req_cfg));
|
|
283
284
|
if (!req_obj)
|
|
284
285
|
gpiod_line_request_release(request);
|
|
286
|
+
gpiod_request_config_free(req_cfg);
|
|
285
287
|
|
|
286
288
|
return req_obj;
|
|
287
289
|
}
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
|
|
11
11
|
struct gpiod_line_info {
|
|
12
12
|
unsigned int offset;
|
|
13
|
-
char name[GPIO_MAX_NAME_SIZE];
|
|
13
|
+
char name[GPIO_MAX_NAME_SIZE + 1];
|
|
14
14
|
bool used;
|
|
15
|
-
char consumer[GPIO_MAX_NAME_SIZE];
|
|
15
|
+
char consumer[GPIO_MAX_NAME_SIZE + 1];
|
|
16
16
|
enum gpiod_line_direction direction;
|
|
17
17
|
bool active_low;
|
|
18
18
|
enum gpiod_line_bias bias;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.3
|
gpiod-2.2.0/libgpiod-version.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.1.2
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|