X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcfg%2Fcfg_ser.h;h=d164700679b4f449e3173a8f78f4e3dc81f69af6;hb=4cc44c9888a0336b9d01121ec0b7ad95f4a76195;hp=5d5f0ffce0da726e4c8752043936d6f99e3b3f46;hpb=e0960b1b787503b712e42776f980d792836992fd;p=bertos.git diff --git a/bertos/cfg/cfg_ser.h b/bertos/cfg/cfg_ser.h index 5d5f0ffc..d1647006 100644 --- a/bertos/cfg/cfg_ser.h +++ b/bertos/cfg/cfg_ser.h @@ -40,6 +40,19 @@ #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 @@ -53,6 +66,13 @@ /// [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