Skip to content

Commit

Permalink
Cosmetic stuff.
Browse files Browse the repository at this point in the history
  • Loading branch information
mlechon committed Dec 3, 2009
1 parent d818edb commit e5784c3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
*.swp
kk*
*.pyc
*.elf
*.hex
4 changes: 0 additions & 4 deletions cyrano.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ void write_word(uint value){
Serial.write((uchar)(value%256));
}

uint call(uint cmd, uint args[3]){
return (functions[cmd])(args[0], args[1], args[2]);
}

int main(void) {
init();
Serial.begin(115200);
Expand Down
4 changes: 4 additions & 0 deletions ops.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,8 @@ int n_args[] = {
/*pin_mode*/ 2, /*digital_read*/ 1, /*digital_write*/ 2
};

inline uint call(uint cmd, uint args[3]){
return (functions[cmd])(args[0], args[1], args[2]);
}

#endif // _OPS_H

0 comments on commit e5784c3

Please sign in to comment.