mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 07:21:18 +01:00
Make UART0_BUFSIZE configurable by CPU
This commit is contained in:
parent
885798aaca
commit
69809928d3
@ -1,8 +1,6 @@
|
||||
#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);
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
#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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user