Debian 10 (Buster) has gcc 8.2 which warns about:
cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’
The solution is to cast to '(PyCFunction)(void *)'
Debian 10 (Buster) has gcc 8.2 which warns about:
source/c_pwm.c:459:65: error: argument to ‘sizeof’ in ‘strncpy’ call is the same expression as the source; did you mean to use the size of the destination? [-Werror=sizeof-pointer-memaccess]
source/c_pwm.c:396:43: error: ‘%s’ directive output may be truncated writing up to 199 bytes into a region of size 100 [-Werror=format-truncation=]
Debian 10 (Buster) has gcc 8.2 which warns about:
cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’
The solution is to cast to '(PyCFunction)(void *)'
Debian 10 (Buster) has gcc 8.2 which warns about:
error: ‘%s’ directive output may be truncated writing up to 19 bytes into a region of size between 10 and 59 [-Werror=format-truncation=]
snprintf(path, sizeof(path), "%s/%s/state", ocp_dir, pinmux_dir);
Debian 10 (Buster) has gcc 8.2 which warns about:
cast between incompatible function types from ‘PyObject * (*)(PyObject *, PyObject *, PyObject *)’
The solution is to cast to '(PyCFunction)(void *)'
Rather than returning the error code for UART1 regardless of which
interface had problems, we should return the error code for the
interface that actually had an error.
Pretty sure this was a simple copy-paste mistake.
Version 3.0 of python-serial introduced an updated API, we may as well
use it.
This change also uses context-managers for dealing with UARTs as they
are less error-prone and the code is much cleaner/shorter.
Commit 8dfbf64c36 ("Fix spidev path mismatch (#216)")
changes how the SPI constructor maps to the spidev entry.
Update the documentation to reflect this change.
Signed-off-by: Franklin S Cooper Jr <fcooper27@gmail.com>
Features:
* automatically set pin modes for UART (PR #158)
* Encoder: README.md: added note about eqep group change (PR #214)
* deprecate out of date Adafruit_I2C.py (PR #215)
* Add Encoder module info to main README.md (PR #217)
* Add automatic API documentation generation (PR #219)
* Separate API docs into modules (PR #221)
shortlog:
* David Planella (46):
* Encoder: README.md: added note about eqep group change
* Add Encoder module info to main README.md
* Added docstrings using Google syntax and Sphinx support to generate the API documentation for the Encoder and PWM modules for now.
* Made kernel version check to happen only if running on a beaglebone. The readthedocs builders that import the Encoder module have an old 3.3 kernel and the autodoc build fails
* Use the default readthedocs theme
* Use readthedocs theme if building docs there, remove redundand search link
* Readthedocs theme tweaks
* Removed redundant TOC, added global description
* Added UART documentation
* Added documentation badge
* Added ADC API docs, fixed UART module definition
* API docs: added SPI module
* Added SPI module attribute docs
* Added Python badges to README file
* Added SPI pins table and first shot at GPIO module. Functions still need to be documented
* Merge branch 'readthedocs' of https://github.com/dplanella/adafruit-beaglebone-io-python into readthedocs
* Documented the API docs build process
* Added docstrings using Google syntax and Sphinx support to generate the API documentation for the Encoder and PWM modules for now.
* Made kernel version check to happen only if running on a beaglebone. The readthedocs builders that import the Encoder module have an old 3.3 kernel and the autodoc build fails
* Use the default readthedocs theme
* Use readthedocs theme if building docs there, remove redundand search link
* Readthedocs theme tweaks
* Removed redundant TOC, added global description
* Added UART documentation
* Added documentation badge
* Added ADC API docs, fixed UART module definition
* API docs: added SPI module
* Added SPI module attribute docs
* Added Python badges to README file
* Added SPI pins table and first shot at GPIO module. Functions still need to be documented
* Documented the API docs build process
* Merge branch 'readthedocs' of https://github.com/dplanella/adafruit-beaglebone-io-python into readthedocs
* Update README.md
* Added some more API doc content
* Sync from upstream master
* Minor documentation and configuration improvements
* Finished documenting GPIO
* rST fixes
* Update README.md
* Minor API doc improvements
* Merge branch 'readthedocs' of https://github.com/dplanella/adafruit-beaglebone-io-python into readthedocs
* Generate the API documentation from a master index and a separate file for each module
* Sync from upstream master
* Improvements to the API docs output config
* Update docs generation description to reflect new separate modules
* Updated ADC API docs
* Drew Fustini (10):
* use set_pin_mode() to set uart pinmux (#158)
* Add SPI instructions to README (#158)
* Update README.md
* Fix spidev path mismatch (#216)
* Merge pull request #217 from dplanella/patch-2
* Merge pull request #214 from dplanella/patch-1
* Deprecate Adafruit_BBIO.I2C in favor of Adafruit_GPIO.I2C (#215)
* Merge pull request #219 from dplanella/readthedocs
* relocate doc dir to avoid confusion (#218)
* Merge pull request #221 from dplanella/readthedocs
Signed-off-by: Drew Fustini <drew@pdp7.com>