Marek Trojan
/
_8_CONV_2_MASTER
program for conv2
Fork of I2C_HelloWorld_Mbed by
main.h
- Committer:
- marcus255
- Date:
- 2015-12-16
- Revision:
- 7:04a1f5398882
- Parent:
- 5:759439e9e976
File content as of revision 7:04a1f5398882:
#ifndef MAIN_H #define MAIN_H #include "mbed.h" #define SLAVE_ADDR 0xA0 #define RTC_ADDR 0xD0 #define UART_CONFIRMATION_CHAR 0x33 #define DATA_TO_WRITE_CHAR 0xCC #define DATA_TO_READ_CHAR 0x99 #define UART_NON_CONFIRMATION_CHAR 0xAA #define UART_CHAR_INCOMING 0x44 #define END_OF_TRANSMISSION 0x66 I2C i2c(PTB4, PTB3); Serial conv2(USBTX, USBRX); int writeByte(char fromUART); void onUartChar(void); int transmission; void init(void); #endif