Skip to content

set pin modes for UART #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
pdp7 opened this issue Aug 23, 2017 · 2 comments
Closed

set pin modes for UART #158

pdp7 opened this issue Aug 23, 2017 · 2 comments
Assignees

Comments

@pdp7
Copy link
Collaborator

pdp7 commented Aug 23, 2017

Use set_pin_mode() to ensure pinmux is correct for UART peripheral before using.

NOTE: GPIO and PWM already call set_pin_mode()

@pdp7 pdp7 self-assigned this Aug 23, 2017
@pdp7
Copy link
Collaborator Author

pdp7 commented Aug 23, 2017

My work-in-progress (WIP) is in branch config-pin. Most recent commit: b926084

@pdp7
Copy link
Collaborator Author

pdp7 commented Nov 2, 2017

For reference, config-pin reads and writes to files in /sys/devices/platform/ocp such as this path for P9_26:

debian@beaglebone:~$ cat /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
uart
debian@beaglebone:~$ echo gpio > /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
debian@beaglebone:~$ cat /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
gpio
debian@beaglebone:~$ echo uart > /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
debian@beaglebone:~$ cat /sys/devices/platform/ocp/ocp:P9_26_pinmux/state
uart

pdp7 added a commit that referenced this issue Dec 1, 2017
Use set_pin_mode() to set pinmux for UART
RX and TX pins. This is similar effect as
running the config-pin utility.

Signed-off-by: Drew Fustini <[email protected]>
@pdp7 pdp7 changed the title Use config-pin to set pin modes set pin modes for UART and SPI Dec 1, 2017
@pdp7 pdp7 changed the title set pin modes for UART and SPI set pin modes for UART Dec 1, 2017
@pdp7 pdp7 closed this as completed Dec 1, 2017
pdp7 added a commit that referenced this issue Dec 1, 2017
pdp7 added a commit that referenced this issue Jan 26, 2018
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 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant