Guest User

Untitled

a guest
Jul 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. void setCLK()
  2. {
  3. //code to set the clock
  4. }
  5.  
  6. void setConfig()
  7. {
  8. //code to set the config
  9. }
  10.  
  11. void setSomethingElse()
  12. {
  13. //1 line code to write something to a register.
  14. }
  15.  
  16. void initModule()
  17. {
  18. setCLK();
  19. setConfig();
  20. setSomethingElse();
  21. }
  22.  
  23. function_used_just_once{
  24. code blah blah;
  25. }
  26. main{
  27. codeblah;
  28. function_used_just_once();
  29. code blah blah blah;
  30. {
  31.  
  32. main{
  33. code blah;
  34. code blah blah;
  35. code blah blah blah;
  36. }
Add Comment
Please, Sign In to add comment