X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=appconfig_common.h;h=746ff1a64d07ca6d0869195836a121a44b0c344f;hb=faed9d33b0a6bd6c2376e313fa3b73512c545caa;hp=1de9d7f44d8c6e521fe92eabfe62b15eda8d8ba2;hpb=5500ff2868c8958644dbde966fcdf5493c8ce497;p=bertos.git diff --git a/appconfig_common.h b/appconfig_common.h index 1de9d7f4..746ff1a6 100644 --- a/appconfig_common.h +++ b/appconfig_common.h @@ -72,6 +72,9 @@ #ifndef APPCONFIG_COMMON_H #define APPCONFIG_COMMON_H +/** kdebug console */ +#define CONFIG_KDEBUG_PORT 0 + /** Baud-rate for the kdebug console */ #define CONFIG_KDEBUG_BAUDRATE 19200 @@ -107,13 +110,19 @@ #define CONFIG_UART1_TXBUFSIZE 32 /** [bytes] Size of the inbound FIFO buffer for port 1. */ - #define CONFIG_UART1_RXBUFSIZE 64 + #define CONFIG_UART1_RXBUFSIZE CONFIG_PROTOCOL_BUFLEN + + /** [bytes] Size of the outbound FIFO buffer for SPI port 0. */ + #define CONFIG_SPI0_TXBUFSIZE 16 - /** [bytes] Size of the outbound FIFO buffer for SPI port (AVR only). */ - #define CONFIG_SPI_TXBUFSIZE 16 + /** [bytes] Size of the inbound FIFO buffer for SPI port 0. */ + #define CONFIG_SPI0_RXBUFSIZE 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 1. */ + #define CONFIG_SPI1_TXBUFSIZE 16 + + /** [bytes] Size of the inbound FIFO buffer for SPI port 1. */ + #define CONFIG_SPI1_RXBUFSIZE 32 /** SPI data order (AVR only). */ #define CONFIG_SPI_DATA_ORDER SER_MSB_FIRST @@ -220,4 +229,17 @@ /// Turn on or off timer support in Randpool. #define CONFIG_RANDPOOL_TIMER 1 +/** + * ADC timing setting parameter + * + * - CONFIG_ADC_CLOCK is frequency clock for ADC conversion. + * - CONFIG_ADC_STARTUP_TIME minimum time for startup a conversion in micro second. + * - CONFIG_ADC_SHTIME minimum time for sample and hold in nano second. + * \{ + */ +#define CONFIG_ADC_CLOCK 4800000UL +#define CONFIG_ADC_STARTUP_TIME 20 +#define CONFIG_ADC_SHTIME 834 +/* \} */ + #endif /* APPCONFIG_H */