public inbox for ecos-patches@sourceware.org
 help / color / mirror / Atom feed
From: Simon Kallweit <simon.kallweit@intefo.ch>
To: ecos-patches@ecos.sourceware.org
Subject: STM32 SPI driver fix
Date: Mon, 24 Aug 2009 08:43:00 -0000	[thread overview]
Message-ID: <4A9252B1.1000205@intefo.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 148 bytes --]

This is a little fix for the STM32 SPI driver. It initializes 
spi_cr1_val with zero (as stated in the comments) and adds the testcase 
to the CDL.

[-- Attachment #2: spi_stm32_fix.patch --]
[-- Type: text/x-patch, Size: 1998 bytes --]

From: Simon Kallweit <simon.kallweit@intefo.ch>
Date: Mon, 24 Aug 2009 08:14:45 +0000 (+0200)
Subject: fixed a small bug and added testcases
X-Git-Url: http://git.inthemill.ch/?p=ecos.git;a=commitdiff_plain;h=d489213fe40325333ef88cd375535888b58c9407

fixed a small bug and added testcases
---

diff --git a/packages/devs/spi/cortexm/stm32/current/ChangeLog b/packages/devs/spi/cortexm/stm32/current/ChangeLog
index ecc4c15..96eed2c 100644
--- 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
diff --git a/packages/devs/spi/cortexm/stm32/current/cdl/spi_stm32.cdl b/packages/devs/spi/cortexm/stm32/current/cdl/spi_stm32.cdl
index 30015cf..51d5264 100644
--- 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_STM32_BUS3 {
     }
 }
 
+cdl_option CYGPKG_DEVS_SPI_CORTEXM_STM32_TESTS {
+    display         "SPI tests"
+    flavor          data
+    no_define
+    calculated      { "tests/loopback" } 
+}
+
 }
 # EOF spi_stm32.cdl
diff --git a/packages/devs/spi/cortexm/stm32/current/include/spi_stm32.h b/packages/devs/spi/cortexm/stm32/current/include/spi_stm32.h
index 21a04c0..a39c512 100644
--- 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_ ##_stm32 CYG_SPI_DEVICE_ON_BUS(_bus_) = {
   .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" )));
 

             reply	other threads:[~2009-08-24  8:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-24  8:43 Simon Kallweit [this message]
2009-08-26  9:45 ` Nick Garnett

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A9252B1.1000205@intefo.ch \
    --to=simon.kallweit@intefo.ch \
    --cc=ecos-patches@ecos.sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).