program for conv1, universal converter before including conv2 code
Fork of _8_CONV_1_SLAVE by
Revision 11:3f1020fcd090, committed 2016-01-08
- Comitter:
- marcus255
- Date:
- Fri Jan 08 13:47:03 2016 +0000
- Parent:
- 10:7eaae60dc9e4
- Commit message:
- Latest version
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
main.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 7eaae60dc9e4 -r 3f1020fcd090 main.cpp --- a/main.cpp Sat Jan 02 14:10:13 2016 +0000 +++ b/main.cpp Fri Jan 08 13:47:03 2016 +0000 @@ -1,7 +1,7 @@ /* * Project: I2C to UART converter -* File: main.cpp -* Author: Marek Trojan +* File: main.cpp +* Author: Marek Trojan */ #include "main.h" @@ -16,7 +16,7 @@ { char first_char = device.getc(); if (first_char == SET_CONV2_FUNCT) { - char slave_address = device.getc(); // not used at all, may be delete latar + char slave_address = device.getc(); // not used at all, may be delete later init_conv2(I2C_FREQUENCY_STANDARD); } else if (first_char == DATA_TO_WRITE_CHAR) { char received = device.getc();
diff -r 7eaae60dc9e4 -r 3f1020fcd090 main.h --- a/main.h Sat Jan 02 14:10:13 2016 +0000 +++ b/main.h Fri Jan 08 13:47:03 2016 +0000 @@ -1,7 +1,7 @@ /* * Project: I2C to UART converter -* File: main.h -* Author: Marek Trojan +* File: main.h +* Author: Marek Trojan */ #ifndef MAIN_H