aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/SPI
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-18 18:38:08 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-03-18 18:38:08 +0000
commite7e79a6ccb4f3e320b2b8b7bad1b14d65218641d (patch)
treec75e12ddb0eca0006c37395667deff3f02816b8b /testhal/STM32/SPI
parent47326e33d39ac1086cd0c62a10b0a30428033335 (diff)
downloadChibiOS-e7e79a6ccb4f3e320b2b8b7bad1b14d65218641d.tar.gz
ChibiOS-e7e79a6ccb4f3e320b2b8b7bad1b14d65218641d.tar.bz2
ChibiOS-e7e79a6ccb4f3e320b2b8b7bad1b14d65218641d.zip
License updated.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2827 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'testhal/STM32/SPI')
-rw-r--r--testhal/STM32/SPI/ch.ld3
-rw-r--r--testhal/STM32/SPI/chconf.h3
-rw-r--r--testhal/STM32/SPI/halconf.h3
-rw-r--r--testhal/STM32/SPI/main.c11
-rw-r--r--testhal/STM32/SPI/mcuconf.h3
5 files changed, 14 insertions, 9 deletions
diff --git a/testhal/STM32/SPI/ch.ld b/testhal/STM32/SPI/ch.ld
index 44f494121..ae79ddd40 100644
--- a/testhal/STM32/SPI/ch.ld
+++ b/testhal/STM32/SPI/ch.ld
@@ -1,5 +1,6 @@
/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
diff --git a/testhal/STM32/SPI/chconf.h b/testhal/STM32/SPI/chconf.h
index 3353391ca..04fa822cc 100644
--- a/testhal/STM32/SPI/chconf.h
+++ b/testhal/STM32/SPI/chconf.h
@@ -1,5 +1,6 @@
/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
diff --git a/testhal/STM32/SPI/halconf.h b/testhal/STM32/SPI/halconf.h
index 33b2f5242..b5bf99b30 100644
--- a/testhal/STM32/SPI/halconf.h
+++ b/testhal/STM32/SPI/halconf.h
@@ -1,5 +1,6 @@
/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
diff --git a/testhal/STM32/SPI/main.c b/testhal/STM32/SPI/main.c
index e107cb7c7..e9807e93c 100644
--- a/testhal/STM32/SPI/main.c
+++ b/testhal/STM32/SPI/main.c
@@ -1,5 +1,6 @@
/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.
@@ -41,7 +42,7 @@ static const SPIConfig ls_spicfg = {
};
/*
- * SPI TX and RX buffers.
+ * SPI TX and RX buffers.
*/
static uint8_t txbuf[512];
static uint8_t rxbuf[512];
@@ -103,7 +104,7 @@ int main(void) {
chSysInit();
/*
- * SPI1 I/O pins setup.
+ * SPI1 I/O pins setup.
*/
palSetPadMode(IOPORT1, 5, PAL_MODE_STM32_ALTERNATE_PUSHPULL); /* SCK. */
palSetPadMode(IOPORT1, 6, PAL_MODE_STM32_ALTERNATE_PUSHPULL); /* MISO.*/
@@ -112,13 +113,13 @@ int main(void) {
palSetPad(IOPORT1, GPIOA_SPI1NSS);
/*
- * Prepare transmit pattern.
+ * Prepare transmit pattern.
*/
for (i = 0; i < sizeof(txbuf); i++)
txbuf[i] = (uint8_t)i;
/*
- * Starting the transmitter and receiver threads.
+ * Starting the transmitter and receiver threads.
*/
chThdCreateStatic(spi_thread_1_wa, sizeof(spi_thread_1_wa),
NORMALPRIO + 1, spi_thread_1, NULL);
diff --git a/testhal/STM32/SPI/mcuconf.h b/testhal/STM32/SPI/mcuconf.h
index c6eacdada..40e467270 100644
--- a/testhal/STM32/SPI/mcuconf.h
+++ b/testhal/STM32/SPI/mcuconf.h
@@ -1,5 +1,6 @@
/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
+ ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
+ 2011 Giovanni Di Sirio.
This file is part of ChibiOS/RT.