program for conv2

Dependencies:   mbed

Fork of I2C_HelloWorld_Mbed by mbed official

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.h Source File

main.h

00001 #ifndef MAIN_H
00002 #define MAIN_H
00003 
00004 #include "mbed.h"
00005 #define SLAVE_ADDR 0xA0
00006 #define RTC_ADDR 0xD0
00007 #define UART_CONFIRMATION_CHAR 0x33
00008 #define DATA_TO_WRITE_CHAR 0xCC
00009 #define DATA_TO_READ_CHAR 0x99
00010 #define UART_NON_CONFIRMATION_CHAR 0xAA
00011 #define UART_CHAR_INCOMING 0x44
00012 #define END_OF_TRANSMISSION 0x66
00013 
00014 I2C i2c(PTB4, PTB3);
00015 Serial conv2(USBTX, USBRX);
00016 int writeByte(char fromUART);
00017 void onUartChar(void);
00018 int transmission;
00019 void init(void);
00020 
00021 #endif
00022 
00023