Commit Graph

1671 Commits (58cb5a27385c1115aa011bc8e1eccf123fbc4df4)

Author SHA1 Message Date
Peter Kietzmann 745320dc41 Merge pull request #4232 from DipSwitch/fix_gpio_read
gpio: Pin direction readout of gpio_read was invalid
7 years ago
Oleg Hahm 4ef889f9ce Merge pull request #4226 from DipSwitch/stm32f1_add_spi_12
cpu/stm32f1/spi: add SPI peripheral 1 and 2
7 years ago
DipSwitch 4186e38976 stm32f1/gpio: pin direction readout of gpio_read was invalid 7 years ago
Andreas "Paul" Pauli bf63e09a65 Merge pull request #4137 from haukepetersen/opt_samr21_pwm
cpu/samd21: optimized pin config for PWM driver
7 years ago
DipSwitch 2e2ec37846 cpu/stm32f1/spi: add SPI peripheral 1 and 2 8 years ago
René Herthel 13ae0ab979 atmega2560/cpu: Fixed wrong using of UART macros 8 years ago
Hauke Petersen 3ab389b1fd Merge pull request #4134 from gebart/pr/cortexm-hardfault-naked-fix
cpu/cortexm_common: only set naked attribute on DEVELHELP hardfault handler
8 years ago
Ludwig Knüpfer 3b2d26b0dc cpu/saml21: fix typo in gpio.c 8 years ago
Ludwig Knüpfer 406aea453c cpu/samd21: fix typo in gpio.c 8 years ago
Joakim Nohlgård 76bddaf213 Merge pull request #3283 from gebart/pr/kinetis-errata-e4218
k60: Add workaround for errata e4218
8 years ago
Peter Kietzmann 6fcea29bdc Merge pull request #4042 from gebart/pr/kinetis-gpio-periph-refactor
kinetis_common: Refactor GPIO implementation
8 years ago
Hauke Petersen 7d1c952734 Merge pull request #3571 from haukepetersen/add_board_wstk6220a
boards/cpu: added SLWSTK6220A and EZR32WG support
8 years ago
Hauke Petersen b9707cd8f3 cpu/ezr32wg: added extern C to vendor headers 8 years ago
Joakim Nohlgård 142c28094e kinetis_common: Refactor GPIO implementation
This is a rewrite of the Kinetis GPIO driver which follows the
refactored API in [1]. Pins are specified using the GPIO_PIN(PORT_x, y)
macro, e.g. GPIO_PIN(PORT_E, 25) for the PTE25 pin.

The interrupt pin handling is now implemented as a linked list, this
is more memory efficient, but with a minor variation in interrupt
latency depending on in what order the pins were initialized at
runtime.

Because the linked list entries are taken from a shared pool, there is
also the possibility of running out of available configuration slots,
define the preprocessor macro GPIO_INT_POOL_SIZE in periph_conf.h if
you need more than 16 pins configured for interrupts in the same
application.

[1]: https://github.com/RIOT-OS/RIOT/pull/3095
8 years ago
Martine Lenders a370a12f75 msp430: fix doc to time.h 8 years ago
Martine Lenders 77b0ffffec msp430: include missing types to time.h 8 years ago
Hauke Petersen 36646865f0 cpu: added support for SiLabs EZR32WG 8 years ago
Hauke Petersen 85e05d411e Merge pull request #4114 from haukepetersen/opt_periph_uart
drivers/periph/uart: remodeled UART interface
8 years ago
Joakim Nohlgård 3033738e30 Merge pull request #4126 from gebart/pr/cortexm-r7-O0-fix
cortexm-common: Workaround for error: r7 cannot be used in asm here
8 years ago
Joakim Nohlgård c3340b7ccf cpu/cortexm_common: Use PRIx32 for printing uint32_t in hard fault handler
fixes errors like:
    error: format specifies type 'unsigned long' but the argument has
    type 'uint32_t' (aka 'unsigned int') [-Werror,-Wformat]
8 years ago
Joakim Nohlgård a5449bcbd4 cpu/cortexm_common: only set naked attribute on DEVELHELP hardfault handler
Fixes error on LLVM/Clang:

   cpu/cortexm_common/vectors_cortexm.c:287:5: error: non-ASM statement in naked function is not supported
       core_panic(PANIC_HARD_FAULT, "HARD FAULT HANDLER");
       ^
   cpu/cortexm_common/include/vectors_cortexm.h:65:46: note: attribute is here
   void hard_fault_default(void) __attribute__((naked));
                                                ^
   1 error generated.
8 years ago
Peter Kietzmann f5b2c80bd6 Merge pull request #4015 from daniel-k/pr/cortexm_hardfault_overflow
cortexm_common: check for possible stack overflow in hardfault handler
8 years ago
daniel-k c5e220c140 cortexm_common: check for possible stack overflow in hardfault handler 8 years ago
Hauke Petersen 19cd4b32c4 cpu/stm32l1: adapted UART driver 8 years ago
Hauke Petersen 1eb63f20a7 cpu/stm32f4: adapted UART driver 8 years ago
Hauke Petersen 9741267d9d cpu/stm32f3: adapted UART driver 8 years ago
Hauke Petersen 59b935bd1e cpu/stm32f1: adapted UART driver 8 years ago
Hauke Petersen b71d8ea750 cpu/stm32f0: adapted UART driver 8 years ago
Hauke Petersen 65673663b5 cpu/saml21: adapted UART driver 8 years ago
Hauke Petersen a93f15b5cb cpu/samd21: adapted UART driver 8 years ago
Hauke Petersen 07a7d93690 cpu/msp430fxyz: adapted UART driver 8 years ago
Hauke Petersen fe249b9006 cpu/lpc2387: adapted UART driver 8 years ago
Hauke Petersen 68670f038f cpu/lpc1768: adapted UART driver 8 years ago
Hauke Petersen d31401ef1a cpu/lpc11u34: adapted UART driver 8 years ago
Hauke Petersen 14796f2351 cpu/lm4f120: adapted UART driver 8 years ago
Hauke Petersen c7d256d83e cpu/kinetis_common: adapted UART driver 8 years ago
Hauke Petersen a58d577cb1 cpu/cc2538: adapted UART driver 8 years ago
Hauke Petersen 1125f5feb3 cpu/atmega2560: adapted UART driver 8 years ago
Hauke Petersen 8044e457cb cpu/atmega2560: adapted UART driver 8 years ago
Hauke Petersen 4c3a397f34 cpu/sam3: adapted UART driver 8 years ago
Hauke Petersen d32c03932e cpu/nrf51: adapted UART driver 8 years ago
Hauke Petersen 97af043227 cpu/stm32f4: adapted UART driver 8 years ago
Peter Kietzmann 59e2fd8a22 Merge pull request #4148 from LudwigKnuepfer/pr/nrf51-adc
cpu/nrf51 + boards: add ADC implementation
8 years ago
Peter Kietzmann 816bef6220 Merge pull request #4094 from danielamkaer/atmega2560_gpio_init_fix
cpu/atmega2560: fixes the configuration of pullup resistors in gpio.c
8 years ago
Peter Kietzmann e539db10ee Merge pull request #4104 from gebart/pr/drop-timer-reset
periph/timer: Drop timer_reset
8 years ago
Peter Kietzmann 9f6cd49559 Merge pull request #4047 from danielamkaer/bugfix_atmega2560_gpio
cpu/atmega2560: gpio - fixes a bug where gpio_* behaves incorrect if …
8 years ago
Joakim Gebart c404bd97ad k60: Add workaround for errata e4218
e4218: SIM/FLEXBUS: SIM_SCGC7[FLEXBUS] bit should be cleared when the
FlexBus is not being used.

Errata type: Errata

Description:

The SIM_SCGC7[FLEXBUS] bit is set by default. This means that the
FlexBus will be enabled and come up in global chip select mode. With
some code sequence and register value combinations the core could
attempt to prefetch from the FlexBus even though it might not actually
use the value it prefetched. In the case where the FlexBus is
unconfigured, this can result in a hung bus cycle on the FlexBus.

Workaround:

 - If the FlexBus is not being used, disabled the clock to the FlexBus
   during chip initialization by clearing the SIM_SCGC7[FLEXBUS] bit.
 - If the FlexBus will be used, then enable at least one chip select as
   early in the chip initialization process as possible.
8 years ago
Ludwig Knüpfer 73d21efe7d cpu/nrf51: add ADC driver 8 years ago
Ludwig Knüpfer 0b5918003f cpu/nrf51 + boards: fix typo - TIEMER -> TIMER 8 years ago
Johann Fischer f31db0431f Merge pull request #4132 from jfischer-phytec-iot/pr@kinetis-ldscript
kinetis_common: use cortexm_common ldscript
8 years ago