Delete trailing whitespaces (arch/cpu/)
This commit is contained in:
parent
f254d22bf3
commit
3299780bbe
@ -55,7 +55,7 @@
|
|||||||
* - SPIX_FLUSH(x)
|
* - SPIX_FLUSH(x)
|
||||||
*
|
*
|
||||||
* Some of the old functions and macros are still supported.
|
* Some of the old functions and macros are still supported.
|
||||||
* When using these deprecated functions, the SSI module to use
|
* When using these deprecated functions, the SSI module to use
|
||||||
* has to be be selected by means of the macro SPI_CONF_DEFAULT_INSTANCE.
|
* has to be be selected by means of the macro SPI_CONF_DEFAULT_INSTANCE.
|
||||||
*
|
*
|
||||||
* This SPI driver depends on the following defines:
|
* This SPI driver depends on the following defines:
|
||||||
@ -95,14 +95,14 @@
|
|||||||
#endif
|
#endif
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/* Default values for the clock rate divider */
|
/* Default values for the clock rate divider */
|
||||||
#ifdef SPI0_CONF_CPRS_CPSDVSR
|
#ifdef SPI0_CONF_CPRS_CPSDVSR
|
||||||
#define SPI0_CPRS_CPSDVSR SPI0_CONF_CPRS_CPSDVSR
|
#define SPI0_CPRS_CPSDVSR SPI0_CONF_CPRS_CPSDVSR
|
||||||
#else
|
#else
|
||||||
#define SPI0_CPRS_CPSDVSR 2
|
#define SPI0_CPRS_CPSDVSR 2
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef SPI1_CONF_CPRS_CPSDVSR
|
#ifdef SPI1_CONF_CPRS_CPSDVSR
|
||||||
#define SPI1_CPRS_CPSDVSR SPI1_CONF_CPRS_CPSDVSR
|
#define SPI1_CPRS_CPSDVSR SPI1_CONF_CPRS_CPSDVSR
|
||||||
#else
|
#else
|
||||||
#define SPI1_CPRS_CPSDVSR 2
|
#define SPI1_CPRS_CPSDVSR 2
|
||||||
#endif
|
#endif
|
||||||
@ -120,7 +120,7 @@
|
|||||||
} while(0)
|
} while(0)
|
||||||
#define SPIX_FLUSH(spi) do { \
|
#define SPIX_FLUSH(spi) do { \
|
||||||
while(REG(SSI_BASE(spi) + SSI_SR) & SSI_SR_RNE) { \
|
while(REG(SSI_BASE(spi) + SSI_SR) & SSI_SR_RNE) { \
|
||||||
SPIX_BUF(spi); \
|
SPIX_BUF(spi); \
|
||||||
} \
|
} \
|
||||||
} while(0)
|
} while(0)
|
||||||
#define SPIX_CS_CLR(port, pin) do { \
|
#define SPIX_CS_CLR(port, pin) do { \
|
||||||
@ -144,7 +144,7 @@
|
|||||||
#endif
|
#endif
|
||||||
#define SPI_CS_CLR(port, pin) SPIX_CS_CLR(port, pin)
|
#define SPI_CS_CLR(port, pin) SPIX_CS_CLR(port, pin)
|
||||||
#define SPI_CS_SET(port, pin) SPIX_CS_SET(port, pin)
|
#define SPI_CS_SET(port, pin) SPIX_CS_SET(port, pin)
|
||||||
#endif /* #ifdef SPI_DEFAULT_INSTANCE */
|
#endif /* #ifdef SPI_DEFAULT_INSTANCE */
|
||||||
/*---------------------------------------------------------------------------*/
|
/*---------------------------------------------------------------------------*/
|
||||||
/** \name Arch-specific SPI functions
|
/** \name Arch-specific SPI functions
|
||||||
* @{
|
* @{
|
||||||
@ -183,7 +183,7 @@ void spix_disable(uint8_t spi);
|
|||||||
*
|
*
|
||||||
* See section 19.4.4 in the CC2538 user guide for more information.
|
* See section 19.4.4 in the CC2538 user guide for more information.
|
||||||
*
|
*
|
||||||
* \param spi The SSI instance to use.
|
* \param spi The SSI instance to use.
|
||||||
* \param frame_format Set the SSI frame format. Use SSI_CR0_FRF_MOTOROLA,
|
* \param frame_format Set the SSI frame format. Use SSI_CR0_FRF_MOTOROLA,
|
||||||
* SSI_CR0_FRF_TI, or SSI_CR0_FRF_MICROWIRE.
|
* SSI_CR0_FRF_TI, or SSI_CR0_FRF_MICROWIRE.
|
||||||
* \param clock_polarity In Motorola mode, set whether the clock is high or low
|
* \param clock_polarity In Motorola mode, set whether the clock is high or low
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2006, Swedish Institute of Computer Science
|
* Copyright (c) 2006, Swedish Institute of Computer Science
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* 3. Neither the name of the Institute nor the names of its contributors
|
* 3. Neither the name of the Institute nor the names of its contributors
|
||||||
* may be used to endorse or promote products derived from this software
|
* may be used to endorse or promote products derived from this software
|
||||||
* without specific prior written permission.
|
* without specific prior written permission.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -35,7 +35,7 @@
|
|||||||
* exclusive. Set spi_busy so that interrupt handlers can check if
|
* exclusive. Set spi_busy so that interrupt handlers can check if
|
||||||
* they are allowed to use the bus or not. Only the CC2420 radio needs
|
* they are allowed to use the bus or not. Only the CC2420 radio needs
|
||||||
* this in practice.
|
* this in practice.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
unsigned char spi_busy = 0;
|
unsigned char spi_busy = 0;
|
||||||
|
|
||||||
|
@ -1,30 +1,30 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (c) 2007, Swedish Institute of Computer Science
|
* Copyright (c) 2007, Swedish Institute of Computer Science
|
||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
*
|
*
|
||||||
* Redistribution and use in source and binary forms, with or without
|
* Redistribution and use in source and binary forms, with or without
|
||||||
* modification, are permitted provided that the following conditions
|
* modification, are permitted provided that the following conditions
|
||||||
* are met:
|
* are met:
|
||||||
* 1. Redistributions of source code must retain the above copyright
|
* 1. Redistributions of source code must retain the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer.
|
* notice, this list of conditions and the following disclaimer.
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright
|
* 2. Redistributions in binary form must reproduce the above copyright
|
||||||
* notice, this list of conditions and the following disclaimer in the
|
* notice, this list of conditions and the following disclaimer in the
|
||||||
* documentation and/or other materials provided with the distribution.
|
* documentation and/or other materials provided with the distribution.
|
||||||
* 3. Neither the name of the Institute nor the names of its contributors
|
* 3. Neither the name of the Institute nor the names of its contributors
|
||||||
* may be used to endorse or promote products derived from this software
|
* may be used to endorse or promote products derived from this software
|
||||||
* without specific prior written permission.
|
* without specific prior written permission.
|
||||||
*
|
*
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
|
||||||
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
||||||
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
||||||
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
||||||
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
||||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
* SUCH DAMAGE.
|
* SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MSP430_DEF_H_
|
#ifndef MSP430_DEF_H_
|
||||||
|
Loading…
Reference in New Issue
Block a user