aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/ports/SAMA/LLD
diff options
context:
space:
mode:
authoredolomb <none@example.com>2018-02-16 17:02:37 +0000
committeredolomb <none@example.com>2018-02-16 17:02:37 +0000
commit379138ad577e0c585c9d9cd5f24fa4f7d4163bcd (patch)
treebc7c6e8fbf343d67f4642ea80f809fa6fbeccfc0 /os/hal/ports/SAMA/LLD
parent41cf2861afffb8cd2233addc2b2e0a363f999509 (diff)
downloadChibiOS-379138ad577e0c585c9d9cd5f24fa4f7d4163bcd.tar.gz
ChibiOS-379138ad577e0c585c9d9cd5f24fa4f7d4163bcd.tar.bz2
ChibiOS-379138ad577e0c585c9d9cd5f24fa4f7d4163bcd.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11500 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/ports/SAMA/LLD')
-rw-r--r--os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c b/os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c
index b5a890fea..6a8b5ec0f 100644
--- a/os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c
+++ b/os/hal/ports/SAMA/LLD/SPIv1/hal_spi_lld.c
@@ -130,7 +130,7 @@ static uint8_t dummyrx;
static void spi_lld_serve_rx_interrupt(SPIDriver *spip, uint32_t flags) {
/* DMA errors handling.*/
- #if defined(SAMA_SPI_DMA_ERROR_HOOK)
+#if defined(SAMA_SPI_DMA_ERROR_HOOK)
if ((flags & (XDMAC_CIS_RBEIS | XDMAC_CIS_ROIS)) != 0) {
SAMA_SPI_DMA_ERROR_HOOK(spip);
}
@@ -473,7 +473,7 @@ void spi_lld_start(SPIDriver *spip) {
(sama_dmaisr_t)spi_lld_serve_tx_interrupt,
(void *)spip);
osalDbgAssert(spip->dmatx != NULL, "no channel allocated");
- /* Enabling USART on FLEXCOM */
+ /* Enabling SPI on FLEXCOM */
spip->flexcom->FLEX_MR = FLEX_MR_OPMODE_SPI;
/* Enable FLEXCOM0 clock */
pmcEnableFLEXCOM0();
@@ -490,7 +490,7 @@ void spi_lld_start(SPIDriver *spip) {
(sama_dmaisr_t)spi_lld_serve_tx_interrupt,
(void *)spip);
osalDbgAssert(spip->dmatx != NULL, "no channel allocated");
- /* Enabling USART on FLEXCOM */
+ /* Enabling SPI on FLEXCOM */
spip->flexcom->FLEX_MR = FLEX_MR_OPMODE_SPI;
/* Enable FLEXCOM1 clock */
pmcEnableFLEXCOM1();
@@ -507,7 +507,7 @@ void spi_lld_start(SPIDriver *spip) {
(sama_dmaisr_t)spi_lld_serve_tx_interrupt,
(void *)spip);
osalDbgAssert(spip->dmatx != NULL, "no channel allocated");
- /* Enabling USART on FLEXCOM */
+ /* Enabling SPI on FLEXCOM */
spip->flexcom->FLEX_MR = FLEX_MR_OPMODE_SPI;
/* Enable FLEXCOM2 clock */
pmcEnableFLEXCOM2();
@@ -524,7 +524,7 @@ void spi_lld_start(SPIDriver *spip) {
(sama_dmaisr_t)spi_lld_serve_tx_interrupt,
(void *)spip);
osalDbgAssert(spip->dmatx != NULL, "no channel allocated");
- /* Enabling USART on FLEXCOM */
+ /* Enabling SPI on FLEXCOM */
spip->flexcom->FLEX_MR = FLEX_MR_OPMODE_SPI;
/* Enable FLEXCOM3 clock */
pmcEnableFLEXCOM3();
@@ -541,7 +541,7 @@ void spi_lld_start(SPIDriver *spip) {
(sama_dmaisr_t)spi_lld_serve_tx_interrupt,
(void *)spip);
osalDbgAssert(spip->dmatx != NULL, "no channel allocated");
- /* Enabling USART on FLEXCOM */
+ /* Enabling SPI on FLEXCOM */
spip->flexcom->FLEX_MR = FLEX_MR_OPMODE_SPI;
/* Enable FLEXCOM4 clock */
pmcEnableFLEXCOM4();