Commit Graph
40 Commits
Author SHA1 Message Date
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 70caff20e2 mmio: add advanced open function for alternate device path 2020-12-16 00:59:35 -06:00
Ryan Barnett 50fcd0a073 docs/gpio: add note about kernel headers required for cdev support
This commit was derived from the original commit in PR #27:

  gpio: add sysfs gpio only support

  With detection of the gpio cdev interface a part of CMakeLists.txt,
  add a define to version.h which for explicitly enabling the gpio cdev
  interface. This will allow c-periphery to be compiled for older
  platforms which only support the gpio sysfs interface (currently
  toolchains with 4.4 headers).

  Typically toolchains have older headers than their platform and since
  the 4.4 kernel is being maintained until Feb 2022, this means there
  will still be new toolchains that are using kernel headers older than
  4.8.

  Signed-off-by: Ryan Barnett <ryan.barnett@rockwellcollins.com>

Signed-off-by: Vanya A. Sergeev <v@sergeev.io>
2020-07-24 02:24:00 -05:00
Vanya A. Sergeev 6cd2061ae6 gpio: fix argument name in prototype for gpio_set_bias()
resolves #25.
2020-05-31 22:22:21 -05:00
Vanya A. Sergeev 7e7b91ac90 gpio: add advanced open functions for cdev implementation
resolves #22.
2020-05-28 20:35:06 -05:00
Vanya A. Sergeev ecbd5aa85a gpio: add getters and setters for bias, drive, inverted
resolves #23.
2020-05-28 20:35:06 -05:00
Vanya A. Sergeev 3719a82eb9 gpio: add getter for line consumer label 2020-05-28 20:35:06 -05:00
Vanya A. Sergeev 001b9aa2e1 docs/gpio: fix argument name in description of gpio_open_name() 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev e0d8632896 serial: add support for termios timeout to serial_read()
see vsergeev/python-periphery#28, vsergeev/python-periphery#30.
2020-05-28 00:04:13 -05:00
Vanya A. Sergeev 03420b4718 serial: add getters and setters for vmin and vtime 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev cd91ddd6fe docs/serial: improve wording in description for serial_read() 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev d74a3c9774 docs/serial: improve wording in description for serial_poll() 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev a700bd1359 docs/serial: improve indentation of prototype for serial_open_advanced() 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev 4a62aebe36 gpio: add gpio_poll_multiple() api
see vsergeev/python-periphery#21.
2020-05-28 00:04:13 -05:00
Vanya A. Sergeev e914e48ace docs/gpio: improve wording in description for gpio_poll() 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev 06de19088c docs/spi: improve indentation of prototype for spi_open_advanced() 2020-05-28 00:04:13 -05:00
Vanya A. Sergeev 37174127a3 pwm: add pwm module 2020-01-07 23:44:14 -06:00
Vanya A. Sergeev 6d3f48e573 led: add led module 2020-01-07 23:44:14 -06:00
Vanya A. Sergeev 85c163f353 docs/spi: reword description for getters 2020-01-07 00:34:48 -06:00
Vanya A. Sergeev ca2cd97f4b docs/serial: reword description for getters 2020-01-07 00:34:48 -06:00
Vanya A. Sergeev 7185281ee7 docs/gpio: reword description for getters 2020-01-07 00:34:48 -06:00
Vanya A. Sergeev a9a2aa8f07 docs/gpio: fix old sysfs reference in description of gpio_close() 2019-10-07 20:57:44 -05:00
Vanya A. Sergeev 1831bfdfb2 docs/gpio: update with new cdev focused api 2019-09-30 22:19:44 -05:00
Vanya A. Sergeev 619e0ff85b docs/gpio: fix include path in synopsis 2019-09-30 22:18:42 -05:00
Vanya A. Sergeev 9c59ca3b7a docs/gpio: remove references to non-existent gpio_open_advanced() 2019-09-30 22:18:42 -05:00
Vanya A. Sergeev 6c8e0fda52 spi: reword error code descriptions 2019-09-30 22:18:42 -05:00
Vanya A. Sergeev 67d0e04d4c mmio: consolidate map and unmap error codes to open and close 2019-09-30 22:15:56 -05:00
Vanya A. Sergeev 8b21d0668c i2c: shorten error code I2C_ERROR_QUERY_SUPPORT to I2C_ERROR_QUERY 2019-09-30 22:15:56 -05:00
Vanya A. Sergeev fcb8825675 serial: fix missing value in error codes enumeration 2019-09-30 22:15:56 -05:00
Vanya A. Sergeev 865bf2896a serial: add serial_new()/serial_free() for handle memory management 2019-09-29 17:53:38 -05:00
Vanya A. Sergeev ea34b996eb mmio: add mmio_new()/mmio_free() for handle memory management 2019-09-29 17:53:38 -05:00
Vanya A. Sergeev 5558e09b85 i2c: add i2c_new()/i2c_free() for handle memory management 2019-09-29 17:53:38 -05:00
Vanya A. Sergeev c13c17dd2c spi: add spi_new()/spi_free() for handle memory management 2019-09-28 23:01:39 -05:00
Vanya A. Sergeev e412d5cc3f gpio: add gpio_new()/gpio_free() for handle memory management 2019-09-28 23:01:39 -05:00
Vanya A. Sergeev 6fc8df4824 gpio: add support for preserving direction to gpio_open() 2016-09-27 04:51:15 -07:00
Vanya Sergeev c00f309bc1 qualify data bits, stop bits, and waiting counts with unsigned in serial 2015-05-25 01:49:02 -07:00
Vanya Sergeev 07acac68f2 re-arrange i2c example for clarity in i2c doc 2015-02-02 23:20:37 -08:00
Vanya Sergeev 8f8813abba fix typos in i2c documentation 2015-01-28 21:41:50 -08:00
Vanya Sergeev 0db43835cd add docs 2014-05-14 09:52:49 -07:00