Rename myself
[bertos.git] / bertos / cfg / cfg_ser.h
index 5d5f0ffce0da726e4c8752043936d6f99e3b3f46..d164700679b4f449e3173a8f78f4e3dc81f69af6 100644 (file)
 #ifndef CFG_SER_H
 #define CFG_SER_H
 
+/**
+ * Example of setting for serial port and
+ * spi port.
+ * Edit these define for your project.
+ */
+/// Serial settings
+#define CONFIG_SER_PORT              0
+#define CONFIG_SER_BAUDRATE     115200
+
+/// Spi settings
+#define CONFIG_SPI_PORT               0
+#define CONFIG_SPI_BAUDRATE     5000000UL
+
 
 /// [bytes] Size of the outbound FIFO buffer for port 0. 
 #define CONFIG_UART0_TXBUFSIZE  32
 /// [bytes] Size of the inbound FIFO buffer for port 1. 
 #define CONFIG_UART1_RXBUFSIZE  32
 
+
+/// [bytes] Size of the outbound FIFO buffer for SPI port (AVR only) 
+#define CONFIG_SPI_TXBUFSIZE    32
+
+/// [bytes] Size of the inbound FIFO buffer for SPI port (AVR only) 
+#define CONFIG_SPI_RXBUFSIZE    32
+
 /// [bytes] Size of the outbound FIFO buffer for SPI port 0. 
 #define CONFIG_SPI0_TXBUFSIZE  32