-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
198 changed files
with
132,546 additions
and
2,416 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -380,7 +380,6 @@ log_file.txt | |
.metadata/ | ||
.mxproject | ||
.settings/ | ||
template/ | ||
project.ioc | ||
mx.scratch | ||
*.tilen majerle |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,37 @@ | ||
# 1-Wire over UART | ||
# Lightweight onewire library | ||
|
||
LwOW is lightweight, platform independent library for Onewire protocol for embedded systems. | ||
Its primary focus is UART hardware for physical communication for sensors and other slaves. | ||
|
||
More about 1-Wire over UART can be found on link below. | ||
|
||
https://www.maximintegrated.com/en/app-notes/index.mvp/id/214 | ||
|
||
<h3>Read first: <a href="http://docs.majerle.eu/projects/lwow/">Documentation</a></h3> | ||
|
||
## Features | ||
|
||
- 1-Wire protocol fits UART specifications at `9600` and `115200` bauds | ||
- Hardware is responsible for timing characteristics | ||
- Works with operating system due to hardware timing management | ||
- Allows DMA on the high-performance microcontrollers | ||
- Different device drivers included | ||
- `DS18x20` temperature sensor | ||
- User friendly MIT license | ||
* Written in ANSI C99 | ||
* Platform independent, uses custom low-level layer for device drivers | ||
* 1-Wire protocol fits UART specifications at ``9600`` and ``115200`` bauds | ||
* Hardware is responsible for timing characteristics | ||
* Allows DMA on the high-performance microcontrollers | ||
* Different device drivers included | ||
* DS18x20 temperature sensor is natively supported | ||
* Works with operating system due to hardware timing management | ||
* Separate thread-safe API is available | ||
* API for device scan, reading and writing single bits | ||
* User friendly MIT license | ||
|
||
## Documentation | ||
## Contribute | ||
|
||
Full API documentation with description and examples is available and is regulary updated with the source changes | ||
Fresh contributions are always welcome. Simple instructions to proceed:: | ||
|
||
http://majerle.eu/documentation/ow/html/index.html | ||
1. Fork Github repository | ||
2. Respect [C style & coding rules](https://github.com/MaJerle/c-code-style) used by the library | ||
3. Create a pull request to develop branch with new features or bug fixes | ||
|
||
## Contribution | ||
Alternatively you may: | ||
|
||
I invite you to give feature request or report a bug. Please use issues tracker. | ||
1. Report a bug | ||
2. Ask for a feature request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 20 additions & 24 deletions
44
dev/VisualStudio/ow_config.h → dev/VisualStudio/lwow_opts.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,45 @@ | ||
/** | ||
* \file ow.h | ||
* \brief OneWire-UART main include file | ||
* \file lwow_opts.h | ||
* \brief OW application options | ||
*/ | ||
|
||
/* | ||
* Copyright (c) 2019 Tilen MAJERLE | ||
* | ||
* Copyright (c) 2020 Tilen MAJERLE | ||
* | ||
* Permission is hereby granted, free of charge, to any person | ||
* obtaining a copy of this software and associated documentation | ||
* files (the "Software"), to deal in the Software without restriction, | ||
* including without limitation the rights to use, copy, modify, merge, | ||
* publish, distribute, sublicense, and/or sell copies of the Software, | ||
* and to permit persons to whom the Software is furnished to do so, | ||
* publish, distribute, sublicense, and/or sell copies of the Software, | ||
* and to permit persons to whom the Software is furnished to do so, | ||
* subject to the following conditions: | ||
* | ||
* | ||
* The above copyright notice and this permission notice shall be | ||
* included in all copies or substantial portions of the Software. | ||
* | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
* OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE | ||
* AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
* HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
* OTHER DEALINGS IN THE SOFTWARE. | ||
* | ||
* This file is part of OneWire library. | ||
* | ||
* Author: Tilen MAJERLE <tilen@majerle.eu> | ||
* Version: v2.0.0 | ||
* Version: v3.0.0 | ||
*/ | ||
#ifndef OW_HDR_CONFIG_H | ||
#define OW_HDR_CONFIG_H | ||
#ifndef LWOW_HDR_OPTS_H | ||
#define LWOW_HDR_OPTS_H | ||
|
||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif /* __cplusplus */ | ||
/* Rename this file to "lwow_opts.h" for your application */ | ||
|
||
#define OW_CFG_OS 1 | ||
|
||
#include "ow/ow_config_default.h" | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif /* __cplusplus */ | ||
/* | ||
* Open "include/lwow/lwow_opt.h" and | ||
* copy & replace here settings you want to change values | ||
*/ | ||
#define LWOW_CFG_OS 1 | ||
|
||
#endif /* OW_HDR_CONFIG_H */ | ||
#endif /* LWOW_HDR_OPTS_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,8 +7,8 @@ List of all the modules: | |
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
:glob: | ||
|
||
* | ||
*/index | ||
|
||
lwow | ||
opt | ||
port/index | ||
devices/index |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _api_lwow: | ||
|
||
LwOW | ||
==== | ||
|
||
.. doxygengroup:: LWOW |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _api_lwow_opt: | ||
|
||
LwOW configuration | ||
================== | ||
|
||
This is the default configuration of the middleware. | ||
When any of the settings shall be modified, it shall be done in dedicated application config ``lwow_opts.h`` file. | ||
|
||
.. note:: | ||
Check :ref:`getting_started` to create configuration file. | ||
|
||
.. doxygengroup:: LWOW_OPT |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. _api_lwow_port: | ||
|
||
Platform specific | ||
================= | ||
|
||
List of all the modules: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
ll | ||
sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.. _api_lwow_ll: | ||
|
||
Low-level driver | ||
================ | ||
|
||
.. doxygengroup:: LWOW_LL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.. _api_lwow_sys: | ||
|
||
System functions | ||
================ | ||
|
||
System function are used in conjunction with thread safety. | ||
These are required when operating system is used and multiple threads | ||
want to access to the same OneWire instance. | ||
|
||
.. tip:: | ||
Check :ref:`um_thread_safety` and :ref:`um_porting_guide` for instructions on how to port. | ||
|
||
Below is a list of function prototypes and its implementation details. | ||
|
||
.. doxygengroup:: LWOW_SYS |
Oops, something went wrong.