diff options
author | theShed <theShed@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-01 21:44:16 +0000 |
---|---|---|
committer | theShed <theShed@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2013-03-01 21:44:16 +0000 |
commit | e7c9fceaa47dfd983a069df6d16be9343e0e3b02 (patch) | |
tree | c03b3399885c8a9c4cc9cb0544ebdf04dd9594fa | |
parent | 8e8017b4c6c8d014131e8a170628b356e8ac4c0e (diff) | |
download | ChibiOS-e7c9fceaa47dfd983a069df6d16be9343e0e3b02.tar.gz ChibiOS-e7c9fceaa47dfd983a069df6d16be9343e0e3b02.tar.bz2 ChibiOS-e7c9fceaa47dfd983a069df6d16be9343e0e3b02.zip |
Fix some 'style' errors in the last checkin
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5343 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r-- | os/hal/platforms/LPC11Uxx/ext_lld.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/os/hal/platforms/LPC11Uxx/ext_lld.c b/os/hal/platforms/LPC11Uxx/ext_lld.c index c9bbbbca8..1a23f905c 100644 --- a/os/hal/platforms/LPC11Uxx/ext_lld.c +++ b/os/hal/platforms/LPC11Uxx/ext_lld.c @@ -113,7 +113,6 @@ void ext_lld_stop(EXTDriver *extp) { LPC_GPIO_PIN_INT->IST = EXT_CHANNELS_MASK;
LPC_SYSCON->SYSAHBCLKCTRL &= ~(1<<19);
-
}
/**
@@ -126,10 +125,10 @@ void ext_lld_stop(EXTDriver *extp) { */
void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) {
- // program the IOpin for this channel
+ /* program the IOpin for this channel */
LPC_SYSCON->PINTSEL[channel] = extp->config->channels[channel].iopin;
- // Programming edge irq enables
+ /* Programming edge irq enables */
if (extp->config->channels[channel].mode & EXT_CH_MODE_RISING_EDGE)
LPC_GPIO_PIN_INT->SIENR = (1 << channel);
else
@@ -143,9 +142,8 @@ void ext_lld_channel_enable(EXTDriver *extp, expchannel_t channel) { LPC_GPIO_PIN_INT->RISE = (1<<channel);
LPC_GPIO_PIN_INT->FALL = (1<<channel);
LPC_GPIO_PIN_INT->IST = (1<<channel);
- // and enable the irq
+
ext_lld_exti_irq_enable( channel );
-
}
/**
@@ -166,7 +164,6 @@ void ext_lld_channel_disable(EXTDriver *extp, expchannel_t channel) { LPC_GPIO_PIN_INT->RISE = (1 << channel);
LPC_GPIO_PIN_INT->FALL = (1 << channel);
LPC_GPIO_PIN_INT->IST = (1 << channel);
-
}
#endif /* HAL_USE_EXT */
|