Skip to content
Snippets Groups Projects
Commit 69809928 authored by Martine Lenders's avatar Martine Lenders
Browse files

Make UART0_BUFSIZE configurable by CPU

parent 885798aa
No related branches found
No related tags found
No related merge requests found
#ifndef __UART0_H
#define __UART0_H
#define UART0_BUFSIZE 32
extern int uart0_handler_pid;
#endif /* __UART0_H */
......@@ -75,5 +75,10 @@ See the file LICENSE in the top level directory for more details.
#define TRANSCEIVER_BUFFER_SIZE (10)
#define RX_BUF_SIZE (10)
#ifndef UART0_BUFSIZE
#define UART0_BUFSIZE (128)
#endif
/** @} */
#endif /* CPUCONF_H_ */
......@@ -59,5 +59,9 @@
#define TRANSCEIVER_BUFFER_SIZE (10)
#define RX_BUF_SIZE (10)
#ifndef UART0_BUFSIZE
#define UART0_BUFSIZE (64)
#endif
/** @} */
#endif /* CPUCONF_H_ */
......@@ -28,6 +28,10 @@ See the file LICENSE in the top level directory for more details.
#define RX_BUF_SIZE (3)
#define TRANSCEIVER_BUFFER_SIZE (3)
#ifndef UART0_BUFSIZE
#define UART0_BUFSIZE (32)
#endif
/** @} */
#endif /* CPUCONF_H_ */
......@@ -48,6 +48,11 @@
#define NATIVE_ISR_STACKSIZE (8192)
#endif /* OS */
#ifdef UART0_BUFSIZE
#undef UART0_BUFSIZE
#endif
#define UART0_BUFSIZE (128)
/* for nativenet */
#define NATIVE_ETH_PROTO 0x1234
......
......@@ -12,6 +12,8 @@
#ifndef __BOARD_UART0_H
#define __BOARD_UART0_H
#include "cpu-conf.h" /* To give user access to UART0_BUFSIZE */
extern int uart0_handler_pid;
void board_uart0_init(void);
......
#include <stdio.h>
#include "cpu-conf.h"
#include "chardev_thread.h"
#include "ringbuffer.h"
#include "thread.h"
......@@ -9,7 +10,10 @@
#include "board_uart0.h"
#define UART0_BUFSIZE (32)
#ifndef UART0_BUFSIZE
#define UART0_BUFSIZE (128)
#endif
#define UART0_STACKSIZE (MINIMUM_STACK_SIZE + 256)
ringbuffer_t uart0_ringbuffer;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment