Advertisement
Guest User

Untitled

a guest
May 14th, 2014
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. component sim "just messing about";
  2. pin in u32 pin1;
  3. option extra_setup;
  4. function _;
  5. variable unsigned *pin2;
  6. license "GPL";
  7. author "andypugh";
  8. ;;
  9.  
  10. FUNCTION(_){
  11. *pin2 = pin1;
  12. }
  13.  
  14. EXTRA_SETUP(){
  15. int ret = hal_pin_u32_new("this_is-a_pin", HAL_OUT, &pin2, comp_id);
  16. return ret;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement