This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| flink_lib [2020/05/19 14:36] – [Overview] ursgraf | flink_lib [2024/06/13 13:49] (current) – [Building for a different platform architecture] ursgraf | ||
|---|---|---|---|
| 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 stable version < | ||
| - 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. | ||
| < | < | ||