Jon Thacker
2aec999900
cpu/atmega_common: generalize register/peripheral definitions
...
Makes AVR register definitions dependent on what avr-libc defines
for a given MCU, rather then duplicating that effort here.
Definitions done in this way are based on functionality provided,
rather than a specific MCU device.
2016-07-08 10:52:22 -05:00
Toon Stegen
7020b7c09c
cpu/native: add args to async_read callback
...
this makes it possible to pass some generic pointer that's given back as
an argument when the callback is called.
2016-07-07 17:40:13 +02:00
Joakim Nohlgård
5633af4300
cpu/kinetis_common: Update periph_timer to support both LPTMR and PIT
2016-07-07 13:38:27 +02:00
Joakim Nohlgård
60643afe48
Merge pull request #5601 from gebart/pr/saml21-little-endian
...
cpu/saml21: Conditionally define LITTLE_ENDIAN
2016-07-05 23:24:53 +02:00
zhuoshuguo
50361ea6a6
cpu/stellaris: revise header include guards
2016-07-05 16:38:18 +02:00
René Kijewski
f31a70de60
Merge pull request #5578 from zhuoshuguo/fix_stm32f_include_headers
...
cpu/stm32: fix header include guards
2016-07-05 15:20:21 +02:00
kYc0o
d400570732
Merge pull request #5301 from kYc0o/waspmote-pro
...
boards/waspmote-pro: porting for new libelium's Waspmote PRO v1.2 platform
2016-07-05 13:57:47 +02:00
Joakim Nohlgård
7275f9845f
cpu: Conditionally define LITTLE_ENDIAN
...
Caused problems with redefined macros when building with a recent newlib
2016-07-05 13:22:50 +02:00
kYc0o
62a9773a9c
boards/waspmote-pro: add support for Waspmote PRO v1.2
2016-07-05 13:05:12 +02:00
Oleg Hahm
d2e8efc6cc
samd21: do not redefine LITTLE_ENDIAN
2016-07-05 12:10:30 +02:00
Joakim Nohlgård
73a3fb7b2a
Merge pull request #5571 from zhuoshuguo/fix_include_guards
...
cpu/stellaris: fix header include guards.
2016-07-04 19:46:04 +02:00
Ian Martin
49ae438dd5
doc: eliminate clutter in adc and gpio periph docs
2016-06-29 15:08:32 -04:00
René Kijewski
7b11a95ca3
Merge pull request #5579 from zhuoshuguo/fix_cpu_x86_include_header_guard
...
cpu/x86: fix header include guard.
2016-06-29 17:11:03 +02:00
zhuoshuguo
9f0d2ccc2b
fix cpu/x86 include header guard.
2016-06-29 15:01:25 +02:00
Peter Kietzmann
e6dd02f1ad
Merge pull request #5567 from keestux/samd21-small-fix-1
...
cpu/samd21: remove include instance_sercom3.h
2016-06-29 13:45:20 +02:00
zhuoshuguo
10f8ce1118
cpu/stm32: fix include header guards.
2016-06-28 20:30:29 +02:00
PeterKietzmann
411626fec4
cpu/msp430: initialize gpio as input OR output
2016-06-28 10:23:57 +02:00
zhuoshuguo
c9bedd2d51
cpu/stellaris: fix include guards.
2016-06-27 18:24:49 +02:00
Joseph Noir
ed2c94764b
Merge pull request #4643 from gebart/pr/clang-warning-fixes
...
Clang: Add support for C++
2016-06-23 13:06:55 +02:00
Joakim Nohlgård
edaa5bb7a8
Merge pull request #5558 from gebart/pr/cortexm-isr-stack-usage
...
cortexm_common: Fix isr_stack usage count
2016-06-23 08:48:44 +02:00
Kees Bakker
417023c256
cpu/samd21: remove include instance_sercom3.h
...
That include will be already picked up by cpu.h -> cpu_conf.h -> samd21.h
2016-06-22 22:14:36 +02:00
42d34e69c3
Merge pull request #5529 from kYc0o/atmega_common_unify
...
cpu/atmega*: unify common code for atmega CPUs
2016-06-22 15:43:57 +02:00
kYc0o
be70924800
cpu/atmega2560: update atmega2560 CPU code to use atmega_common code
2016-06-22 14:25:10 +02:00
kYc0o
17c78e70e2
cpu/atmega_common: add common atmega CPU code to atmega_common
2016-06-22 14:25:10 +02:00
Joakim Nohlgård
9a0f3a9e40
Merge pull request #5540 from zhuoshuguo/fix_cpu_header_include_guards
...
CPU:Fix header include guards
2016-06-22 11:58:02 +02:00
Joakim Nohlgård
cb19a4c709
cortexm_common: Fix isr_stack_usage
...
Refactor and add multiply by word size to get the usage in number of
bytes instead of in number of words.
Verified implementation by manual memory inspection in GDB.
2016-06-20 14:33:17 +02:00
Joakim Nohlgård
4c91121372
Merge pull request #5455 from locicontrols/move-stack
...
cortexm_common: move the stack to the bottom of RAM
2016-06-20 14:28:10 +02:00
zhuoshuguo
efbbca1322
cpu: Fix header include guards
2016-06-20 10:18:59 +02:00
kYc0o
2adf76c977
Merge pull request #5537 from kYc0o/reworked_uart_wfix
...
cpu/atmega2560: reworked UART (from #5026 )
2016-06-20 00:19:57 +02:00
kYc0o
7f0a1a7b5a
cpu/atmega2560: ISR UART typo
2016-06-09 14:50:06 +02:00
Hauke Petersen
5fc67747e6
cpu/atmega2560: fixed typo in reg definition
2016-06-09 14:49:44 +02:00
Andreas "Paul" Pauli
29f0eea2ef
cpu/cc2538: add GPIO_PIN() macro to periph_conf.h. ( #5507 )
2016-06-08 14:36:54 -04:00
Hauke Petersen
ccf7cde82d
cpu/atmega2560: reworked UART implementation
2016-06-08 18:32:17 +02:00
Hauke Petersen
e57d511499
cpu/atmega2560: added CMSIS style reg defs for UART
2016-06-08 18:32:17 +02:00
zhuoshuguo
1cbe79a373
CPU: fix include header guards
...
Fix cpu/lpc2387/include/lpc2387.h
2016-06-08 16:38:20 +02:00
Iván Briano
6846b4ebdd
cpu: native: Add [v]fprintf to syscalls
...
External packages that may use fprintf(stderr, ...) for logging will
link directly to the libc version of it, and for some reason that
results in the application crashing.
2016-06-03 16:05:14 -03:00
Martine Lenders
35077bb224
Merge pull request #4871 from kaspar030/remove_netdev2_isr_arg
...
drivers: netdev2: remove netdev2 event_callback isr_arg
2016-06-02 13:30:30 +02:00
Martine Lenders
9b1ad7820c
Merge pull request #5491 from MohmadAyman/isr_stack_usage
...
cpu: add capability to show stack usage of ISR
2016-06-02 12:31:06 +02:00
d7b17684e4
drivers: net: adapt to removed event_callback argument
2016-06-02 11:11:40 +02:00
MohmadAyman
8da1eb9f7a
ps: provide ISR stackusage information
2016-06-02 09:48:37 +02:00
MohmadAyman
53df3e8b57
core: cpu: provide function to acquire ISR stack usage
2016-06-01 23:01:35 +02:00
MohmadAyman
720136491a
cpu: unify naming of ISR stacksize macro
2016-06-01 22:47:34 +02:00
Martine Lenders
fbeb6dc17d
Merge pull request #5490 from gebart/pr/enum-compare-again
...
cpu: Cast to unsigned int for argument bounds checks
2016-06-01 19:01:43 +02:00
Martine Lenders
c832d9c83f
Merge pull request #5488 from gebart/pr/cmsis-no-register
...
cpu/cortexm_common: Remove register keyword from variables
2016-06-01 18:41:10 +02:00
Peter Kietzmann
a28db27f25
Merge pull request #5464 from PeterKietzmann/tmp006_fix_opt
...
samd21/i2c: wait for bus idle after stop condition
2016-06-01 17:04:58 +02:00
Joakim Nohlgård
a1f4d1617f
cpu/cc26x0: Cast gpio_t to unsigned int for comparison
2016-06-01 16:42:16 +02:00
Joakim Nohlgård
c2b20f1f27
cpu/cc2538: Cast enum to unsigned int for comparison
2016-06-01 16:42:15 +02:00
Joakim Nohlgård
eff01f21f8
cpu/cc26x0: Cast gpio_t to unsigned int for comparison
2016-06-01 16:40:28 +02:00
Joakim Nohlgård
abca77beb0
cpu/cc2538: Cast enum to unsigned int for comparison
2016-06-01 16:39:55 +02:00
Joakim Nohlgård
73739cb7c8
cpu/cortexm_common: Remove register keyword from variables
...
register is deprecated when building C++11 code and removed in C++17,
using it will cause build failures with C++ and -Werror. The register
hint keyword is likely ignored in GCC anyway.
2016-06-01 16:18:57 +02:00
Joakim Nohlgård
9ad9f400e6
cpu/cortexm_common: Remove register keyword from variables
...
register is deprecated when building C++11 code and removed in C++17,
using it will cause build failures with C++ and -Werror. The register
hint keyword is likely ignored in GCC anyway.
2016-06-01 16:12:38 +02:00
Yonezawa-T2
3c16e8426f
native: add timeout for select. Fixes #5442
2016-06-01 12:31:19 +09:00
Joakim Nohlgård
e2c9fee917
cpu/Makefile.include.llvm: Try harder to find C++ and C headers from cross-GCC
2016-05-31 22:03:04 +02:00
Joakim Nohlgård
e4ad8d6beb
cpu/Makefile.include.llvm: Use libstdc++ headers for C++ support
2016-05-31 22:03:04 +02:00
PeterKietzmann
5ab2297b25
samd21/i2c: wait for bus idle after stop condition
2016-05-27 11:23:05 +02:00
Ian Martin
87e06756a5
cortexm_common: move the stack to the bottom of RAM
2016-05-19 15:55:36 -04:00
Andreas "Paul" Pauli
9693c3cdf5
Merge pull request #5425 from locicontrols/cc2538-ldscript
...
cpu/cc2538: eliminate cc2538.ld and use cortexm_base.ld instead
2016-05-19 16:30:11 +02:00
Peter Kietzmann
5817d91b91
Merge pull request #5192 from DipSwitch/pr/fix_stm32f1_also_disable_hsi_on_hse
...
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-05-17 10:51:46 +02:00
Ian Martin
10b001c3eb
cpu/cc2538: eliminate cc2538.ld and use cortexm_base.ld instead
2016-05-10 12:21:29 -04:00
Marc Poulhiès
ff49ca9946
cpu/lm4f120: fix SSI1 isr name
...
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-05-04 13:00:25 +02:00
DipSwitch
c449ab9fdb
Merge pull request #5336 from OTAkeys/print_ipsr
...
cortexm_common: print trapped interrupt from ipsr
2016-04-30 23:04:14 +02:00
Peter Kietzmann
b0627ade85
Merge pull request #5280 from sdalu/nrf51ac
...
Added nrf51 ac variant
2016-04-26 21:11:32 +02:00
kYc0o
591b0ab3ac
Merge pull request #5356 from DipSwitch/pr/fix_cc2538_spi_compile_warning
...
cpu/cc2538/spi: Fix compiler warning of possible uninitialized variable
2016-04-20 14:47:54 +02:00
Martine Lenders
c24e91d4df
Merge pull request #5229 from OlegHahm/pktbuf_minimal_check
...
netdev ethernet: deal with too small packet buffer
2016-04-20 14:44:30 +02:00
Toon Stegen
63c0e9bec6
cortexm_common: print trapped interrupt from ipsr
...
The IPSR (=Interrupt Program Status Register) contains the exception
type number of the current Interrupt Service Routine. Printing this
out can be useful to detect if a certain interrupt is not implemented.
2016-04-20 11:41:13 +02:00
Oleg Hahm
3f1c2e1f1b
native: assert that the pktbuf is big enough
...
Rationale: the netdev2_tap Ethernet driver for native requires to temporarily store at least a maximum sized Ethernet frame.
2016-04-20 09:10:55 +02:00
DipSwitch
eb6eed6c2c
cpu/cc2538/spi: Fix compiler warning of possible uninitialized variable
2016-04-19 22:43:51 +02:00
Hauke Petersen
39043b5e6e
cpu/samd21: fix ISR mapping for PB27
2016-04-19 20:46:41 +02:00
Hauke Petersen
fbb144f7b8
Merge pull request #5315 from bapclenet/samd21/gpio_PA27
...
SAMD21/GPIO driver: Add missing interrupts
2016-04-19 20:46:09 +02:00
Florent-Valéry
15066e0418
cpu/cc26x0: cpu_clock_init() implementation
2016-04-18 19:00:49 +02:00
Leon M. George
475fb6f84d
cpu: add CC26x0-family
2016-04-18 19:00:49 +02:00
Baptiste
0215b08998
SAMD21/GPIO driver: Add missing interrupts
2016-04-14 20:06:36 +02:00
kYc0o
699410efc8
Merge pull request #5124 from locicontrols/fixes
...
cpu/cc2538: fix build errors when UART1 or the 32 kHz crystal is enabled
2016-04-14 12:00:53 +02:00
334481559d
cpu: native: make netdev2_tap internal functions static
2016-04-11 17:03:28 +02:00
Marc Poulhiès
788f9f9e50
cpu/lm4f120: fix ADC pin mapping
...
fix GPIO pin mapping for ADC_0
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-04-11 12:39:52 +02:00
Stephane D'Alu
1ac5e5fbdd
Added nrf51 ac variant
2016-04-09 20:18:34 +02:00
Hauke Petersen
acf9bf7037
Merge pull request #5256 from DipSwitch/pr/fix_cortex_initialization
...
cpu/cortex-m: Enable STKALIGN to make the Cortex-M keep the stack 8 byte aligned
2016-04-08 13:36:11 +02:00
Hauke Petersen
23b75c421f
cpu/atmega2560: reworked timer driver
2016-04-07 19:04:01 +02:00
Hauke Petersen
9e4c08d89c
cpu/atmega2560: added CMSIS style defs for timers
2016-04-07 19:04:01 +02:00
DipSwitch
b6140f15f3
cpu/cortex-m: Enable STKALIGN to make the Cortex-M keep the stack 8 byte aligned on 4 byte aligned stack pointers
2016-04-07 00:27:26 +02:00
DipSwitch
945f01f7e0
[SQUASH] Remove unrelevant changes
2016-04-05 23:54:01 +02:00
DipSwitch
a259cc42b0
[SQUASH] Make PLL_DIV and PLL_MUL behave the same as for the F3 and F4
2016-04-05 23:51:55 +02:00
DipSwitch
edae42281b
[SQUASH] Tested HSI
2016-04-05 23:38:32 +02:00
DipSwitch
50fda7e07f
[SQUASH] Fix timer clock calculations
2016-04-05 23:22:50 +02:00
Oleg Hahm
900528b2f2
netdev2_tap: check for existence before calling cb
2016-04-03 18:04:03 +02:00
c3f7186d4e
unify usage of inline assembly
2016-03-31 22:23:35 +02:00
Hauke Petersen
02df871428
Merge pull request #4949 from jia200x/nucleo-f072
...
board: added support for nucleo f072
2016-03-31 19:18:28 +02:00
José Ignacio Alamos Aste
4ea6d26f90
stm32f072rb: Adapter vendor header file due to inconsistency in some variables.
2016-03-31 18:20:24 +02:00
José Ignacio Alamos Aste
20d6ead969
stm32f072rb: Added support for CPU
2016-03-31 18:20:24 +02:00
Yonezawa-T2
c4bc42419b
netdev2_tap: continue reading even if no spaces left in pktbuf
...
On OS X, `netdev2_tap` suspends monitoring file descriptor until `_recv` is
called. If no spaces in left in pktbuf, `gnrc_netdev2_eth` does not call `_recv`
that results in deadlock.
With this commit, `gnrc_netdev2_eth` calls `_recv` with NULL buffer and non-zero
length parameter, that indicates the driver to drop frame and resume working.
2016-03-31 16:59:12 +09:00
Yonezawa-T2
79d33897cb
native: add UART driver based on /dev/tty
...
uart0 functionality is removed by #3164 . This patch implements periph/uart,
rather than deprecated uart0, using /dev/tty.
To use with netdev2_tap simultaneously, this patch adds asynchronus read system
and modifies netdev2_tap to use it.
A TTY device is specified on command line with -c (COM) option, since -t was
used by the old implementation.
This patch also implements empty GPIO driver needed by the xbee driver.
2016-03-31 16:59:12 +09:00
Toon Stegen
77c9ee043f
stm32f2: add adc and lpm
...
changes taken from DipSwitch's board: EMW3162 #4498 PR.
- Adds a functional implementation of the ADC
- Implements low power mode
2016-07-25 10:34:57 +02:00
Toon Stegen
7a0e81923b
stm32f2: fix dac compilation
...
this is copied from DipSwitch's pr
2016-07-19 12:10:16 +02:00
Toon Stegen
71dce7584f
stm32f2: i2c: update driver
...
Remove unneeded workaround from stm32f1
Make pullup configurable
Fix OAR1 register initialization
improve i2c read functions with repeatead start conditions
avoid to any loop to become infinite
improve i2c driver error handling
add missing coma in array initializers
2016-04-22 14:03:21 +02:00
Vincent Dupont
70c8bff842
stm32f2: update timer and pwm drivers
2016-04-14 14:44:19 +02:00
Aurelien Gonce
d01da278ac
stm32f2: Update hwrng driver
2016-04-13 15:47:12 +02:00
Hermann Lelong
182be862bb
stm32f2: Improve UART driver
...
Add missing DMA interrupts for UART
Improve baudrate intialization:
- Return error if baudrate is theorically unreachable
- Implement oversampling by 8 method for high baudrates
Add UART hardware flow control support
Ensure uart tx thread safety with a mutex
Allow setting of pins mode per UART
2016-04-01 16:38:49 +02:00
Vincent Dupont
ab8f9f148e
stm32f2: Add RTC driver
...
The driver was imported from stm32f0
Fixes:
- Fix 12/24h handling (CR flag badly used)
- Fix interrupt flag clearance and interrupt name
2016-03-31 16:34:04 +02:00
Peter Kietzmann
3fa8a267b3
Merge pull request #5155 from OlegHahm/diskio_cleanup
...
doc diskio: RIOTized style and added doxygen
2016-03-30 15:14:25 +02:00
Oleg Hahm
1f4d73dde1
Merge pull request #4801 from OlegHahm/netstats
...
netstats: introduce L2 netstats
2016-03-30 14:42:49 +02:00
Oleg Hahm
0925737e28
doc diskio: RIOTized style and added doxygen
2016-03-30 12:54:51 +02:00
Cenk Gündoğan
8b7512f0bf
Merge pull request #5187 from Yonezawa-T2/i2c_debug
...
i2c: add missing #ifdef block
2016-03-30 09:34:40 +02:00
Peter Kietzmann
1756e9e270
Merge pull request #4156 from DipSwitch/add_clock_selection_stm32f0
...
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F0 family
2016-03-30 09:33:54 +02:00
Peter Kietzmann
3c2e90e952
Merge pull request #4165 from DipSwitch/add_clock_selection_stm32f4
...
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F4 family
2016-03-30 09:33:30 +02:00
Peter Kietzmann
126f12b138
Merge pull request #4164 from DipSwitch/add_clock_selection_stm32f3
...
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F3 family
2016-03-30 09:32:33 +02:00
Yonezawa-T2
7271c928cc
i2c: add missing #ifdef block
2016-03-30 16:24:38 +09:00
Oleg Hahm
d411387bec
Merge pull request #4225 from DipSwitch/stm32f1_dac_implementation
...
cpu/stm32f1/periph/dac: DAC implementation for STM32F1
2016-03-30 01:31:43 +02:00
DipSwitch
9acc33396b
cpu/stm32f1: Disable HSI when using the HSE as system clock
2016-03-29 23:55:40 +02:00
DipSwitch
20d39f1c97
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F0
2016-03-29 23:27:52 +02:00
DipSwitch
5b526df730
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F4 family
2016-03-29 23:09:22 +02:00
Peter Kietzmann
e93d616025
Merge pull request #4930 from shady33/stm32l1-rtc
...
STM32L1 RTC driver
2016-03-29 23:07:02 +02:00
DipSwitch
cc5a06d954
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F3 family
2016-03-29 22:45:11 +02:00
Oleg Hahm
021e94ee6a
netdev2: introduce linklayer netstats
2016-03-29 22:34:09 +02:00
DipSwitch
bd9b3a269c
cpu/stm32/perip/dac: Move DAC implementation to stm32_common/periph since all STM32 DAC's have the same basics
2016-03-29 22:25:50 +02:00
DipSwitch
6e9f36c0c5
cpu/stm32_common/gpio: Use default gpio_t type and defines
2016-03-29 22:25:50 +02:00
Yonezawa-T2
dc9f769835
NEEDS SQUASHING i2c: revert partially
2016-03-29 17:37:50 +09:00
Yonezawa-T2
1ce140d910
debug: fix compilation error for %p formatter
2016-03-29 11:46:29 +09:00
Ian Martin
a553fe0f84
cpu/cc2538: fix build errors when UART1 or the 32 kHz crystal is enabled
2016-03-28 17:31:58 -04:00
Ian Martin
a2ac92b2bd
cpu/cc2538: add periph/spi driver
2016-03-28 17:24:07 -04:00
Oleg Hahm
59674a679b
netdev2: use params parameter for setup
2016-03-28 20:22:20 +02:00
Oleg Hahm
8f47dcbbf8
Merge pull request #4719 from immesys/feature-samr21e
...
Add linker file for Atmel SAMR21E18A
2016-03-25 22:12:28 +01:00
Oleg Hahm
26b3263f8a
netdev2: moved ethernet header into subdir
2016-03-25 15:10:07 +01:00
Cenk Gündoğan
30217f8a7b
Merge pull request #5040 from kYc0o/rid_of_vtimer
...
sys/compat/vtimer: get rid of
2016-03-25 14:35:35 +01:00
Oleg Hahm
9370e49375
Merge pull request #5142 from Yonezawa-T2/native_rename_enable_irq
...
native: fix build on OS X
2016-03-25 14:17:27 +01:00
Martine Lenders
9dcb5cc476
Merge pull request #5134 from OlegHahm/netif_default
...
make: introduce netdev_default pseudomodule
2016-03-24 18:23:49 +01:00
Oleg Hahm
79a8ec488e
Merge pull request #5157 from locicontrols/gpio_init
...
cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e3
2016-03-24 18:00:29 +01:00
kYc0o
f92b025b85
vtimer: get rid of
2016-03-24 17:10:54 +01:00
Oleg Hahm
10f5f1aa33
make: introduce netif_default pseudomodule
...
Additionally the dependencies for GNRC specific modules are centralized in Makefile.dep.
2016-03-24 16:47:30 +01:00
Hauke Petersen
9854ca684b
Merge pull request #5127 from malosek/msp430_spi_speed_fix
...
msp430 spi speed fix + USIC/USCI cleanup
2016-03-24 11:04:06 +01:00
malo
f093d10409
msp430: spi/uart cleaned up USIC - USCI confusion
...
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-24 09:42:59 +01:00
malo
1e00c2b4b7
msp430: spi: fixed setting of spi speed
...
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-24 09:40:28 +01:00
Michael Andersen
83f9cecc12
cpu/samd21: Change linker file to support E variant
2016-03-23 16:49:24 -07:00
Ian Martin
7b8c86ec16
cpu/cc2538/periph/gpio: fix gpio_init() bugs in cfed0e3
2016-03-23 13:59:02 -04:00
Cenk Gündoğan
551cb3365c
Merge pull request #4814 from gebart/pr/kinetis-dac
...
cpu/kinetis_common: Add periph/dac implementation
2016-03-23 17:48:50 +01:00
Vincent Dupont
15b6814d9b
stm32f2: Update with last api changes
...
* Update headers from ST
* Add linker scripts
2016-03-23 15:26:18 +01:00
Yonezawa-T2
56be13d5da
native: fix build on OS X
2016-03-23 12:23:32 +09:00
DipSwitch
5b5810ab7b
Merge pull request #5109 from DipSwitch/pr/fix_core_inc_irq
...
core: Fix/refactor function naming in core/incude/irq.h
2016-03-22 08:12:24 +01:00
Joakim Nohlgård
8c154d47ad
cpu/kinetis_common: Implement DAC periph driver
2016-03-22 06:06:56 +01:00
Oleg Hahm
0e6ade76c8
Merge pull request #5121 from gebart/pr/toolchain-boards
...
Use TARGET_ARCH for more platforms
2016-03-21 16:12:46 +01:00
Joakim Nohlgård
fbde276bb1
msp430: Set TARGET_ARCH for msp430 targets
2016-03-21 12:19:30 +01:00
Joakim Nohlgård
1efe384d6f
arm7: Use TARGET_ARCH instead of custom toolchain specification
2016-03-21 12:19:30 +01:00
Joakim Nohlgård
d0033a5d20
avr: Use TARGET_ARCH instead of custom toolchain specification
2016-03-21 12:19:30 +01:00
Joakim Nohlgård
cad5f08b56
Makefile.include: Set PREFIX if not set
2016-03-21 12:19:30 +01:00
e1fcee67c0
arm/newlib: Add pseudomodule to enable floating point printf support
2016-03-21 11:47:38 +01:00
Oleg Hahm
b46b9d9086
Merge pull request #5120 from gebart/pr/lm4f-gpio-unused-port-addr
...
cpu/lm4f120: remove unused _port_addr function in gpio.c
2016-03-21 11:00:41 +01:00
Joakim Nohlgård
169fa2ec94
cpu/lm4f120: remove unused _port_addr function in gpio.c
2016-03-21 08:47:56 +01:00
Joakim Nohlgård
2b51e4b116
newlib: Introduce newlib_nano pseudomodule
2016-03-21 07:41:23 +01:00
DipSwitch
0bb4748a94
core: Fix/refactor function naming in core/incude/irq.h
2016-03-20 16:47:34 +01:00
DipSwitch
30f0a2a26a
Merge pull request #5104 from haukepetersen/fix_f1_gpiomode
...
cpu/stm32f1: fixed pull selection in GPIO driver
2016-03-20 12:21:33 +01:00
Joakim Nohlgård
84eb6e9f8f
Merge pull request #5100 from gebart/pr/target-triple-rename
...
make: Rename TARGET_TRIPLE -> TARGET_ARCH
2016-03-20 09:44:29 +01:00
Joakim Nohlgård
dd73060afb
Merge pull request #5054 from DipSwitch/pr/fix_arm_newlib_nano_specs
...
make\arm: Fix compiling against newlib nano.specs
2016-03-19 17:58:11 +01:00
Hauke Petersen
e7c8e0b1f2
cpu/stm32f1: fixed pull selection in GPIO driver
2016-03-18 11:01:08 +01:00
DipSwitch
f5a194cbe0
make\arm: Fix compiling against newlib-nano by also informing the compiler we compile with nano.specs
2016-03-17 22:16:13 +01:00
Joakim Nohlgård
7e3c67b654
make: Rename TARGET_TRIPLE -> TARGET_ARCH
2016-03-17 21:55:17 +01:00
Hauke Petersen
4938142b42
cpu/kinetis: adapted GPIO driver
2016-03-17 14:55:30 +01:00
Hauke Petersen
a7790625a1
cpu/lm4f120: adapted GPIO driver
2016-03-17 14:55:30 +01:00
Hauke Petersen
7d53847e61
cpu/stm32l1: adapted GPIO driver
2016-03-17 14:55:30 +01:00
Hauke Petersen
3f478b6e12
cpu/stm32f4: adapted to GPIO changes
2016-03-17 14:55:30 +01:00
Hauke Petersen
46bf22a01d
cpu/stm32f3: adapted GPIO driver
2016-03-17 14:55:30 +01:00
Hauke Petersen
141f8c9ff6
cpu/stm32f1: adapted GPIO driver
2016-03-17 14:55:30 +01:00
Hauke Petersen
84880c1f3c
cpu/stm32f0: adapted GPIO driver
2016-03-17 14:40:48 +01:00
Hauke Petersen
9bd848f113
cpu/saml21: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
d3b21ddf96
cpu/samd21: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
f389754de3
cpu/sam3: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
af84a5e7aa
cpu/nrf5x_common: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
28900760de
cpu/msp430fxyz: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
877d06bda8
cpu/lpc2387: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
82e0c51770
cpu/lpc11u34: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
ba13a74a7e
cpu/ezr32: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Hauke Petersen
cfed0e33cc
cpu/cc2538: adapted to GPIO inerface changes
2016-03-17 14:39:11 +01:00
Hauke Petersen
c36efa0f96
cpu/atmega2560: adapted GPIO driver
2016-03-17 14:39:11 +01:00
Johann Fischer
0b2ffc212d
Merge pull request #5075 from jfischer-phytec-iot/pr@kinetis-i2c
...
cpu/kinetis_common/periph/i2c.c: fix generating the STOP signal
2016-03-17 12:53:24 +01:00
DipSwitch
93bce6291c
Merge pull request #5090 from haukepetersen/opt_stm_clken
...
cpu/stm32_common: added shared periph_clk_en/dis functions
2016-03-16 23:02:20 +01:00
Hauke Petersen
7dc6610d48
Merge pull request #4952 from haukepetersen/opt_f1_uart
...
cpu/stm32f1: reworked UART driver
2016-03-16 15:14:54 +01:00
Martine Lenders
c6bad1ce07
Merge pull request #5056 from Yonezawa-T2/os_x_thread_t
...
native: workaround for thread_t name collision
2016-03-16 12:51:05 +01:00
Hauke Petersen
4383fbf60b
cpu/stm32f4/uart: use common clk_en functions
2016-03-16 12:24:51 +01:00
Hauke Petersen
61f8d45e03
cpu/stm32f1/timer: use common clk_en function
2016-03-16 12:24:51 +01:00
Hauke Petersen
462d156821
cpu/stm32_common: added periph clk en/dis functions
2016-03-16 12:17:16 +01:00
Hauke Petersen
546aacd2ce
cpu/stm32_common: build common module
2016-03-16 12:17:16 +01:00
Martine Lenders
a137124f94
Merge pull request #5077 from OlegHahm/makefile_toolchain_common
...
make: always include toolchain dependent Makefile
2016-03-16 11:17:09 +01:00
Hauke Petersen
be2100e2eb
cpu/stm32f1: made timer rcc_bit 32-bit
2016-03-16 10:53:16 +01:00
Hauke Petersen
dff203e7dd
cpu/stm32f1: reworked UART implementation
2016-03-16 10:43:45 +01:00
DipSwitch
64b3957323
cpu/cortexm_common: Fix cpu_sleep_until_event()
2016-03-16 00:23:50 +01:00
Hauke Petersen
99888549af
Merge pull request #4154 from DipSwitch/add_clock_selection_stm32f1
...
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1 family
2016-03-15 19:10:43 +01:00
DipSwitch
2558050d9e
cpu: Add clock source selection based on CLOCK_HSE or CLOCK_HSI for STM32F1
2016-03-15 17:50:39 +01:00
Hauke Petersen
1d6d54e1f2
Merge pull request #5076 from haukepetersen/opt_periph_uart_cbtype
...
drivers/uart: use uint8_t for data in cb signature
2016-03-15 15:17:44 +01:00
08a603852e
Merge pull request #5067 from gebart/pr/cmsis-4.5
...
cortexm_common: Update to CMSIS 4.5
2016-03-15 13:31:04 +01:00
Oleg Hahm
94ad2ef0f4
Merge pull request #5072 from malosek/msp430-usci-tx-port-direction
...
cpu: msp430fxyz: uart: fixed port direction for USCI TX pin + minor typo in the comment
2016-03-15 13:13:00 +01:00
Oleg Hahm
a82556d818
make: always include toolchain dependent Makefile
2016-03-15 12:02:53 +01:00
Hauke Petersen
270de70d95
Merge pull request #4221 from DipSwitch/stm32f1_adc_implementation
...
cpu/stm32f1/periph/adc: ADC implementation for STM32F1
2016-03-15 11:28:58 +01:00
Hauke Petersen
b9824b9e49
Merge pull request #4956 from gebart/pr/kinetis-pwm
...
cpu/kinetis_common: Use gpio_init_port for PWM pin handling
2016-03-15 11:11:13 +01:00
Hauke Petersen
b23cde98cf
cpus: adapted UART implementations to cb type change
2016-03-15 11:02:06 +01:00
DipSwitch
c446091d86
Merge pull request #4431 from haukepetersen/opt_periph_dac
...
drivers/periph: updated DAC driver interface
2016-03-15 09:14:18 +01:00
malo
c9e6299f0f
cpu: msp430fxyz: uart: fixed port direction for USCI TX pin + minor typo in the comment
...
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-15 00:08:23 +01:00
DipSwitch
a5c5a4e34c
Merge pull request #5068 from gebart/pr/doxygen-fixes
...
Small Doxygen fixes
2016-03-14 23:53:58 +01:00
DipSwitch
68b4edf519
Merge pull request #5063 from DipSwitch/pr/fix_stm32f4_adc_resolution
...
cpu/stm32f4/periph/adc: ADC_SR_STRT flag is unused
2016-03-14 23:29:51 +01:00
Joakim Nohlgård
c5f43e79ba
cpu/nrf5x_common: Give Doxygen group a name
2016-03-14 23:09:49 +01:00
DipSwitch
4a2134fd53
cpu/stm32f1/adc: Initial import for STM32F1 ADC
2016-03-14 22:52:26 +01:00
Joakim Nohlgård
d8b01a714c
cpu/cortexm_common: Doxygen fix for cmsis_gcc.h
2016-03-14 22:16:52 +01:00
Joakim Nohlgård
61c9ba2c64
cpu/cortexm_common: Whitespace fix CMSIS header
2016-03-14 22:08:33 +01:00
Joakim Gebart
bea6cb9f15
cortexm: CMSIS: Add extern "C" to CMSIS headers
2016-03-14 22:05:57 +01:00
Hauke Petersen
ea63bf454c
cpu/stm32f4: reworked DAC driver implementation
2016-03-14 20:39:31 +01:00
DipSwitch
88018849e9
cpu/stm32f4/periph/adc: ADC_SR_STRT flag is unused
2016-03-14 19:41:25 +01:00
Joakim Nohlgård
26f43786b8
cpu/cortexm_common: Update CMSIS v4.5
...
Original headers unmodified from CMSIS-SP-00300-r4p5-00rel0.zip
2016-03-14 18:16:36 +01:00
Joakim Nohlgård
65bb26f0b4
cpu/kinetis_common: Use gpio_init_port for PWM pin handling
2016-03-14 17:52:51 +01:00
DipSwitch
6cf7de2393
cpu/stm32f4/adc: Remove unused structure item
2016-03-14 17:22:47 +01:00
Johann Fischer
db2506822f
cpu/kinetis_common/periph/i2c.c: fix generating the STOP signal
...
This patch fix the bug in _i2c_receive. The STOP signal should be
generated before the reading from the data register because the
receiving of the next byte will be initiated by reading
the data register (dev->D).
2016-03-14 14:53:59 +01:00
Hauke Petersen
432f033384
cpu/lm4f120: reworked ADC implementation
2016-03-14 13:06:25 +01:00
Hauke Petersen
56c8e49fd2
cpu/kw2x: moved include of mcg.h to cpu.c
2016-03-14 13:06:24 +01:00
Hauke Petersen
58e2b93b7b
cpu/k64f: moved include of mcg.h to cpu.c
2016-03-14 13:06:24 +01:00
Hauke Petersen
3990bd84e7
cpu/kinetis_common: reworked ADC driver
2016-03-14 13:06:23 +01:00
Hauke Petersen
575659cd1c
cpu/lpc11u34: reworked ADC driver
2016-03-14 13:06:23 +01:00
Hauke Petersen
da80af479c
cpu/stm32f0: reworked ADC driver
2016-03-14 13:06:23 +01:00
Hauke Petersen
843c456f4b
cpu/nrf51: adapted ADC driver to interface changes
2016-03-14 13:06:23 +01:00
Hauke Petersen
fc7c25c95e
cpu/stm32f4: reworked the ADC driver
2016-03-14 13:05:46 +01:00
Joakim Nohlgård
405811da2b
native: remove unused XTIMER_USLEEP_UNTIL_OVERHEAD
2016-03-14 08:26:44 +01:00
Yonezawa-T2
6d4abb96dc
native: workaround for thread_t name collision
2016-03-14 14:23:38 +09:00
DipSwitch
41ae0af3e2
Merge pull request #4978 from dkm/pr/adc
...
cpu/lm4f120: ADC support
2016-03-14 00:05:28 +01:00
Martine Lenders
b8878daaaf
Merge pull request #5052 from gebart/pr/clang-fixes3
...
cpu/periph: Fix some more empty body warnings
2016-03-13 13:28:01 +01:00
Joakim Nohlgård
7b4e776808
Merge pull request #4971 from DipSwitch/pr/fix_stm32f4_dma_nvic_enable
...
cpu/stm32f4/dma: Fix some miscalculations in the DMA implemenation
2016-03-13 08:39:47 +01:00
Joakim Nohlgård
7ce5f1b5c0
cpu/stm32f1: i2c: Use {} notation for empty while loops
2016-03-13 08:14:39 +01:00
Joakim Nohlgård
30ed36b236
cpu/cc2538: i2c: Make WARN_IF use {} to silence Clang warning when ENABLE_DEBUG=0
2016-03-13 08:14:39 +01:00
DipSwitch
e2f8d59956
cpu/stm32f4/dma: Fix the IQRn calculation for DMA channels > 8
2016-03-11 16:20:19 +01:00
DipSwitch
d72cdcaad2
cpu/stm32/gpio_exti: EXTI->PR is of type RW_w1 so don't RMW the pending status flags
2016-03-11 15:46:41 +01:00
Oleg Hahm
402e20c00c
Merge pull request #4992 from OlegHahm/tapsetup_readmes
...
doc: updated and clarified tapsetup usage
2016-03-10 18:52:38 +01:00
Hauke Petersen
8c68121bb2
Merge pull request #4463 from nqd/lpc1768-cpuid
...
adding cpuid for lpc1768 cpu, enable periph_cpuid in board mbed_lpc1768
2016-03-10 17:41:00 +01:00
Oleg Hahm
8e6dc1a03f
doc: updated and clarified tapsetup usage
2016-03-10 17:40:22 +01:00
René Kijewski
818d703810
Merge pull request #5004 from OlegHahm/core_kernel_macros_attributs_merge
...
core: merge kernel_macros.h and attributes.h into kernel_defines.h
2016-03-10 16:47:10 +01:00
nqdinh
5ad659a54a
cpu/lpc1768: added cpuid periph driver implementation
2016-03-10 11:01:34 +07:00
Oleg Hahm
edee25ced5
x86: minor cosmetics for include syntax and order
2016-03-09 22:29:06 +01:00
Oleg Hahm
bdcf8879fd
core: merged kernel_macros.h and attributes.h
...
Merged into new kernel_defines.h and updated all includes.
2016-03-09 22:29:06 +01:00
Hauke Petersen
d05bf879a6
cpu/atmega2560: added SPI driver
2016-03-09 18:34:42 +01:00
Oleg Hahm
1c260c2228
Merge pull request #4655 from bapclenet/SAML21/RTC
...
Driver RTC for the board SAML21 by FWX
2016-03-09 13:44:50 +01:00
Oleg Hahm
596c25daca
Merge pull request #4943 from gebart/pr/while-loops
...
Use {} notation for empty while loops
2016-03-09 13:42:32 +01:00
Marc Poulhiès
d0fb8adf45
cpu/lm4f120: ADC support
...
Only ADC_0 and no precision support.
Signed-off-by: Marc Poulhiès <dkm@kataplop.net>
2016-03-09 13:24:31 +01:00
Baptiste
455555304c
SAML21/RTC: Add RTC driver
2016-03-09 09:28:42 +01:00
Ian Martin
705879741c
cpu/cc2538: use the MCU's default UART FIFO interrupt levels
2016-03-07 17:52:06 -05:00
Ian Martin
5f05a956db
cpu/cc2538: clear only the latched UART interrupt flags
...
Otherwise incoming bytes can remain in the receive FIFO indefinitely.
2016-03-07 17:52:06 -05:00
a6a98dc5a9
cpu: cc2538: add missing include to periph_cpu.h
2016-03-07 23:25:20 +01:00
Peter Kietzmann
e5500072d2
Merge pull request #4957 from botmayank/develop
...
stm32f0: GPIO enable IRQ for EXTI0_1
2016-03-07 21:36:15 +01:00
kYc0o
740635daaa
Merge pull request #3765 from locicontrols/cc2538-i2c
...
cpu/cc2538: add periph/i2c driver
2016-03-07 18:22:32 +01:00
Peter Kietzmann
dcc58da35a
Merge pull request #4959 from shady33/fix-stm32l1-timer
...
Mistyped argument name
2016-03-07 15:50:12 +01:00
botmayank
35154e0c84
cpu/stm32f0: GPIO enable IRQ for EXTI0_1
...
Removed unnecessary EXTI2_3 interrupt enable
cpu/stm32f0: gpio removed trailing whitespace
2016-03-07 14:18:39 +01:00
lakshbhatia
773453e187
stm32l1/timer: fix callback argument initialization
2016-03-07 12:41:15 +01:00
ed03204fe2
cpu: lpc11u34: gpio: adapt to thread.h
2016-03-05 18:20:17 +01:00
142bbef721
cpu: atmega2560: timer: adapt to thread.h
2016-03-05 18:20:17 +01:00
a7adbac4c5
cpu: msp430: adapt to thread.h
2016-03-05 18:20:17 +01:00
6881f65f46
cpu: cortexm*: move cpu_conf.h stuff from cpu.h into cpu_conf_common.h
2016-03-05 18:20:17 +01:00
2b010b5337
core: rename tcb_t -> thread_t, move into thread.h
2016-03-05 18:20:17 +01:00
Joakim Nohlgård
f98b80f75f
Merge pull request #3504 from locicontrols/cc2538-gpio-init
...
cpu/cc2538: initialize the GPIO controller to a default state
2016-03-04 16:01:18 +01:00