aboutsummaryrefslogtreecommitdiffstats
path: root/testhal/STM32/SPI/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testhal/STM32/SPI/main.c')
-rw-r--r--testhal/STM32/SPI/main.c11
1 files changed, 6 insertions, 5 deletions
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);