aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/STM8/spi_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-17 13:56:04 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2010-11-17 13:56:04 +0000
commit605283dd163861b9ecc0a02f235007214c0c8064 (patch)
tree68899dd38decfa6091b7a28d11a5b32c82085168 /os/hal/platforms/STM8/spi_lld.c
parente490b05b935466ec32d30e2ef2726f0098eb31e1 (diff)
downloadChibiOS-605283dd163861b9ecc0a02f235007214c0c8064.tar.gz
ChibiOS-605283dd163861b9ecc0a02f235007214c0c8064.tar.bz2
ChibiOS-605283dd163861b9ecc0a02f235007214c0c8064.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2379 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/platforms/STM8/spi_lld.c')
-rw-r--r--os/hal/platforms/STM8/spi_lld.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/os/hal/platforms/STM8/spi_lld.c b/os/hal/platforms/STM8/spi_lld.c
index 4accd6cd0..c950f0bd4 100644
--- a/os/hal/platforms/STM8/spi_lld.c
+++ b/os/hal/platforms/STM8/spi_lld.c
@@ -18,8 +18,8 @@
*/
/**
- * @file STM8/spi_lld.c
- * @brief STM8 low level SPI driver code.
+ * @file STM8S/spi_lld.c
+ * @brief STM8S low level SPI driver code.
*
* @addtogroup SPI
* @{
@@ -34,7 +34,7 @@
/* Driver exported variables. */
/*===========================================================================*/
-#if STM8_SPI_USE_SPI || defined(__DOXYGEN__)
+#if STM8S_SPI_USE_SPI || defined(__DOXYGEN__)
/** @brief SPI1 driver identifier.*/
SPIDriver SPID1;
#endif
@@ -51,7 +51,7 @@ SPIDriver SPID1;
/* Driver interrupt handlers. */
/*===========================================================================*/
-#if STM8_SPI_USE_SPI || defined(__DOXYGEN__)
+#if STM8S_SPI_USE_SPI || defined(__DOXYGEN__)
/**
* @brief IRQ 10 service routine.
*
@@ -64,7 +64,7 @@ CH_IRQ_HANDLER(10) {
if ((SPI->SR & SPI_SR_OVR) != 0) {
/* The overflow condition should never happen because priority is given
to receive but a hook macro is provided anyway...*/
- STM8_SPI_ERROR_HOOK(&SPID1);
+ STM8S_SPI_ERROR_HOOK(&SPID1);
}
/* Handling the DR register like it is a FIFO with depth>1 in order to
handle the case where a frame arrives immediately after reading the
@@ -111,9 +111,9 @@ exit_isr:
*/
void spi_lld_init(void) {
-#if STM8_SPI_USE_SPI
+#if STM8S_SPI_USE_SPI
spiObjectInit(&SPID1);
-#endif /* STM8_SPI_USE_SPI */
+#endif /* STM8S_SPI_USE_SPI */
}
/**