2006-06-18 00:41:10 +02:00
|
|
|
#ifndef __CONTIKI_CONF_H__
|
|
|
|
#define __CONTIKI_CONF_H__
|
|
|
|
|
2007-08-16 15:35:33 +02:00
|
|
|
#define HAVE_STDINT_H
|
|
|
|
#include <msp430def.h>
|
|
|
|
|
2007-05-22 23:06:30 +02:00
|
|
|
#define QUEUEBUF_CONF_NUM 2
|
|
|
|
#define ENERGEST_CONF_ON 1
|
|
|
|
|
2007-03-15 22:52:44 +01:00
|
|
|
#define IRQ_PORT1_VECTOR 1
|
|
|
|
|
2006-06-18 00:41:10 +02:00
|
|
|
#define IRQ_PORT1 0x01
|
|
|
|
#define IRQ_PORT2 0x02
|
|
|
|
#define IRQ_ADC 0x03
|
|
|
|
|
2006-10-06 09:58:39 +02:00
|
|
|
#define NODE_ID_EEPROM_OFFSET 0x0010 /* - 0x0014 */
|
|
|
|
#define CFS_EEPROM_CONF_OFFSET 0x0040
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
#define CC_CONF_REGISTER_ARGS 1
|
|
|
|
#define CC_CONF_FUNCTION_POINTER_ARGS 1
|
|
|
|
|
|
|
|
#define CC_CONF_INLINE inline
|
|
|
|
|
|
|
|
#define CC_CONF_VA_ARGS 1
|
|
|
|
|
2006-08-15 16:46:33 +02:00
|
|
|
#define CCIF
|
|
|
|
#define CLIF
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
typedef unsigned short clock_time_t;
|
2006-10-06 09:58:39 +02:00
|
|
|
#define CLOCK_CONF_SECOND 100
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
void clock_delay(unsigned int us2);
|
|
|
|
|
|
|
|
void clock_wait(int ms10);
|
|
|
|
|
|
|
|
void clock_set_seconds(unsigned long s);
|
|
|
|
unsigned long clock_seconds(void);
|
|
|
|
|
|
|
|
#include "ctk/ctk-vncarch.h"
|
|
|
|
|
|
|
|
#define LOG_CONF_ENABLED 0
|
|
|
|
|
|
|
|
/**
|
|
|
|
* The statistics data type.
|
|
|
|
*
|
|
|
|
* This datatype determines how high the statistics counters are able
|
|
|
|
* to count.
|
|
|
|
*/
|
|
|
|
typedef unsigned short uip_stats_t;
|
|
|
|
|
|
|
|
|
|
|
|
#define UIP_CONF_MAX_CONNECTIONS 4
|
|
|
|
#define UIP_CONF_MAX_LISTENPORTS 8
|
|
|
|
#define UIP_CONF_BUFFER_SIZE 140
|
2006-06-18 10:15:26 +02:00
|
|
|
/*#define UIP_CONF_RECEIVE_WINDOW 140*/
|
2006-06-18 00:41:10 +02:00
|
|
|
|
|
|
|
#define UIP_CONF_LLH_LEN 6
|
|
|
|
|
|
|
|
#define UIP_CONF_RESOLV_ENTRIES 1
|
|
|
|
|
|
|
|
#define UIP_CONF_PINGADDRCONF 1
|
|
|
|
|
|
|
|
#define UIP_CONF_LOGGING 0
|
|
|
|
|
|
|
|
#define UIP_CONF_UDP_CONNS 6
|
|
|
|
|
|
|
|
#define UIP_CONF_FWCACHE_SIZE 1
|
|
|
|
|
|
|
|
#define UIP_CONF_BROADCAST 1
|
|
|
|
|
|
|
|
#define LOADER_CONF_ARCH "loader/loader-arch.h"
|
|
|
|
|
|
|
|
#define ELFLOADER_CONF_DATAMEMORY_SIZE 100
|
|
|
|
#define ELFLOADER_CONF_TEXTMEMORY_SIZE 0x1000
|
|
|
|
|
|
|
|
/* LEDs ports. */
|
|
|
|
#define LEDS_PxDIR P2DIR
|
|
|
|
#define LEDS_PxOUT P2OUT
|
|
|
|
#define LEDS_CONF_RED 0x01
|
|
|
|
#define LEDS_CONF_GREEN 0x02
|
|
|
|
#define LEDS_CONF_YELLOW 0x04
|
|
|
|
|
|
|
|
#endif /* __CONTIKI_CONF_H__ */
|