Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- component sim "just messing about";
- pin in u32 pin1;
- option extra_setup;
- function _;
- variable unsigned *pin2;
- license "GPL";
- author "andypugh";
- ;;
- FUNCTION(_){
- *pin2 = pin1;
- }
- EXTRA_SETUP(){
- int ret = hal_pin_u32_new("this_is-a_pin", HAL_OUT, &pin2, comp_id);
- return ret;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement