![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Project to practice collaboration and header files
HostIO.cpp@3:6e8bf95e144d, 2016-01-11 (annotated)
- Committer:
- burritodude
- Date:
- Mon Jan 11 18:53:01 2016 +0000
- Revision:
- 3:6e8bf95e144d
Full main with HostIO cpp and h files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
burritodude | 3:6e8bf95e144d | 1 | #include "HostIO.h" |
burritodude | 3:6e8bf95e144d | 2 | Serial pc(USBTX,USBRX); |
burritodude | 3:6e8bf95e144d | 3 | |
burritodude | 3:6e8bf95e144d | 4 | void HostInit(void){ |
burritodude | 3:6e8bf95e144d | 5 | pc.printf("\n\rType two idgit numbers to be \n\r"); |
burritodude | 3:6e8bf95e144d | 6 | } |
burritodude | 3:6e8bf95e144d | 7 | |
burritodude | 3:6e8bf95e144d | 8 | char GetKeyInput(void){ |
burritodude | 3:6e8bf95e144d | 9 | char c = pc.getc(); |
burritodude | 3:6e8bf95e144d | 10 | pc.printf("%c",c); |
burritodude | 3:6e8bf95e144d | 11 | return(c&0x0F); |
burritodude | 3:6e8bf95e144d | 12 | } |