From: marco Date: Wed, 20 Sep 2006 13:54:40 +0000 (+0000) Subject: Added new SPI definitions. X-Git-Tag: 1.0.0~539 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=aebe9178597d94c5224d8150bb97f006310e21bc;p=bertos.git Added new SPI definitions. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@702 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/app/triface/appconfig.h b/app/triface/appconfig.h index 06f3030a..fc0253ba 100755 --- a/app/triface/appconfig.h +++ b/app/triface/appconfig.h @@ -46,6 +46,9 @@ /*#* *#* $Log$ + *#* Revision 1.5 2006/09/20 13:54:40 marco + *#* Added new SPI definitions. + *#* *#* Revision 1.4 2006/07/19 12:56:25 bernie *#* Convert to new Doxygen style. *#* @@ -110,6 +113,18 @@ /** [bytes] Size of the inbound FIFO buffer for SPI port (AVR only). */ #define CONFIG_SPI_RXBUFSIZE 32 + /** SPI data order (AVR only). */ + #define CONFIG_SPI_DATA_ORDER SER_MSB_FIRST + + /** SPI clock division factor (AVR only). */ + #define CONFIG_SPI_CLOCK_DIV 16 + + /** SPI clock polarity: 0 = normal low, 1 = normal high (AVR only). */ + #define CONFIG_SPI_CLOCK_POL 0 + + /** SPI clock phase: 0 = sample on first edge, 1 = sample on second clock edge (AVR only). */ + #define CONFIG_SPI_CLOCK_PHASE 0 + /** Default transmit timeout (ms). Set to -1 to disable timeout support */ #define CONFIG_SER_TXTIMEOUT -1