Martine Lenders
3225f020e5
Merge pull request #5964 from kaspar030/make_fix_appdir_bindir
...
make: remove trailing slash from BINDIR and APPDIR variables
2016-10-24 14:33:40 +02:00
smlng
89978ab8e5
cc2538: add netstat_l2
2016-10-21 21:56:04 +02:00
Cenk Gündoğan
9ef148e931
cpu/atmega_common: include time.h for time_t
2016-10-20 15:33:01 +02:00
Ian Martin
b7bd6b3479
cpu/cortexm_common: add Memory Protection Unit (MPU) driver
2016-10-19 11:12:36 -04:00
PeterKietzmann
f57e185f5d
cpu/stm32f1: remove leftover from #5921
2016-10-19 12:21:42 +02:00
PeterKietzmann
bb4bf51020
cpu/stm32f1: improve SPI driver speed
2016-10-19 08:56:18 +02:00
560a509036
make: remove trailing slash from BINDIR variable
2016-10-18 23:27:59 +02:00
Hauke Petersen
470fe20a40
cpu/msp430fxyz: added bifields for SPI STAT reg
2016-10-17 20:47:27 +02:00
Hauke Petersen
6cd8d98f1d
cpu/msp430fxyz: improved SPI driver speed
2016-10-17 20:47:26 +02:00
Ludwig Ortmann
cabb20036f
cpu/samd21: implement low power modes
2016-10-16 20:20:55 +02:00
Ludwig Ortmann
0b72be7c87
native: add syscall-leave trampoline
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
237340b3e3
native: add thread_yield_higher misuse warning
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
83886d61c7
native: start with interrupts disabled
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
3b6d0595ef
native: indicate interrupt status in ISR context
2016-10-15 07:50:44 +02:00
Ludwig Ortmann
535eda8805
native: improve comments, coding style
2016-10-15 07:40:49 +02:00
Martine Lenders
d1111dcafa
Merge pull request #5918 from PeterKietzmann/fix_msp430f1_spi_clk
...
cpu/msp430: fix spi clk config for msp430f1xxx
2016-10-14 12:52:04 +02:00
PeterKietzmann
17b322494d
cpu/msp430: remove non-effective code for msp430f2xxx
2016-10-14 11:41:00 +02:00
PeterKietzmann
d4ee66cfb7
cpu/msp430: fix spi clk config for msp430f1xxx
2016-10-14 11:40:05 +02:00
Joakim Nohlgård
11c11a5ecf
Merge pull request #5727 from kaspar030/fix_panic_compile
...
cpu: cortexm_common: fix compile warning
2016-10-14 10:08:42 +02:00
88d03aebfe
cpu/stm32f0: adding stm32f030r8 support
2016-10-12 11:16:03 +02:00
Martine Lenders
2e953b7261
Merge pull request #5907 from jfbortolotti/nRF52_linker
...
cpu: cortexm_common: Remove useless path when setting default value for LINKER_SCRIPT
2016-10-11 10:21:44 +02:00
Sebastian Meiling
be38643a2d
Merge pull request #5915 from aeneby/send_wait_v2
...
cpu/cc2538: Wait for transmission to complete before returning from send()
2016-10-10 13:23:44 +02:00
3dfafde027
cpu: cortexm_common: fix compile warning
2016-10-07 12:06:43 +02:00
Hauke Petersen
ac6b73a35c
cpu/samd21(common): cleaned up pad selection macros
...
- renamed uart and spi pad selection macros to consistent style
- adapted uart and spi implementation to use new names
2016-10-07 11:02:14 +02:00
Peter Kietzmann
9063121558
Merge pull request #5910 from haukepetersen/fix_sam0_muxstuff
...
cpu/sam21: removed superfluous gpio_init_sercom
2016-10-07 08:08:02 +02:00
Aaron Sowry
191dc0ffad
cpu/cc2538: Wait for transmission to complete before returning from send()
2016-10-07 12:25:38 +13:00
Francisco Acosta
ba6a8e06b0
Merge pull request #5475 from aabadie/arduino_zero
...
boards/arduino-zero: add initial support
2016-10-06 20:26:33 +02:00
Peter Kietzmann
108832d6fb
Merge pull request #5912 from haukepetersen/fix_sam0_periphcpu
...
cpu/sam21_common: remove unused defines
2016-10-06 08:57:05 +02:00
Hauke Petersen
b2d996034f
cpu/sam21_common: remove unused defines
2016-10-05 15:18:39 +02:00
Hauke Petersen
d3e41e7b58
cpu/sam21: removed superfluous gpio_init_sercom
...
This function was a duplication of the existing gpio_init_mux,
where the exiting function is the more general one, as the mux
inititalization is not only valid for the sercom module...
2016-10-05 13:19:52 +02:00
Kees Bakker
bac5cda1e3
periph/i2c: convert char to uint8_t where applicapable
...
In general, data transferred through I2C are bytes and thus should have
type uint8_t, not char.
Also convert uint8_t ptrs to void ptrs
2016-10-04 20:26:39 +02:00
68acc8857e
boards/arduino-zero: add initial support
2016-10-04 18:34:51 +02:00
Jeff Bortolotti
488723b394
cpu: cortexm_common: Remove useless path when setting default value for LINKER_SCRIPT
2016-10-03 23:19:00 +02:00
Martine Lenders
536aec648b
Merge pull request #5895 from jfbortolotti/nRF52_linker
...
cpu: cortexm_common: allow overriding of linker script
2016-10-03 16:04:27 +02:00
Peter Kietzmann
d1c3233242
Merge pull request #5892 from gebart/pr/kinetis-gpio-include
...
kinetis: Add stddef, stdint missing includes for gpio.c
2016-09-30 08:33:20 +02:00
Jeff Bortolotti
92e533de74
cpu: cortexm_common: allow overriding of linker script
2016-09-29 23:56:47 +02:00
f2c5314643
Merge pull request #5860 from keestux/add-sodaq-autonomo
...
boards: add sodaq autonomo
2016-09-29 22:00:38 +02:00
Joakim Nohlgård
1a2b2575fb
kinetis: Add stddef, stdint missing includes for gpio.c
2016-09-29 15:47:53 +02:00
Peter Kietzmann
d33786d0c7
Merge pull request #5706 from aabadie/nucleo_f446
...
boards: initial support of ST Nucleo f446
2016-09-29 13:25:45 +02:00
Kees Bakker
076d5bda11
boards: add support for SODAQ Autonomo
...
The following features were tested (briefly):
* UART (the first)
* I2C using a BMP180 on a SODAQ TPH board
* SPI0, connected to the on-board serial data flash (only DevID was read
using the periph_spi test program)
* xtimer is working (it's the same code as in samr21)
boards/sodaq-autonomo: Disable the "big" unittests because it does not fit
2016-09-28 18:02:16 +02:00
Kees Bakker
6aa346fbad
cpu/sam21_common: some corrections to CMSIS samd21 include files
...
See README.md for details
* eliminate trailing white space
* remove define of LITTLE_ENDIAN
2016-09-28 18:01:12 +02:00
Kees Bakker
3123b501b5
cpu/sam21_common: add samd21 include files from ASF CMSIS
...
This adds support for all samd21 variants. Notice that the previous samd21
was moved to cpu/samr21
To use this cpu variant you must set at least the following in your boards
Makefile.include:
export CPU = samd21
export CPU_MODEL = samd21j18a # Not sure if this is used
CFLAGS += -D__SAMD21J18A__ # or whatever variant you have
The samd21 include files were copied from ASF 3.30
2016-09-28 18:01:12 +02:00
b50ab2f46e
cpu/stm32f4: adding support for stm32f446re cpu
2016-09-28 17:00:56 +02:00
Martine Lenders
ff2f9983f0
Merge pull request #5880 from OlegHahm/fix_debug_newlines
...
debug: add missing line breaks
2016-09-28 15:21:28 +02:00
Peter Kietzmann
4fa4626c15
Merge pull request #5861 from hamilton-mote/fix-samr21e
...
cpu/sam21_common: support SAMR21E18
2016-09-28 09:25:39 +02:00
Oleg Hahm
b428979a1d
debug: add missing line breaks
2016-09-27 23:38:41 +02:00
Peter Kietzmann
f7056cf976
Merge pull request #5868 from immesys/patch-1
...
samd21: spi: fix power regression
2016-09-27 21:25:44 +02:00
smlng
77250f89a3
cc2538: disable l2 ack recv irq
2016-09-27 15:04:39 +02:00
Michael Andersen
68f9916ab6
samd21: spi: fix power regression
...
The MISO pin cannot be left floating as it increases power consumption
2016-09-26 19:59:51 -07:00
Peter Kietzmann
436ff13c1c
Merge pull request #5804 from aeneby/no_mutex_lock
...
cpu/cc2538: Remove superfluous mutex lock
2016-09-26 10:46:39 +02:00
Oleg Hahm
63615157ef
Merge pull request #5819 from makomi/stm32l1
...
cpu/stm32l1: uart: suppress cppcheck nullPointer errors
2016-09-23 20:15:50 +02:00
Oleg Hahm
797ab580c8
Merge pull request #5818 from makomi/stm32f3
...
cpu/stm32f3: uart: suppress cppcheck nullPointer errors
2016-09-23 20:13:29 +02:00
Oleg Hahm
50215e9b5d
Merge pull request #5817 from makomi/stm32f0
...
cpu/stm32f0: uart: suppress cppcheck nullPointer errors
2016-09-23 19:50:31 +02:00
Oleg Hahm
ed3aa6c46e
Merge pull request #5835 from mali/timer
...
cpu/atmega_common: fix timer_set_absolute return code
2016-09-23 19:35:22 +02:00
Michael Andersen
41190ac2a8
cpu/sam21_common: support SAMR21E18
2016-09-22 16:24:09 -07:00
0e45604765
Merge pull request #5743 from keestux/refactor-samd21
...
Refactor samd21
2016-09-22 14:54:57 +02:00
b2b42c7b71
Merge pull request #5451 from mali/uno
...
boards: add arduino uno and duemilanove support
2016-09-22 09:29:49 +02:00
Ludwig Knüpfer
6d30ced410
Merge pull request #5763 from jthacker/avr_thread_arch_isr_stack_usage
...
atmega: use software interrupt for context swap
2016-09-21 21:13:05 +02:00
Kees Bakker
d367090c44
cpu/sam21_common: remove define of LITTLE_ENDIAN
...
This define conflicts with LITTLE_ENDIAN defined in
include/machine/endian.h which is part of gcc-arm-none-eabi.
Also, the define does not seem to be used by the ASF included files.
2016-09-21 20:44:38 +02:00
Kees Bakker
e118525731
cpu/sam21_common: add C++ wrapper to sam0.h
2016-09-21 20:40:49 +02:00
Kees Bakker
1b307b3802
cpu/sam21_common: eliminate trailing white space in CMSIS include files
2016-09-21 20:40:28 +02:00
Kees Bakker
ea8b90fa5f
cpu/samd21: uart: now using padd setting from board config
...
Notice the extra fields in uart_conf_t for rx_pad and tx_pad.
2016-09-21 20:34:22 +02:00
Kees Bakker
845ef0decd
cpu/samd21: Refactor spi using ArduinoCore as example
...
The pinmux is now part of the board config. The pad setting is done with
clear names instead of numbers.
2016-09-21 20:34:22 +02:00
Kees Bakker
f794bd4c8e
cpu/samd21: spi: change #ifdef's to #if's
...
The board config can define SPI_1_EN as 0, and in that case #ifdef won't
work.
Add some more comments, and fix typos.
2016-09-21 20:34:22 +02:00
Kees Bakker
574b565e2a
cpu/samd21: add helper functions spi_power_on/off
2016-09-21 20:34:22 +02:00
Kees Bakker
2a4655b6f8
cpu/samd21: rewrite i2c_init_master to make use of gpio_init_sercom
...
The former i2c_init_master was too complicated. It was trying to set IN/OUT
mode of the pins, but all that is needed is to set the proper MUX.
Also the configuration for the boards was incomplete (no MUX, no pad
setting).
It was tested on a SODAQ Autonomo, but not on a samr21-xpro
2016-09-21 20:34:22 +02:00
Kees Bakker
be1113fa6c
cpu/sam21_common: move i2c.c from samd21 to sam21_common
...
Notice that saml21 does not use I2C (yet).
2016-09-21 20:34:22 +02:00
Kees Bakker
4ad3313ae5
cpu/sam21_common: add a few typedefs for SERCOM
...
A generic function is added to initialize a SERCOM.
Notice that uart_conf_t was expanded with pad settings, but it isn't used
yet.
2016-09-21 20:34:21 +02:00
Kees Bakker
8644b5f7a0
cpu/samd21: introduce sam0.h so that we can select samr21.h or other
...
In the Makefile.include of the board it is required to set the correct
define.
Currently only SAMRG18A is supported, as required by samr21-xpro.
2016-09-21 19:43:30 +02:00
Kees Bakker
88e84f68ff
cpu/sam21_common: update ASF CMSIS (samr21) include files using ASF 3.21
...
Notice that RIOT was using FDPLL96M, which is indeed the name in the
datasheet. But Atmel is using GCLK_GENCTRL_SRC_FDPLL.
2016-09-21 19:43:30 +02:00
Kees Bakker
2869d7729d
cpu/samr21: rename ASF include files to prepare for ASF update
2016-09-21 19:43:30 +02:00
Joakim Nohlgård
6be334b4f4
Merge pull request #5833 from immesys/fix-i2c-checks
...
samd21: i2c: check all busstate bits
2016-09-20 10:06:40 +02:00
Michael Andersen
e367ab93f6
samd21: i2c: improve busstate comparison
2016-09-19 10:54:17 -07:00
Matthias Kolja Miehl
c5cfacebc3
cpu/stm32l1: uart: make sure 'dev' is != NULL to avoid nullPointer errors
2016-09-13 22:22:48 +02:00
Martine Lenders
8a74475e70
Merge pull request #5761 from mali/rmdeadcode
...
boards/atmega_common: remove dead code on link
2016-09-12 17:01:15 +02:00
Martine Lenders
03fbe9c2a5
Merge pull request #5766 from zhuoshuguo/fix_cpu_atmega_header_include_guards
...
fix cpu/atmega header include guardes.
2016-09-12 17:00:56 +02:00
Matthias Kolja Miehl
0bb7050c60
cpu/stm32f3: uart: make sure that 'port' and 'dev' are !=NULL
...
This fixes some cppcheck nullPointer errors.
2016-09-11 17:19:59 +02:00
Matthias Kolja Miehl
2ba795eb81
cpu/stm32f0: uart: make sure that 'port' and 'dev' are !=NULL
...
This fixes some cppcheck nullPointer errors.
2016-09-11 16:56:35 +02:00
Laurent Navet
4c9c3ab7d6
cpu/atmega_common: fix timer_set_absolute return code
...
according to timer documentation, timer_set and timer_set_absolute should
return 1 on succes, not 0.
2016-09-10 00:12:39 +02:00
Michael Andersen
082d8e85a9
samd21: i2c: clear timeout_counter
...
If not cleared, long writes timeout incorrectly
2016-09-07 18:21:38 -07:00
Jon Thacker
e0365e0bf9
atmega: use software interrupt for context swap
...
Fixes #5745
For AVR based boards, three defines must be defined AVR_CONTEXT_SWAP_INIT,
AVR_CONTEXT_SWAP_INTERRUPT_VECT, and AVR_CONTEXT_SWAP_TRIGGER.
These defines are used to trigger a software interrupt used for context
switching.
When AVR_CONTEXT_SWAP_INTERRUPT_VECT is handled, the scheduler is run
and a context swap will happen if necessary, with the resulting thread
starting following the reti instruction. This results in threads running
at normal priority instead of at interrupt priority.
Atmega devices do provide a pure software interrupt. The method used
here for waspmote-pro and arduino-mega2560 is to use pin change
interrupts, set the pin to act as an output, and toggle the value to
simulate a software interrupt. The main limitation here is that a
physical pin is now occupied and must be defined for each board
supported by RIOT. On the plus side, it provides an easy method for
detecting context swaps with an oscilloscope.
2016-09-07 14:35:53 -05:00
Aaron Sowry
2ba43d560f
cpu/cc2538: Remove superfluous mutex lock
2016-09-04 20:51:51 +12:00
Oleg Hahm
908f5489b6
Merge pull request #5653 from aeneby/rssi_lqi_fix_v2
...
cpu/cc2538: Make ED and LQI values 802.15.4 compliant
2016-09-04 10:27:02 +02:00
Laurent Navet
3f0e1862a8
cpu/atmega328p: add atmega328p mcu support
...
add atmega328p support with:
uart, timer, spi and gpio
2016-09-02 22:26:19 +02:00
Shuguo Zhuo
db3a349a51
cpu/atmega: revised header include guards.
2016-09-01 18:32:17 +02:00
26e4004de4
Merge pull request #5397 from OTAkeys/pr/stm32f2xx
...
cpu: add stm32f2xx family support (based on #4497 )
2016-08-31 21:14:37 +02:00
kYc0o
5e3747ea8b
Merge pull request #5590 from mali/atmega_common
...
cpu/atmega_common: improve to add smaller atmega MCUs.
2016-08-31 18:29:53 +02:00
BytesGalore
c34e9d268c
Merge pull request #5785 from x3ro/fix-mci-driver-timer-issue
...
lpc2387: Fix wrong factor in driver poll-timer
2016-08-30 21:09:17 +02:00
Peter Kietzmann
28638bea92
Merge pull request #5725 from aeneby/tx_underrun_fix
...
cpu/cc2538: wait for ongoing transmission before flushing TX FIFO
2016-08-30 21:07:14 +02:00
Lucas Jenss
1cf1f59ca9
lpc2378: Fix wrong factor in driver poll-timer
...
Fixes #4530
2016-08-30 19:59:34 +02:00
Joakim Nohlgård
455fb6cd4d
Merge pull request #5742 from kaspar030/fix_lto
...
LTO fixes
2016-08-29 19:00:09 +02:00
d1198b489d
cpu: k60: rename vector.c -> vectors.c, add to SRC_NOLTO
2016-08-29 17:29:53 +02:00
76fc7a56c9
cpu: kw2x: rename vector.c -> vectors.c, add to SRC_NOLTO
2016-08-29 17:29:45 +02:00
5ab97fe38b
cpu: build cortexm vectors.c without LTO
2016-08-29 13:30:17 +02:00
5a03f08f91
cpu: cortexm_common: compile thread_arch.c without LTO
2016-08-29 13:30:17 +02:00
0bd2805b0c
cpu: cortexm_common: explicitly define isr_pendsv and isr_svc
2016-08-29 13:30:17 +02:00
Aaron Sowry
5f71cc82fb
cpu/cc2538: wait for ongoing transmission before flushing TX FIFO
2016-08-25 21:25:11 +12:00
Jon Thacker
0cc65db1b2
cpu/atmega_common: Add support for double speed baud generator
...
* Add support for U2X switch to double transmission speed
* Provides lower error rates when needed
* Add support for static baud rate calculation, reduces computation by 10x
* adds support for statically enabling double speed baud
2016-08-20 08:49:30 -05:00
Laurent Navet
eed73beaa1
cpu/atmega_common: prepare for atmega328p inclusion
...
use generic avr/libc definition for conditionnal compilation.
eg: use #ifdef(PORTG) or #ifdef(TIMER_0_ISRC) instead of #ifdef(Atmega328p)
This is more generic and simplify future boards support.
2016-08-20 12:23:48 +02:00
Laurent Navet
2cd918a07a
atmega_common: abstract Power Reduction Register
...
PR Register is PRR0 on atmega2560 and atmega1281
but PRR on atmega328p.
this abstracts as atmega Power Reduction Register as MEGA_PRR.
2016-08-20 12:21:32 +02:00
Laurent Navet
31029daaab
boards/atmega_common: remove dead code on link
...
Don't include unused functions and data in binary.
2016-08-18 22:08:55 +02:00
Ian Martin
abae801105
cpu/cc2538/periph/timer overhaul. support 16-bit and 32-bit modes
2016-08-16 15:07:26 -04:00
Joakim Nohlgård
8947a3c49c
cpu/kinetis_common: Add debugging messages to i2c driver
2016-08-10 19:40:39 +02:00
Joakim Nohlgård
5f313898bf
cpu/lpc1768: Add __attribute__((used)) to interrupt vector
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
16469543db
cpu/x86/x86_interrupts.c: Add __attribute__((used)) to isr functions
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
37eece1961
cpu/atmega2560/startup.c: Add __attribute__((used)) to init functions
2016-08-10 16:18:29 +02:00
Joakim Nohlgård
6d90267d40
cpu/cortexm_common: Use gcc-ar when building with LTO
...
gcc-ar is a wrapper supplied by gcc for properly handling thin LTO objects.
2016-08-10 16:18:28 +02:00
Peter Kietzmann
5c8236217e
Merge pull request #5720 from lebrush/stm32f4-uncrustify-periph_cpu
...
cpu/stm32f4: uncrustify periph_cpu
2016-08-09 11:06:27 +02:00
Martine Lenders
f1b519de70
Merge pull request #5713 from basilfx/bugfix/msp430_linker
...
boards: msp430: garbage collect dead code when linking.
2016-08-05 14:19:58 +02:00
Martine Lenders
16cae9771f
Merge pull request #5613 from OTAkeys/pr/async_read_cb_args
...
cpu/native: add args to async_read callback
2016-08-05 14:17:18 +02:00
Martine Lenders
e055a644fa
Merge pull request #5175 from antoinefaure/entry_point_gdb
...
cpu: cortex_common: Add entry point in ldscript to tell gdb where to start
2016-08-05 14:13:03 +02:00
Victor Arino
411f7c9585
cpu/stm32f4: uncrustify periph_cpu
2016-08-03 15:04:32 +02:00
Martine Lenders
bd2429f299
cpu: drivers: adapt devices for netdev2 parameter type change
2016-08-03 12:30:51 +02:00
Bas Stottelaar
7cf1c46d2e
boards: msp430-common: remove dead code when linking.
2016-08-01 18:35:21 +02:00
Kees Bakker
ac3683b09f
cpu/samd21:i2c: the wait for SYNCBUSY must come after enable or disable
...
The power on/off code is refactored somewhat.
2016-07-28 22:01:12 +02:00
Kees Bakker
64cc7c63c8
cpu/samd21/periph/i2c: power off did enable instead of disable
2016-07-28 21:33:28 +02:00
Ludwig Knüpfer
05d4b2f8fa
cpu/native: fix thread_stack_init
...
The pointer arithmetic for the calculation of the context storage was off
due to the change of the stack's pointer type from unsigned int to char.
Fix offset calculation by not adjusting for unsigned int width anymore.
2016-07-26 20:07:08 +02:00
Ludwig Knüpfer
d639f0b9a3
cpu/native: rewrite cpu_print_last_instruction
...
circumvent assembly by using a GCC/LLVM builtin
2016-07-26 12:44:43 +02:00
Jason Tran
4136b95930
cpu/cc2538: fix debug statements
2016-07-25 18:35:05 -07:00
Aaron Sowry
66b36397b6
cpu/cc2538: Enable CRC checking of received packets ( #5654 )
2016-07-25 12:34:44 -04:00
Antoine Faure
31e675b359
cpu: cortex_common: Add entry point to tell gdb where to start
2016-07-23 13:27:47 +02:00
kYc0o
51a4fee948
Merge pull request #5574 from PeterKietzmann/msp430_gpio_fix
...
cpu/msp430: initialize gpio as input OR output
2016-07-22 15:55:43 +02:00
Joakim Nohlgård
5cd91bc784
cortexm: Hard fault: Try to output as much as possible even with corrupt stack
2016-07-20 13:25:23 +02:00
kYc0o
91410f5259
Merge pull request #5626 from aabadie/default_channel
...
makefiles: expose a single DEFAULT_CHANNEL variable
2016-07-18 14:26:24 +02:00
Aaron Sowry
105c31925f
cpu/cc2538: Make ED and LQI values 802.15.4 compliant
2016-07-17 09:45:47 +12:00
Martine Lenders
4ac7d81420
Merge pull request #5634 from kaspar030/nordic_softdevice
...
nrf52dk: add BLE/6lo support utilizing Nordic's SoftDevice
2016-07-16 16:57:29 +02:00
Aaron Sowry
a301c37c2e
cpu/cc2538: Remove union names from structs
...
Make the unions anonymous, since this makes referencing
their bytes much simpler.
2016-07-16 12:55:12 +12:00
271cbc26b8
drivers/cc2420 & cpu/cc2538: adding support for default channel configuration
2016-07-14 17:50:50 +02:00
Oleg Hahm
08bcfae86a
Merge pull request #5602 from gebart/pr/gcc6-fixes
...
cpu: Fix array-bounds errors with GCC 6
2016-07-14 10:58:28 +02:00
kYc0o
03d380845e
Merge pull request #5593 from jthacker/atmega_regs_common
...
cpu/atmega_common: generalize register/peripheral definitions
2016-07-13 20:17:36 +02:00
Joakim Nohlgård
0a847d53a7
cpu: Fix array-bounds errors with GCC 6
2016-07-13 19:23:42 +02:00
e012df1bac
nrf52dk: add BLE/6lo support utilizing Nordic's SoftDevice
2016-07-13 17:06:57 +02:00
d68f425d32
Revert "nrf52dk: add 6lowpan over BLE support using Nordic's softdevice"
2016-07-13 16:58:11 +02:00
0182bbd6fd
nrf52dk: add BLE/6lowpan support utilizing Nordic's SoftDevice
2016-07-13 16:17:46 +02:00
f45c7d4b9e
cpu: cortexm_common: allow overriding of linker script
2016-07-13 16:16:46 +02:00
Aaron Sowry
a2ba22dd0f
cpu/cc2538: Add RF driver
2016-07-13 14:19:45 +12:00
Peter Kietzmann
048daf1b3b
Merge pull request #5559 from gebart/pr/ps-stack-pointer
...
sys/ps: Add current stack pointer to DEVELHELP output
2016-07-12 11:23:15 +02:00
Joakim Nohlgård
96473701de
Merge pull request #5580 from zhuoshuguo/revise_cpu_stellaris_include_header_guards
...
cpu/stellaris: revise header include guards.
2016-07-12 10:32:01 +02:00
Joakim Nohlgård
b02e0eca47
ps: Add current stack pointer and start of stack to isr_stack ps output (DEVELHELP)
2016-07-12 10:17:49 +02:00
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