diff --git a/cpu/lm4f120/periph/timer.c b/cpu/lm4f120/periph/timer.c index 3641e0bb2c..9c2b671ad5 100644 --- a/cpu/lm4f120/periph/timer.c +++ b/cpu/lm4f120/periph/timer.c @@ -43,7 +43,7 @@ static timer_conf_t config[TIMER_NUMOF]; int timer_init(tim_t dev, unsigned int us_per_tick, void (*callback)(int)) { if (dev == TIMER_0) { - config[dev].cb = callback; // User Function + config[dev].cb = callback; // User Function ROM_SysCtlPeripheralEnable(SYSCTL_PERIPH_WTIMER0); // Activate Timer0 WTIMER0_CTL_R &= ~0x00000001; // Disable timer0A during setup WTIMER0_CFG_R = TIMER_CFG_16_BIT; @@ -153,7 +153,7 @@ void isr_timer0(void) void isr_wtimer0(void) { WTIMER0_ICR_R = TIMER_ICR_TATOCINT; // acknowledge timer0A timeout - + config[TIMER_0].cb(0); if (sched_context_switch_request){ thread_yield(); diff --git a/cpu/lm4f120/periph/uart.c b/cpu/lm4f120/periph/uart.c index 56c3b16414..e47175fc4d 100644 --- a/cpu/lm4f120/periph/uart.c +++ b/cpu/lm4f120/periph/uart.c @@ -114,7 +114,7 @@ int uart_init(uart_t uart, uint32_t baudrate, uart_rx_cb_t rx_cb, uart_tx_cb_t t ROM_UARTTxIntModeSet(UART0_BASE, UART_TXINT_MODE_EOT); ROM_UARTFIFOLevelSet(UART0_BASE, UART_FIFO_TX4_8, UART_FIFO_RX4_8); // Set FIFO to 8 Characters ROM_UARTFIFOEnable(UART0_BASE); // Enable FIFOs - + // Enable the UART interrupt NVIC_EnableIRQ(UART_0_IRQ_CHAN); // Enable RX interrupt diff --git a/cpu/stellaris_common/include/cortex-m4-def.h b/cpu/stellaris_common/include/cortex-m4-def.h index f0580d87da..963c7e5828 100644 --- a/cpu/stellaris_common/include/cortex-m4-def.h +++ b/cpu/stellaris_common/include/cortex-m4-def.h @@ -4,23 +4,23 @@ // // Copyright (c) 2011-2012 Texas Instruments Incorporated. All rights reserved. // Software License Agreement -// +// // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions // are met: -// +// // Redistributions of source code must retain the above copyright // notice, this list of conditions and the following disclaimer. -// +// // Redistributions in binary form must reproduce the above copyright // notice, this list of conditions and the following disclaimer in the -// documentation and/or other materials provided with the +// documentation and/or other materials provided with the // distribution. -// +// // Neither the name of Texas Instruments Incorporated nor the names of // its contributors may be used to endorse or promote products derived // from this software without specific prior written permission. -// +// // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -32,7 +32,7 @@ // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 SUCH DAMAGE. -// +// // This is part of revision 9453 of the Stellaris Firmware Development Package. // //*****************************************************************************