Knud Dalgaard / 310-TMC3-TestHW

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers main.cpp Source File

main.cpp

00001 #include "mbed.h"
00002 #include "uart.h"
00003 #include "interpret.h"
00004 
00005 
00006 //----------------------------------------------
00007 // Info:
00008 // MCP23017 class is used from: Gobert Pierre, 13.04.2012
00009 //  
00010 //----------------------------------------------
00011 
00012 //----------------------------------------------
00013 // STATUS:
00014 // 2013-01-25:
00015 // - I2C communication with MCP23017 is running
00016 // - PT100, command 21 and 22 is working
00017 
00018 //---------------------------------------
00019 // Hardware recources
00020 //---------------------------------------
00021 DigitalOut myled(LED1);
00022 
00023 
00024 //---------------------------------------
00025 // Internal variables
00026 //---------------------------------------
00027 
00028 
00029 //---------------------------------------
00030 // External variables
00031 //---------------------------------------
00032 
00033 
00034 
00035 //---------------------------------------
00036 // Global Functions
00037 //---------------------------------------
00038 int main() {
00039 
00040     UART_init();
00041     INT_init();
00042  
00043     while(1) 
00044     {
00045         INT_poll();
00046 
00047     }//while
00048 }
00049 
00050 
00051 
00052 //---------------------------------------
00053 // Internal Functions
00054 //---------------------------------------