This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
flink_lib [2016/02/25 13:32] – external edit 127.0.0.1 | flink_lib [2020/06/26 14:22] (current) – [Building for a different platform architecture] ursgraf | ||
---|---|---|---|
Line 9: | Line 9: | ||
===== Overview ===== | ===== Overview ===== | ||
<box green right 38% | **Examples**> | <box green right 38% | **Examples**> | ||
- | * [[.: | + | * [[.: |
* [[.: | * [[.: | ||
</ | </ | ||
Line 29: | Line 29: | ||
cd flinklib | cd flinklib | ||
git submodule init | git submodule init | ||
- | git submodule update</ | + | git submodule update |
+ | </ | ||
+ | - Checkout a stable version< | ||
- Create a build directory: < | - Create a build directory: < | ||
- | - Change to the build directory and setup your build environment with CMake: < | + | - Change to the build directory and setup your build environment with CMake: < |
- Build the source code: < | - Build the source code: < | ||
Line 39: | Line 41: | ||
git submodule init | git submodule init | ||
git submodule update</ | git submodule update</ | ||
+ | - Checkout a branch < | ||
- Create a build directory for the target platform, e.g.: < | - Create a build directory for the target platform, e.g.: < | ||
- Create a CMake toolchain file. For more informations, | - Create a CMake toolchain file. For more informations, | ||
Line 57: | Line 60: | ||
Here, the second subdevice is selected. You could also select a subdevice by its uniqe id. < | Here, the second subdevice is selected. You could also select a subdevice by its uniqe id. < | ||
Here, the subdevice with '' | Here, the subdevice with '' | ||
- | Now you cann communicate with this selected subdevice. Assuming that it's of type GPIO you could configure it as an input or output. | + | Now you can communicate with this selected subdevice. Assuming that it's of type GPIO you could configure it as an input or output. |
< | < | ||
flink_dio_set_value(subdev, | flink_dio_set_value(subdev, | ||
This sets channel 0 to output and writes a logical 0.As a last step you have to close the device. | This sets channel 0 to output and writes a logical 0.As a last step you have to close the device. | ||
< | < |