Vanya A. Sergeev
23bfa4ab48
update version to v2.3.1
v2.3.1
2021-01-05 02:51:56 -06:00
Vanya A. Sergeev
7c55b0ff2c
changelog: update to v2.3.1
2021-01-05 02:51:56 -06:00
Vanya A. Sergeev
115d17d6aa
readme: update travis-ci link
2021-01-05 02:43:44 -06:00
Vanya A. Sergeev
b1c4ee2cb7
readme: fix typo in project description
2021-01-05 02:43:44 -06:00
Ryan Barnett
21c1b7a48c
spi: fix unused variable warnings when building without 32-bit mode support
...
Fix these warnings to allow for clean build:
src/spi.c:75:14: warning: unused variable 'data32' [-Wunused-variable]
uint32_t data32;
src/spi.c:237:49: warning: unused parameter 'extra_flags' [-Wunused-parameter]
int spi_get_extra_flags32(spi_t *spi, uint32_t *extra_flags) {
src/spi.c:308:48: warning: unused parameter ‘extra_flags’ [-Wunused-parameter]
int spi_set_extra_flags32(spi_t *spi, uint32_t extra_flags) {
Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com >
Modifications to original commit:
* Remove "Suppress warning..." comments.
* Remove unneeded unused variable suppression for `extra_flags` in
`spi_open_advanced2()`.
* Refactor `data32` unused variable suppression in
`spi_open_advanced2()`.
Signed-off-by: Vanya A. Sergeev <v@sergeev.io >
2021-01-05 02:43:44 -06:00
Ryan Barnett
708f7fe239
spi: fix calls to error helper when building without 32-bit mode support
...
Commit 56755acc78 introduced support for
32-bit extra flags. However, when compiling with a toolchain without
support for the extra flags, the following error appears:
src/spi.c:322:5: error: too few arguments to function '_spi_error'
return _spi_error(spi, SPI_ERROR_UNSUPPORTED, "Kernel version does not support 32-bit SPI mode flags");
This can be fixed by passing a third argument of 0.
Signed-off-by: Ryan Barnett <ryanbarnett3@gmail.com >
Signed-off-by: Vanya A. Sergeev <v@sergeev.io >
2021-01-05 02:37:57 -06:00
Vanya A. Sergeev
8c9f87227b
update version to v2.3.0
v2.3.0
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
1faf0ffadb
changelog: update to v2.3.0
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
4f76ea4207
serial: improve overhang indentation in header file
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
eadbc92224
spi: improve overhang indentation in header file
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
96813774da
spi: use 32-bit extra flags opportunistically in spi_tostring()
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
56755acc78
spi: add advanced open function with 32-bit extra flags
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
28ab557d6f
spi: add getter and setter for 32-bit extra flags
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
09862fec26
tests/spi: remove extra flags assertions
...
in newer kernels the spidev driver appends SPI_CS_HIGH to the mode when
the SPI controller is configured to use GPIOs for chip selects, which
breaks the assertion that extra flags is zero in this SPI test.
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
061cd9ed75
tests/mmio: remove unused arguments
2020-12-16 01:11:04 -06:00
Vanya A. Sergeev
c4d7a1d0ab
led: fix unused parameter warning
2020-12-16 00:59:35 -06:00
Remy Dziemiaszko
b8adb42e77
gpio: fix unused parameter warnings
...
Modifications to origin commit:
* Remove "Avoid warning: unused parameter" comments
Signed-off-by: Vanya A. Sergeev <v@sergeev.io >
2020-12-16 00:59:35 -06:00
Vanya A. Sergeev
5af41d4cf9
cmake: enable unused parameter warning
2020-12-16 00:59:35 -06:00
Vanya A. Sergeev
10ec658b51
make: enable unused parameter warning
2020-12-16 00:59:35 -06:00
Vanya A. Sergeev
70caff20e2
mmio: add advanced open function for alternate device path
2020-12-16 00:59:35 -06:00
Vanya A. Sergeev
513f5edbcf
update version to v2.2.5
v2.2.5
2020-11-19 23:28:39 -06:00
Vanya A. Sergeev
8044a6cc30
changelog: update to v2.2.5
2020-11-19 23:28:39 -06:00
Vanya A. Sergeev
415f5b45d5
make: disable stringop truncation warning
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
a5277005df
gpio: validate len in name and label getters of cdev impl
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
3b10d3773c
gpio: valdiate len in chip name and chip label getters in sysfs impl
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
8e54e5e436
gpio: simplify dummy name and label getters in sysfs impl
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
8e89b26aa9
gpio: add null termination to consumer label in open of cdev impl
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
9d3e06e336
led: add null termination to led_name() getter
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
ca5c0f1fda
led: add null termination to name copy in led_open()
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
a22369528b
led: use strcpy() for static strings in led_tostring()
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
5ddccc9370
pwm: use strcpy() for static strings in pwm_tostring()
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
308c38670b
spi: use strcpy() for static strings in spi_tostring()
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
dafd0d374d
cmake: add debug and release flags to CFLAGS
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
adba7a9a55
make: add default optimization to CFLAGS
2020-11-19 23:27:05 -06:00
Vanya A. Sergeev
788d28a0b3
gpio: check direction in write(), poll(), read_event() in cdev implementation
...
consistent with vsergeev/python-periphery#44 .
2020-10-23 20:07:48 -05:00
Vanya A. Sergeev
d34077d7ee
update version to v2.2.4
v2.2.4
2020-09-11 02:09:50 -05:00
Vanya A. Sergeev
ffdb54ca0d
changelog: update to v2.2.4
2020-09-11 02:09:50 -05:00
Vanya A. Sergeev
c552ec7d61
mmio: clear handle ptr on error to prevent spurious munmap() in mmio_close()
2020-09-11 01:55:36 -05:00
Vanya A. Sergeev
c9bce3a5c2
serial: clear handle fd on error to prevent spurious close() in serial_close()
2020-09-11 01:41:51 -05:00
Vanya A. Sergeev
5081fe1cbc
spi: clear handle fd on error to prevent spurious close() in spi_close()
2020-09-11 01:41:51 -05:00
Vanya A. Sergeev
879ef6932b
i2c: clear handle fd on error to prevent spurious close() in i2c_close()
2020-09-11 01:41:51 -05:00
Vanya A. Sergeev
711e639a4d
gpio: clear handle fd on error to prevent spurious close() in gpio_close()
2020-09-11 01:41:51 -05:00
Vanya A. Sergeev
8988d2598b
gpio: move handle fd clear after their respective close() in gpio_close()
2020-09-11 01:41:16 -05:00
Vanya A. Sergeev
85a71a15d0
update version to v2.2.3
v2.2.3
2020-09-03 02:37:35 -05:00
Vanya A. Sergeev
d8e68ab276
changelog: update to v2.2.3
2020-09-03 02:37:35 -05:00
Vanya A. Sergeev
5ecec648b2
spi: fix formatted bits per word truncation in spi_tostring()
...
closes #31 .
2020-09-03 02:37:24 -05:00
Vanya A. Sergeev
5b81b89926
gpio: disable cdev implementation under older gpio-cdev linux abi
...
that preceded the introduction of line events. resolves #30 . special
thanks to Fabrice Fontaine <fontaine.fabrice@gmail.com > for the original
implementation.
2020-09-03 01:52:06 -05:00
Vanya A. Sergeev
3279138ebe
make: add test for cdev gpio support in kernel headers
2020-07-28 00:21:12 -05:00
Vanya A. Sergeev
1de776e0e4
update version to v2.2.2
v2.2.2
2020-07-24 02:24:27 -05:00
Vanya A. Sergeev
1b1df4d64e
changelog: update to v2.2.2
2020-07-24 02:24:24 -05:00