aboutsummaryrefslogtreecommitdiffstats
path: root/os
diff options
context:
space:
mode:
authortheshed <theshed@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-08 21:16:36 +0000
committertheshed <theshed@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-04-08 21:16:36 +0000
commit53c164a93bc23f84d0a31ce4ddd850b5408c1a93 (patch)
tree55722976e38aa05ed7581a133423ea43d6ab5d06 /os
parentf2e40f1ace6b9539187bd0e2a98a50e0d863e87b (diff)
downloadChibiOS-53c164a93bc23f84d0a31ce4ddd850b5408c1a93.tar.gz
ChibiOS-53c164a93bc23f84d0a31ce4ddd850b5408c1a93.tar.bz2
ChibiOS-53c164a93bc23f84d0a31ce4ddd850b5408c1a93.zip
remove trailing whitespace
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5575 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os')
-rw-r--r--os/hal/platforms/LPC8xx/ext_lld.c6
-rw-r--r--os/hal/platforms/LPC8xx/ext_lld_isr.c2
-rw-r--r--os/hal/platforms/LPC8xx/gpt_lld.c8
-rw-r--r--os/hal/platforms/LPC8xx/hal_lld.c3
-rw-r--r--os/hal/platforms/LPC8xx/pal_lld.c4
-rw-r--r--os/hal/platforms/LPC8xx/serial_lld.c10
-rw-r--r--os/hal/platforms/LPC8xx/spi_lld.c6
7 files changed, 19 insertions, 20 deletions
diff --git a/os/hal/platforms/LPC8xx/ext_lld.c b/os/hal/platforms/LPC8xx/ext_lld.c
index b7e701c04..81e09c717 100644
--- a/os/hal/platforms/LPC8xx/ext_lld.c
+++ b/os/hal/platforms/LPC8xx/ext_lld.c
@@ -124,13 +124,13 @@ void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) {
/* program the IOpin for this channel */
LPC_SYSCON->PINTSEL[channel] = extp->config->channels[channel].iopin;
-
+
/* Programming edge irq enables */
if (extp->config->channels[channel].mode & EXT_CH_MODE_RISING_EDGE)
LPC_PIN_INT->SIENR = (1 << channel);
else
LPC_PIN_INT->CIENR = (1 << channel);
-
+
if (extp->config->channels[channel].mode & EXT_CH_MODE_FALLING_EDGE)
LPC_PIN_INT->SIENF = (1 << channel);
else
@@ -139,7 +139,7 @@ void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) {
LPC_PIN_INT->RISE = (1<<channel);
LPC_PIN_INT->FALL = (1<<channel);
LPC_PIN_INT->IST = (1<<channel);
-
+
ext_lld_exti_irq_enable( channel );
}
diff --git a/os/hal/platforms/LPC8xx/ext_lld_isr.c b/os/hal/platforms/LPC8xx/ext_lld_isr.c
index 2797e89be..312d61f9f 100644
--- a/os/hal/platforms/LPC8xx/ext_lld_isr.c
+++ b/os/hal/platforms/LPC8xx/ext_lld_isr.c
@@ -50,7 +50,7 @@
/*===========================================================================*/
static void ext_lld_interrupt( uint32_t n ) {
uint32_t reason;
-
+
reason = ((LPC_PIN_INT->RISE)>> n ) & 0x01;
reason |= ((LPC_PIN_INT->FALL)>>(n-1)) & 0x02;
LPC_PIN_INT->RISE = (1<<n);
diff --git a/os/hal/platforms/LPC8xx/gpt_lld.c b/os/hal/platforms/LPC8xx/gpt_lld.c
index 94ff38d69..44601272b 100644
--- a/os/hal/platforms/LPC8xx/gpt_lld.c
+++ b/os/hal/platforms/LPC8xx/gpt_lld.c
@@ -171,7 +171,7 @@ void gpt_lld_init(void) {
void gpt_lld_start(GPTDriver *gptp) {
if( !clk_enabled ) {
-
+
/* Enable clock & reset MRT */
LPC_SYSCON->SYSAHBCLKCTRL |= (1<<10);
LPC_SYSCON->PRESETCTRL &= ~(1<<7);
@@ -179,7 +179,7 @@ void gpt_lld_start(GPTDriver *gptp) {
nvicEnableVector(MRT_IRQn,
CORTEX_PRIORITY_MASK(LPC8xx_GPT_MRT_IRQ_PRIORITY));
-
+
clk_enabled |= gptp->mask;
}
@@ -206,7 +206,7 @@ void gpt_lld_stop(GPTDriver *gptp) {
/* Shared peripheral -
mark this channel as disabled */
clk_enabled &= ~gptp->mask;
-
+
/* All channels disabled? */
if( !clk_enabled )
{
@@ -268,7 +268,7 @@ void gpt_lld_polled_delay(GPTDriver *gptp, gptcnt_t interval) {
while (gptp->tmr->STAT & (1<<1))
;
-
+
gptp->tmr->CTRL = 0;
gptp->tmr->STAT |= 1;
}
diff --git a/os/hal/platforms/LPC8xx/hal_lld.c b/os/hal/platforms/LPC8xx/hal_lld.c
index 8402a105e..e5170fcc4 100644
--- a/os/hal/platforms/LPC8xx/hal_lld.c
+++ b/os/hal/platforms/LPC8xx/hal_lld.c
@@ -78,7 +78,7 @@ void lpc8xx_clock_init(void) {
// switch off pull-ups
LPC_IOCON->PIO0_8 &= ~(3<<3);
LPC_IOCON->PIO0_9 &= ~(3<<3);
-
+
// enable xtalin/xtalout
LPC_SWM->PINENABLE0 &= ~(3<<4);
@@ -126,7 +126,6 @@ void lpc8xx_clock_init(void) {
/* ABH divider initialization. Set this **before** switching Main clock
source to ensure AHB clock stays in spec */
LPC_SYSCON->SYSAHBCLKDIV = LPC8xx_SYSABHCLK_DIV;
-
/* Main clock source selection.*/
LPC_SYSCON->MAINCLKSEL = LPC8xx_MAINCLK_SOURCE;
diff --git a/os/hal/platforms/LPC8xx/pal_lld.c b/os/hal/platforms/LPC8xx/pal_lld.c
index 40b64f00d..7f290db8f 100644
--- a/os/hal/platforms/LPC8xx/pal_lld.c
+++ b/os/hal/platforms/LPC8xx/pal_lld.c
@@ -88,7 +88,7 @@ void _pal_lld_setgroupmode(ioportid_t port,
case PAL_MODE_INPUT:
port->DIR0 &= ~mask;
break;
-
+
case PAL_MODE_UNCONNECTED:
palSetPort(port, PAL_WHOLE_PORT);
//no break
@@ -96,7 +96,7 @@ void _pal_lld_setgroupmode(ioportid_t port,
port->DIR0 |= mask;
break;
}
-
+
return;
}
diff --git a/os/hal/platforms/LPC8xx/serial_lld.c b/os/hal/platforms/LPC8xx/serial_lld.c
index 8dc7733b2..e9b53dc72 100644
--- a/os/hal/platforms/LPC8xx/serial_lld.c
+++ b/os/hal/platforms/LPC8xx/serial_lld.c
@@ -77,7 +77,7 @@ static void set_error(SerialDriver *sdp, IOREG32 err) {
sts |= SD_FRAMING_ERROR;
if (err & STAT_RXBRK)
sts |= SD_BREAK_DETECTED;
-
+
chSysLockFromIsr();
chnAddFlagsI(sdp, sts);
chSysUnlockFromIsr();
@@ -96,7 +96,7 @@ static void serve_interrupt(SerialDriver *sdp) {
LPC_USART_TypeDef *u = sdp->uart;
while (u->INTSTAT) {
-
+
if (u->INTSTAT & STAT_RXRDY) {
chSysLockFromIsr();
if (chIQIsEmptyI(&sdp->iqueue))
@@ -105,7 +105,7 @@ static void serve_interrupt(SerialDriver *sdp) {
chnAddFlagsI(sdp, SD_OVERRUN_ERROR);
chSysUnlockFromIsr();
}
-
+
if (u->INTSTAT & STAT_TXRDY) {
msg_t b;
@@ -124,7 +124,7 @@ static void serve_interrupt(SerialDriver *sdp) {
u->TXDATA = b;
}
}
-
+
if (u->INTSTAT & (STAT_OVERRUN | STAT_DELTARXBRK |
STAT_FRAMERR | STAT_PARITYERR) ) {
IOREG32 stat = u->STAT;
@@ -265,7 +265,7 @@ void sd_lld_start( SerialDriver *sdp, const SerialConfig *config ) {
config = &default_config;
if (sdp->state == SD_STOP) {
-
+
#if LPC8xx_SERIAL_USE_UART0
if (&SD1 == sdp) {
LPC_SYSCON->SYSAHBCLKCTRL |= (1<<14); // Enable Clk
diff --git a/os/hal/platforms/LPC8xx/spi_lld.c b/os/hal/platforms/LPC8xx/spi_lld.c
index f9f4a9409..d5a8a4047 100644
--- a/os/hal/platforms/LPC8xx/spi_lld.c
+++ b/os/hal/platforms/LPC8xx/spi_lld.c
@@ -56,7 +56,7 @@ static void spi_load_txdata(SPIDriver *spip) {
if (--spip->txcnt == 0) {
spi->TXCTRL |= SPI_TXCTRL_EOT;
}
-
+
if (spip->txptr != NULL) {
if ((spi->TXCTRL & SPI_TXCTRL_FLEN_MASK) > SPI_TXCTRL_FLEN(8)) {
const uint16_t *p = spip->txptr;
@@ -88,7 +88,7 @@ static void spi_serve_interrupt(SPIDriver *spip) {
LPC8xx_SPI_ERROR_HOOK(spip);
spi->STAT = (SPI_STAT_RXOV | SPI_STAT_TXUR);
}
-
+
if (spi->INTSTAT & SPI_STAT_TXRDY) {
spi_load_txdata( spip );
}
@@ -230,7 +230,7 @@ void spi_lld_stop(SPIDriver *spip) {
if (spip->state != SPI_STOP) {
spip->spi->CFG = 0;
-
+
#if LPC8xx_SPI_USE_SPI0
if (&SPID1 == spip) {
nvicDisableVector(SPI0_IRQn);