Kazuki Yamamoto / Mbed 2 deprecated uart_i2c_conv

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers tinyI2C_11U3x.h Source File

tinyI2C_11U3x.h

00001 /*
00002 tinyI2C_11U3x.h
00003 */
00004 
00005 static const uint8_t chip_id = ID_LPC11UXX;
00006 
00007 #define isI2C1  // unused(always enabled)
00008 I2C dev1( P0_5, P0_4 );
00009 
00010 
00011 #undef isI2C2
00012 #undef isI2C3
00013 #undef isI2C4
00014 
00015 #undef isUART
00016 #define isUSBUART
00017 
00018 #include "USBSerial.h"
00019 USBSerial pc;
00020 
00021 #define isHWSPI
00022 #undef isSWSPI
00023 SPI _spi(P0_9, P0_8, P0_10); // mosi, miso, sclk
00024 DigitalOut _cs(P0_7); // CS
00025 
00026 #define isGPIO0 // unused(always enabled)
00027 DigitalInOut _GPIO00(P0_22);
00028 DigitalInOut _GPIO01(P0_11);
00029 DigitalInOut _GPIO02(P0_12);
00030 DigitalInOut _GPIO03(P0_13);
00031 DigitalInOut _GPIO04(P0_14);
00032 DigitalInOut _GPIO05(P0_15);
00033 DigitalInOut _GPIO06(P0_16);
00034 DigitalInOut _GPIO07(P0_23);
00035 
00036 #define isGPIO1
00037 DigitalInOut _GPIO10(P1_15);
00038 DigitalInOut _GPIO11(P0_17);
00039 DigitalInOut _GPIO12(P0_18);
00040 DigitalInOut _GPIO13(P0_19);
00041 DigitalInOut _GPIO14(P1_19);
00042 DigitalInOut _GPIO15(P0_20);
00043 DigitalInOut _GPIO16(P0_2 );
00044 DigitalInOut _GPIO17(P0_21);