2013-11-24 16:57:08 +01:00
|
|
|
#ifndef MODELS_H_
|
|
|
|
#define MODELS_H_
|
2009-09-08 22:06:28 +02:00
|
|
|
|
|
|
|
/* Define model text */
|
|
|
|
#ifdef MODEL_N100
|
2012-03-05 17:28:06 +01:00
|
|
|
#define SENSINODE_MODEL "N100 Module"
|
2009-09-08 22:06:28 +02:00
|
|
|
#endif
|
|
|
|
#ifdef MODEL_N600
|
2012-03-05 17:28:06 +01:00
|
|
|
#define SENSINODE_MODEL "N600 NanoRouter USB"
|
2009-09-08 22:06:28 +02:00
|
|
|
#endif
|
|
|
|
#ifdef MODEL_N601
|
2012-03-05 17:28:06 +01:00
|
|
|
#define SENSINODE_MODEL "N601 NanoRouter USB"
|
2009-09-08 22:06:28 +02:00
|
|
|
#endif
|
|
|
|
#ifdef MODEL_N710
|
2012-03-05 17:28:06 +01:00
|
|
|
#define SENSINODE_MODEL "N710 NanoSensor"
|
2009-09-08 22:06:28 +02:00
|
|
|
#endif
|
|
|
|
#ifdef MODEL_N711
|
2012-03-05 17:28:06 +01:00
|
|
|
#define SENSINODE_MODEL "N711 NanoSensor"
|
|
|
|
#endif
|
|
|
|
#ifdef MODEL_N740
|
|
|
|
#define SENSINODE_MODEL "N740 NanoSensor"
|
2009-09-08 22:06:28 +02:00
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SENSINODE_MODEL
|
2012-03-05 17:28:06 +01:00
|
|
|
#define SENSINODE_MODEL "N100 Module"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef FLASH_SIZE
|
|
|
|
#define FLASH_SIZE "F128"
|
2009-09-08 22:06:28 +02:00
|
|
|
#endif
|
|
|
|
|
2012-03-05 17:28:06 +01:00
|
|
|
/*
|
|
|
|
* N740 has a serial-parallel chip onboard
|
|
|
|
* Defines and functions to control it
|
|
|
|
*/
|
|
|
|
#ifdef MODEL_N740
|
|
|
|
#include "dev/n740.h"
|
|
|
|
|
|
|
|
#else
|
|
|
|
/* All other models use these LED pins */
|
2009-09-08 22:06:28 +02:00
|
|
|
#define LED1_PIN P0_4
|
|
|
|
#define LED2_PIN P0_5
|
2012-03-05 17:28:06 +01:00
|
|
|
#endif
|
2009-09-08 22:06:28 +02:00
|
|
|
|
|
|
|
#ifdef MODEL_N711
|
|
|
|
#define BUTTON1_PIN P0_6
|
|
|
|
#define BUTTON2_PIN P0_7
|
|
|
|
#endif
|
|
|
|
|
|
|
|
/* Sensor pins */
|
|
|
|
|
|
|
|
#ifdef MODEL_N711
|
|
|
|
#define LIGHT_PIN P0_0
|
|
|
|
#define TEMP_PIN P0_1
|
|
|
|
#endif
|
|
|
|
|
2012-03-05 17:28:06 +01:00
|
|
|
/* Model-Specific startup functions */
|
|
|
|
void model_init();
|
|
|
|
void model_uart_intr_en();
|
2013-11-24 16:57:08 +01:00
|
|
|
#endif /* MODELS_H_ */
|