Contiki 2.6

models.h

00001 #ifndef __MODELS_H__
00002 #define __MODELS_H__
00003 
00004 /* Define model text */
00005 #ifdef MODEL_N100
00006 #define SENSINODE_MODEL "N100 Module"
00007 #endif
00008 #ifdef MODEL_N600
00009 #define SENSINODE_MODEL "N600 NanoRouter USB"
00010 #endif
00011 #ifdef MODEL_N601
00012 #define SENSINODE_MODEL "N601 NanoRouter USB"
00013 #endif
00014 #ifdef MODEL_N710
00015 #define SENSINODE_MODEL "N710 NanoSensor"
00016 #endif
00017 #ifdef MODEL_N711
00018 #define SENSINODE_MODEL "N711 NanoSensor"
00019 #endif
00020 #ifdef MODEL_N740
00021 #define SENSINODE_MODEL "N740 NanoSensor"
00022 #endif
00023 
00024 #ifndef SENSINODE_MODEL
00025 #define SENSINODE_MODEL "N100 Module"
00026 #endif
00027 
00028 #ifndef FLASH_SIZE
00029 #define FLASH_SIZE "F128"
00030 #endif
00031 
00032 /* 
00033  * N740 has a serial-parallel chip onboard
00034  * Defines and functions to control it
00035  */
00036 #ifdef MODEL_N740
00037 #include "dev/n740.h"
00038 
00039 #else
00040 /* All other models use these LED pins */
00041 #define LED1_PIN        P0_4
00042 #define LED2_PIN        P0_5
00043 #endif
00044 
00045 #ifdef MODEL_N711
00046 #define BUTTON1_PIN             P0_6
00047 #define BUTTON2_PIN             P0_7
00048 #endif
00049 
00050 /* Sensor pins */
00051 
00052 #ifdef MODEL_N711
00053 #define LIGHT_PIN               P0_0
00054 #define TEMP_PIN                P0_1
00055 #endif
00056 
00057 /* Model-Specific startup functions */
00058 void model_init();
00059 void model_uart_intr_en();
00060 #endif /* __MODELS_H__ */