aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/platforms/LPC8xx/gpt_lld.c
diff options
context:
space:
mode:
Diffstat (limited to 'os/hal/platforms/LPC8xx/gpt_lld.c')
-rw-r--r--os/hal/platforms/LPC8xx/gpt_lld.c8
1 files changed, 4 insertions, 4 deletions
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;
}