Allow overriding common example configuration

This commit is contained in:
George Oikonomou 2017-10-08 15:43:50 +01:00
parent 8e8101728c
commit 2f8779471b
6 changed files with 13 additions and 10 deletions

View File

@ -49,7 +49,9 @@
#define UIP_CONF_BUFFER_SIZE 1280 /* ipv6 required minimum */
/* Queues */
#ifndef QUEUEBUF_CONF_NUM
#define QUEUEBUF_CONF_NUM 32
#endif
#define TSCH_QUEUE_CONF_NUM_PER_NEIGHBOR 32
@ -67,6 +69,8 @@
#define UART_XONXOFF_FLOW_CTRL 1
#ifndef UART_BAUD_RATE
#define UART_BAUD_RATE UART_RATE_1000000
#endif
#endif /* __COMMON_CONF_JN516X_H__ */

View File

@ -35,9 +35,9 @@
#ifndef __PROJECT_CONF_H__
#define __PROJECT_CONF_H__
#include "../../common-conf.h"
#define UIP_CONF_TCP 0
#define UART_BAUD_RATE UART_RATE_115200
#include "../../common-conf.h"
#endif /* __PROJECT_CONF_H__ */

View File

@ -40,9 +40,8 @@
/* Needed for slip-bridge */
#define SLIP_BRIDGE_CONF_NO_PUTCHAR 0
#include "../../common-conf.h"
#define UART_BAUD_RATE UART_RATE_230400
#include "../../common-conf.h"
#endif /* PROJECT_ROUTER_CONF_H_ */

View File

@ -34,9 +34,9 @@
#ifndef __PROJECT_CONF_H__
#define __PROJECT_CONF_H__
#include "../../common-conf.h"
#define UIP_CONF_TCP 0
#define UART_BAUD_RATE UART_RATE_115200
#include "../../common-conf.h"
#endif /* __PROJECT_CONF_H__ */

View File

@ -38,11 +38,11 @@
/* Needed for slip-bridge */
#define SLIP_BRIDGE_CONF_NO_PUTCHAR 0
#include "../../common-conf.h"
#define UIP_CONF_TCP 0
#define QUEUEBUF_CONF_NUM 16
#define TSCH_QUEUE_CONF_MAX_NEIGHBOR_QUEUES 8
#include "../../common-conf.h"
#endif /* PROJECT_ROUTER_CONF_H_ */

View File

@ -34,8 +34,6 @@
#ifndef __PROJECT_CONF_H__
#define __PROJECT_CONF_H__
#include "../common-conf.h"
#define UIP_CONF_TCP 0
#define UART_BAUD_RATE UART_RATE_115200
@ -46,4 +44,6 @@
#define UART1_CONF_RX_BUFFER_SIZE 32
#include "../common-conf.h"
#endif /* __PROJECT_CONF_H__ */