Skip to content

Aux spi port and roll-up other PRs#181

Open
MarkvanderPol wants to merge 8 commits intojperkin:masterfrom
MarkvanderPol:aux-spi-port
Open

Aux spi port and roll-up other PRs#181
MarkvanderPol wants to merge 8 commits intojperkin:masterfrom
MarkvanderPol:aux-spi-port

Conversation

@MarkvanderPol
Copy link
Copy Markdown

A PR of my aux_spi changes, as well as other PR's submitted over the last 3 years.

Included are :
Update nan to min 2.18.0
Update readme with confirmed working node versions
Add node 16/18 to previous LTS testing
Update to NodeJS 15 and 16
feat: adding support for device_tree_path in rpio.init to fix #154
Added proper pinmap detection for BPI-M2P Zero 40pin
Added support for driving the aux-spi port.

Ultimately, I intend to push this to the node npm repository as a package under a scoped public name '@remarkablearts/rpio allowing easy inclusion of these updates .
Of course, J Perkin can merge this (or the other PRs independently) and npm should pick up the new version as well. but until then, the scoped package will be available.

NOTE - I did not test the changes except for the AUX_SPI stuff I contributed. Examining the code, they seem to do what the authors intended, but not verified by me.

MarkvanderPol and others added 8 commits March 12, 2021 20:01
primary port equivalents and changed their name.
Added the flag WORKER_ENABLED to permit running in newer NODE
releases easier, but I have not verified if the code can actully
do multi-threading. A quick glance indicates most register
access are benign, but if two processes seperately start to access
a SPI port results may be suprising.
…#154 rather than assume /proc/device-tree/model

This allows non privileged docker containers to specify a different path for the model file since it can't use /proc/device-tree/model
@jperkin
Copy link
Copy Markdown
Owner

jperkin commented Apr 5, 2024

Thanks! A lot of this looks great, sorry that I've been swamped for a while. I'll try to get to this as soon as I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

detect_pinmap hard codes /proc/device-tree/model causing docker issues

5 participants