Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void setCLK()
- {
- //code to set the clock
- }
- void setConfig()
- {
- //code to set the config
- }
- void setSomethingElse()
- {
- //1 line code to write something to a register.
- }
- void initModule()
- {
- setCLK();
- setConfig();
- setSomethingElse();
- }
- function_used_just_once{
- code blah blah;
- }
- main{
- codeblah;
- function_used_just_once();
- code blah blah blah;
- {
- main{
- code blah;
- code blah blah;
- code blah blah blah;
- }
Add Comment
Please, Sign In to add comment