Skip to content

owntech-foundation/Core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OwnTech Power API

This is the OwnTech Power API Core repository.

The Power API is designed to be used with VS Code and PlatformIO. Installing VS Code with PlatformIO.

For information about Power API, check out its Documentation.

Downloading OwnTech Power API Core

You fisrt need to download the Power API Core repository using the following command:

git clone https://github.com/owntech-foundation/Core.git owntech_power_api

Then, open VS Code and, if not already done, install the PlatformIO plugin.

Finally, open the newly cloned folder owntech_power_api using menu File > Open Folder...

Working with OwnTech Power API

While the project contains many folders and files, all your code goes to the src folder. In the this folder, the file main.cpp is the entry point of the application. Aditionally, some configuration can be done in the platformio.ini file.

Other folders and files are used to configure the underlying Zephyr OS and PlatformIO, and are hidden by default.

Accessing OwnTech source code in VS Code (for advanced developers)

The full hierarchy of the project is as follows:

owntech_power_api
└─ owntech
|  └─ boards
|  └─ scripts
|  └─>pio_extra.ini
└─ src
|  └─>main.cpp
└─ zephyr
|  └─ boards
|  └─ dts
|  └─ modules
|  └─>CMakeLists.txt
|  └─>prj.conf
└─>LICENSE
└─>platformio.ini
└─>README.md

The owntech folder contains scripts and board description for PlatformIO, while the zephyr folder contains board decription and OwnTech's Zephyr modules. By default, these folders (as well as VS Code and PlatformIO folders .vscode and .pio) are hidden when opening the project in VS Code.

If you need to access these in VS Code, open the project using your file explorer, then in the .vscode folder, rename file settings.json, e.g. to settings.json.old.

Advanced Zephyr configuration can be tweaked by editing zephyr/prj.conf.

The OwnTech API source code is located in zephyr/modules. If you need to tailor it to your needs, please checkout the Zephyr documentation.

About

A comprehensive API for power electronics based on Zephyr RTOS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published