diff --git a/examples/lpc/lpc13xx/Makefile.include b/examples/lpc/lpc13xx/Makefile.include index e59b65e..594a20c 100644 --- a/examples/lpc/lpc13xx/Makefile.include +++ b/examples/lpc/lpc13xx/Makefile.include @@ -42,4 +42,3 @@ BMP_PORT ?= include ../../../../Makefile.rules - diff --git a/examples/lpc/lpc13xx/lpc-p1343/lpc-p1343.ld b/examples/lpc/lpc13xx/lpc-p1343/lpc-p1343.ld index a957c91..bea49c8 100644 --- a/examples/lpc/lpc13xx/lpc-p1343/lpc-p1343.ld +++ b/examples/lpc/lpc13xx/lpc-p1343/lpc-p1343.ld @@ -28,4 +28,3 @@ MEMORY /* Include the common ld script. */ INCLUDE libopencm3_lpc13xx.ld - diff --git a/examples/lpc/lpc13xx/lpc-p1343/miniblink/Makefile b/examples/lpc/lpc13xx/lpc-p1343/miniblink/Makefile index 8bc77f8..2c07751 100644 --- a/examples/lpc/lpc13xx/lpc-p1343/miniblink/Makefile +++ b/examples/lpc/lpc13xx/lpc-p1343/miniblink/Makefile @@ -22,4 +22,3 @@ BINARY = miniblink LDSCRIPT = ../lpc-p1343.ld include ../../Makefile.include - diff --git a/examples/lpc/lpc13xx/lpc-p1343/miniblink/README b/examples/lpc/lpc13xx/lpc-p1343/miniblink/README index abf4473..eb7d663 100644 --- a/examples/lpc/lpc13xx/lpc-p1343/miniblink/README +++ b/examples/lpc/lpc13xx/lpc-p1343/miniblink/README @@ -7,4 +7,3 @@ This is the smallest-possible example program using libopencm3. It's intended for the NXP LPC1343-based Olimex LPC-1343 eval board (see http://olimex.com/dev/lpc-p1343.html for details). It should blink a LED on the board. - diff --git a/examples/lpc/lpc17xx/Makefile.include b/examples/lpc/lpc17xx/Makefile.include index c462998..e8c5d1b 100644 --- a/examples/lpc/lpc17xx/Makefile.include +++ b/examples/lpc/lpc17xx/Makefile.include @@ -43,4 +43,3 @@ BMP_PORT ?= include ../../../../Makefile.rules - diff --git a/examples/lpc/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c b/examples/lpc/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c index 760617f..731b56b 100644 --- a/examples/lpc/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c +++ b/examples/lpc/lpc17xx/blueboard-lpc1768-h/miniblink/miniblink.c @@ -39,7 +39,7 @@ int main(void) //GPIO1_CLR = (1 << 29); /* LED off */ //for (i = 0; i < 800000; i++) /* Wait a bit. */ // __asm__("nop"); - + gpio_set(GPIO1, GPIOPIN29); /* LED on */ for (i = 0; i < 800000; i++) /* Wait a bit. */ __asm__("nop"); diff --git a/examples/lpc/lpc43xx/diolan-lpc-4350-db1/miniblink/miniblink.c b/examples/lpc/lpc43xx/diolan-lpc-4350-db1/miniblink/miniblink.c index 20ecaf1..4b73c6b 100644 --- a/examples/lpc/lpc43xx/diolan-lpc-4350-db1/miniblink/miniblink.c +++ b/examples/lpc/lpc43xx/diolan-lpc-4350-db1/miniblink/miniblink.c @@ -33,7 +33,7 @@ int main(void) /* Blink D2 on the board. */ while (1) { - + gpio_set(GPIO0, GPIOPIN5); /* LED on */ for (i = 0; i < 800000; i++) /* Wait a bit. */ __asm__("nop"); diff --git a/examples/lpc/lpc43xx/hackrf-jellybean/miniblink/miniblink.c b/examples/lpc/lpc43xx/hackrf-jellybean/miniblink/miniblink.c index 87e80d3..0be9f2d 100644 --- a/examples/lpc/lpc43xx/hackrf-jellybean/miniblink/miniblink.c +++ b/examples/lpc/lpc43xx/hackrf-jellybean/miniblink/miniblink.c @@ -63,7 +63,7 @@ int main(void) gpio_set(PORT_EN1V8, PIN_EN1V8); /* Blink LED1/2/3 on the board and Read BOOT0/1/2/3 pins. */ - while (1) + while (1) { boot0 = BOOT0_STATE; boot1 = BOOT1_STATE; diff --git a/examples/lpc/lpc43xx/hackrf-jellybean/miniblink_rom_to_ram/miniblink.c b/examples/lpc/lpc43xx/hackrf-jellybean/miniblink_rom_to_ram/miniblink.c index 87e80d3..0be9f2d 100644 --- a/examples/lpc/lpc43xx/hackrf-jellybean/miniblink_rom_to_ram/miniblink.c +++ b/examples/lpc/lpc43xx/hackrf-jellybean/miniblink_rom_to_ram/miniblink.c @@ -63,7 +63,7 @@ int main(void) gpio_set(PORT_EN1V8, PIN_EN1V8); /* Blink LED1/2/3 on the board and Read BOOT0/1/2/3 pins. */ - while (1) + while (1) { boot0 = BOOT0_STATE; boot1 = BOOT1_STATE; diff --git a/examples/lpc/lpc43xx/hackrf-jellybean/ssp/sspdemo.c b/examples/lpc/lpc43xx/hackrf-jellybean/ssp/sspdemo.c index 59ac584..554843b 100644 --- a/examples/lpc/lpc43xx/hackrf-jellybean/ssp/sspdemo.c +++ b/examples/lpc/lpc43xx/hackrf-jellybean/ssp/sspdemo.c @@ -40,9 +40,9 @@ static void gpio_setup(void) scu_pinmux(SCU_PINMUX_LED1, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_LED2, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_LED3, SCU_GPIO_FAST); - + scu_pinmux(SCU_PINMUX_EN1V8, SCU_GPIO_FAST); - + scu_pinmux(SCU_PINMUX_BOOT0, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_BOOT1, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_BOOT2, SCU_GPIO_FAST); diff --git a/examples/lpc/lpc43xx/hackrf-jellybean/systick/systickdemo.c b/examples/lpc/lpc43xx/hackrf-jellybean/systick/systickdemo.c index 05a254e..58d2d61 100644 --- a/examples/lpc/lpc43xx/hackrf-jellybean/systick/systickdemo.c +++ b/examples/lpc/lpc43xx/hackrf-jellybean/systick/systickdemo.c @@ -46,9 +46,9 @@ static void gpio_setup(void) scu_pinmux(SCU_PINMUX_LED1, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_LED2, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_LED3, SCU_GPIO_FAST); - + scu_pinmux(SCU_PINMUX_EN1V8, SCU_GPIO_FAST); - + scu_pinmux(SCU_PINMUX_BOOT0, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_BOOT1, SCU_GPIO_FAST); scu_pinmux(SCU_PINMUX_BOOT2, SCU_GPIO_FAST); @@ -123,7 +123,7 @@ static uint32_t sys_tick_delta_time_ms(uint32_t start, uint32_t end) { diff=MAX_T_U32-(start-end)+1; } - + return diff; } @@ -169,7 +169,7 @@ int main(void) /* SCS & Cycle Counter enabled (used to count number of cycles executed per second see g_NbCyclePerSecond */ scs_dwt_cycle_counter_enabled(); - while (1) + while (1) { gpio_set(PORT_LED1_3, (PIN_LED1|PIN_LED2|PIN_LED3)); /* LEDs on */ diff --git a/examples/tiva/lm3s/lm3s3748-evb/lm3s3748-evb.ld b/examples/tiva/lm3s/lm3s3748-evb/lm3s3748-evb.ld index 6efc111..66bcbc7 100644 --- a/examples/tiva/lm3s/lm3s3748-evb/lm3s3748-evb.ld +++ b/examples/tiva/lm3s/lm3s3748-evb/lm3s3748-evb.ld @@ -28,4 +28,3 @@ MEMORY /* Include the common ld script. */ INCLUDE libopencm3_lm3s.ld - diff --git a/examples/tiva/lm3s/lm3s3748-evb/miniblink/Makefile b/examples/tiva/lm3s/lm3s3748-evb/miniblink/Makefile index 6a935dc..c2a56fe 100644 --- a/examples/tiva/lm3s/lm3s3748-evb/miniblink/Makefile +++ b/examples/tiva/lm3s/lm3s3748-evb/miniblink/Makefile @@ -22,4 +22,3 @@ BINARY = miniblink LDSCRIPT = ../lm3s3748-evb.ld include ../../Makefile.include - diff --git a/examples/tiva/lm3s/lm3s3748-evb/miniblink/README b/examples/tiva/lm3s/lm3s3748-evb/miniblink/README index 79f3941..c566e5f 100644 --- a/examples/tiva/lm3s/lm3s3748-evb/miniblink/README +++ b/examples/tiva/lm3s/lm3s3748-evb/miniblink/README @@ -6,4 +6,3 @@ This is the smallest-possible example program using libopencm3. It's intended for the LuminaryMicro LM3S3748-EVB. It should blink the STATUS LED on the board. - diff --git a/examples/tiva/lm3s/lm3s811-evb/lm3s811-evb.ld b/examples/tiva/lm3s/lm3s811-evb/lm3s811-evb.ld index e1528b9..f9a48b1 100644 --- a/examples/tiva/lm3s/lm3s811-evb/lm3s811-evb.ld +++ b/examples/tiva/lm3s/lm3s811-evb/lm3s811-evb.ld @@ -28,4 +28,3 @@ MEMORY /* Include the common ld script. */ INCLUDE libopencm3_lm3s.ld - diff --git a/examples/tiva/lm3s/lm3s811-evb/miniblink/Makefile b/examples/tiva/lm3s/lm3s811-evb/miniblink/Makefile index dc068ff..54ea227 100644 --- a/examples/tiva/lm3s/lm3s811-evb/miniblink/Makefile +++ b/examples/tiva/lm3s/lm3s811-evb/miniblink/Makefile @@ -22,4 +22,3 @@ BINARY = miniblink LDSCRIPT = ../lm3s811-evb.ld include ../../Makefile.include - diff --git a/examples/tiva/lm3s/lm3s811-evb/miniblink/README b/examples/tiva/lm3s/lm3s811-evb/miniblink/README index 43f8817..aed191a 100644 --- a/examples/tiva/lm3s/lm3s811-evb/miniblink/README +++ b/examples/tiva/lm3s/lm3s811-evb/miniblink/README @@ -6,4 +6,3 @@ This is the smallest-possible example program using libopencm3. It's intended for the LuminaryMicro LM3S811-EVB. It should blink the STATUS LED on the board. - diff --git a/examples/tiva/lm4f/Makefile.include b/examples/tiva/lm4f/Makefile.include index 98c16af..de6b1af 100644 --- a/examples/tiva/lm4f/Makefile.include +++ b/examples/tiva/lm4f/Makefile.include @@ -45,4 +45,3 @@ BMP_PORT ?= include ../../../../Makefile.rules - diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/ek-lm4f120xl.ld b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/ek-lm4f120xl.ld index 8a096fa..4e975eb 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/ek-lm4f120xl.ld +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/ek-lm4f120xl.ld @@ -28,4 +28,3 @@ MEMORY /* Include the common ld script. */ INCLUDE libopencm3_lm4f.ld - diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/Makefile b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/Makefile index 9a014a7..0dead65 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/Makefile +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/Makefile @@ -22,4 +22,3 @@ BINARY = miniblink LDSCRIPT = ../ek-lm4f120xl.ld include ../../Makefile.include - diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/README b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/README index a19550d..c7eddeb 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/README +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/README @@ -18,5 +18,3 @@ Pressing SW1 bypasses the PLL completely, and runs off the raw 16MHz clock provided by the external crystal oscillator. The LEDs will toggle at different speeds, depending on the system clock. The system clock changes are handled within the interrupt service routine. - - diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/miniblink.c b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/miniblink.c index f47b82f..02c3eef 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/miniblink.c +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/miniblink/miniblink.c @@ -192,7 +192,7 @@ void gpiof_isr(void) /* Clear interrupt source */ gpio_clear_interrupt_flag(GPIOF, USR_SW1); } - + if (gpio_is_interrupt_source(GPIOF, USR_SW2)) { /* SW2 was just depressed */ if (!bypass) { diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/Makefile b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/Makefile index d821100..e3a5a62 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/Makefile +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/Makefile @@ -22,4 +22,3 @@ BINARY = uart_echo_interrupt LDSCRIPT = ../ek-lm4f120xl.ld include ../../Makefile.include - diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/README b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/README index 69a771b..29008e5 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/README +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/README @@ -4,7 +4,7 @@ README This example demonstrates the ease of setting up the UART with libopencm3, and using UART interrupts. UART echo is achieved by echoing back received characters -from within the interrupt service routine. This has the advantage over using +from within the interrupt service routine. This has the advantage over using blocking reads and writes that the main program loop is freed for other tasks. The UART is set up as 921600-8N1. diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/uart_echo_interrupt.c b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/uart_echo_interrupt.c index 8770273..59e0664 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/uart_echo_interrupt.c +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_interrupt/uart_echo_interrupt.c @@ -69,7 +69,7 @@ void uart0_isr(void) uart_send(UART0, rx); irq_clear |= UART_INT_RX; } - + uart_clear_interrupt_flag(UART0, irq_clear); } diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_simple/Makefile b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_simple/Makefile index 1e1c4b4..b8e172a 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_simple/Makefile +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/uart_echo_simple/Makefile @@ -22,4 +22,3 @@ BINARY = uart_echo_simple LDSCRIPT = ../ek-lm4f120xl.ld include ../../Makefile.include - diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_bulk_dev/usb_bulk_dev.c b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_bulk_dev/usb_bulk_dev.c index 481a925..01800e0 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_bulk_dev/usb_bulk_dev.c +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_bulk_dev/usb_bulk_dev.c @@ -207,7 +207,7 @@ static void usb_setup(void) * Enable USB interrupts * * We don't enable the USB peripheral clock here, but we need it on in order to - * acces USB registers. Hence, this must be called after usbd_init(). + * acces USB registers. Hence, this must be called after usbd_init(). */ static void usb_ints_setup(void) { diff --git a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_to_serial_cdcacm/usb_to_serial_cdcacm.h b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_to_serial_cdcacm/usb_to_serial_cdcacm.h index 933e97a..76913be 100644 --- a/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_to_serial_cdcacm/usb_to_serial_cdcacm.h +++ b/examples/tiva/lm4f/stellaris-ek-lm4f120xl/usb_to_serial_cdcacm/usb_to_serial_cdcacm.h @@ -66,4 +66,3 @@ void glue_send_data_cb(uint8_t *buf, uint16_t len); #endif /* __STELLARIS_EK_LM4F120XL_USB_TO_SERIAL_CDCACM_H */ /**@}*/ -