Advertisement
Guest User

Untitled

a guest
Jun 1st, 2015
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. component mycomp;
  2.  
  3.  
  4.  
  5. pin in u32 length;
  6.  
  7. option singleton;
  8. option extra_setup;
  9. option extra_cleanup;
  10.  
  11.  
  12. function write "Send data";
  13.  
  14.  
  15.  
  16.  
  17. ;;
  18. #include <linux/net.h>
  19. #include <linux/in.h>
  20. #include "rtapi_math.h"
  21.  
  22.  
  23.  
  24.  
  25. EXTRA_SETUP()
  26. {
  27.  
  28.  
  29.  
  30. u32 temp0, temp1;
  31.  
  32.  
  33. temp0 = length;
  34. temp0 = temp0 << 8;
  35. temp1 = length;
  36. temp1 = temp1 << 8;
  37. rtapi_print_msg(RTAPI_MSG_ERR,"ahift: %d >> %d << %d\n",length, temp0, temp1);
  38.  
  39. return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement