Skip to content

Commit

Permalink
Merge pull request #1 from PlayerData/zephyr-module
Browse files Browse the repository at this point in the history
feat: add files to work as zephyr module
  • Loading branch information
saty9 authored Jul 7, 2023
2 parents bf36324 + 1ffd828 commit 14e6208
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 1 deletion.
16 changes: 16 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,19 @@ A crate to provide logging for embedded applications.

This expects `void embedded_logging_log(uint8_t level, const char *msg)` to be defined for the library to call out to.

An example implementation that uses zephyrs logging framework is in example_wiring.c
An example implementation that uses zephyrs logging framework is in `zephyr/wiring.c`

This can be auto added if you include this as a zephyr module
```
manifest:
remotes:
- name: playerdata
url-base: https://github.com/PlayerData
projects:
- name: rust_embedded_logging
remote: playerdata
revision: 0.1.0
path: modules/rust_embedded_logging
```
1 change: 1 addition & 0 deletions zephyr/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
zephyr_library_sources_ifdef(CONFIG_LOG wiring.c)
3 changes: 3 additions & 0 deletions zephyr/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
name: rust_embedded_logging
build:
cmake: zephyr
File renamed without changes.

0 comments on commit 14e6208

Please sign in to comment.