• skip to content



flink-project

Universal Serial Interface to FPGA's

User Tools

  • Admin
  • Log In

Site Tools

  • Recent Changes
  • Media Manager
  • Sitemap
You are here: start » flink_lib » high_level_example

flink_lib:high_level_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
flink_lib:high_level_example [2020/05/26 16:11] – ursgrafflink_lib:high_level_example [2020/05/26 17:14] (current) – ursgraf
Line 6: Line 6:
 #include <stdlib.h> #include <stdlib.h>
 #include <stdbool.h> #include <stdbool.h>
 +#include <unistd.h>
 #include <flinklib.h> #include <flinklib.h>
-#include <unistd.h> 
-  
    
 int main(void) { int main(void) {
Line 36: Line 35:
   error = flink_dio_set_direction(subdev, channel, true);   error = flink_dio_set_direction(subdev, channel, true);
   if(error != 0) {   if(error != 0) {
-    printf("Configuring GPIO direction failed!\n");+    fprintf(stderr, "Configuring GPIO direction failed!\n");
     return -1;     return -1;
   }   }
Line 45: Line 44:
     error = flink_dio_set_value(subdev, channel, out);     error = flink_dio_set_value(subdev, channel, out);
     if(error != 0) {     if(error != 0) {
-      printf("Writing value failed!\n");+      fprintf(stderr, "Writing value failed!\n");
       return -1;       return -1;
     }     }
flink_lib/high_level_example.1590502291.txt.gz · Last modified: 2020/05/26 16:11 by ursgraf

Page Tools

  • Show page
  • Old revisions
  • Back to top
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki