changeset 2914:8a0adc7bf4be

* cdl/spi_stm32.cdl: added testcase. * include/spi_stm32.h: initializing spi_cr1_val with zero.
author nickg
date Wed, 26 Aug 2009 09:45:18 +0000
parents c7609c2784f3
children 0477af657b66
files packages/devs/spi/cortexm/stm32/current/ChangeLog packages/devs/spi/cortexm/stm32/current/cdl/spi_stm32.cdl packages/devs/spi/cortexm/stm32/current/include/spi_stm32.h
diffstat 3 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/packages/devs/spi/cortexm/stm32/current/ChangeLog
+++ b/packages/devs/spi/cortexm/stm32/current/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-24  Simon Kallweit  <simon.kallweit@intefo.ch>
+
+	* cdl/spi_stm32.cdl: added testcase.
+	* include/spi_stm32.h: initializing spi_cr1_val with zero.
+
 2009-02-10  Bart Veer  <bartv@ecoscentric.com>
 
 	* src/spi_stm32.c (cyg_spi_cortexm_stm32_init): mark as
--- a/packages/devs/spi/cortexm/stm32/current/cdl/spi_stm32.cdl
+++ b/packages/devs/spi/cortexm/stm32/current/cdl/spi_stm32.cdl
@@ -219,5 +219,12 @@ cdl_component CYGHWR_DEVS_SPI_CORTEXM_ST
     }
 }
 
+cdl_option CYGPKG_DEVS_SPI_CORTEXM_STM32_TESTS {
+    display         "SPI tests"
+    flavor          data
+    no_define
+    calculated      { "tests/loopback" } 
+}
+
 }
 # EOF spi_stm32.cdl
--- a/packages/devs/spi/cortexm/stm32/current/include/spi_stm32.h
+++ b/packages/devs/spi/cortexm/stm32/current/include/spi_stm32.h
@@ -93,6 +93,7 @@ cyg_spi_cortexm_stm32_device_t _name_ ##
   .cs_up_udly = _csup_dly_, \
   .cs_dw_udly = _csdw_dly_, \
   .tr_bt_udly = _trbt_dly_, \
+  .spi_cr1_val = 0, \
 }; \
 extern cyg_spi_device _name_ __attribute__((alias ( #_name_ "_stm32" )));