Skip to content

JSpeedie/embedded-libraries

Repository files navigation

embedded-libraries

A collection of libraries I wrote for various embedded peripherals.

The point of this repository is to provide a simple way to find and view the libraries I have written. Click on the submodule links in the file list of this repo to visit the library pages which have more information about themselves.

Cloning

Because this repository is just a collection of submodules which point to completed libraries, we need to clone the repo using:

git clone --recursive git@github.com:JSpeedie/embedded-libraries.git embedded-librariesGit

Maintenance

Adding another library (as a submodule):

Adding a new library is simple:

cd embedded-librariesGit/
# To add the submodule and to have it track the main branch of its repo
git submodule add -b main [url to git repo]
Instructions on how to get an already-added submodule to track main (Click to Expand)

If you have already added the submodule but want it to track the main branch of its repo rather than a specific commit, instead of running the previous command, you can do the following:

git config -f .gitmodules submodule.[name of git repo].branch main
cd [name of git repo]
git branch -u origin/main main

With the submodule now added and tracking main, we can commit and push:

git commit -m [commit message]
git push

Updating the libraries

Since the links in this repo to the library repos can get out of date, here's the command sequence to update them:

git submodule update --remote --merge
git commit -am "Updated the libraries"
git push

About

A collection of UART, I2C, and SPI libraries I wrote for various embedded peripherals for the ESP-IDF and Embedded Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors