1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

1084 Commits

Author SHA1 Message Date
Joakim Gebart
cc27846ac3 cpu/stm32f4/include/stm32f415xx.h: Trailing whitespace 2015-05-09 09:17:27 +02:00
Joakim Gebart
12554b1537 cpu/stm32f3/include/stm32f334x8.h: Unix line endings 2015-05-09 09:16:56 +02:00
Joakim Gebart
03745f7884 cpu/nrf51822: Unix line endings 2015-05-09 09:13:26 +02:00
Joakim Gebart
7a84faf8bc cpu/lpc2387/linkerscript.x: Tabs->Spaces 2015-05-09 09:11:37 +02:00
Joakim Gebart
9ae63bac0b cpu/atmega_common/avr-libc-extra/time.h: trailing whitespace 2015-05-09 09:10:41 +02:00
Joakim Gebart
e9c567107d all: remove extra blank lines at the end 2015-05-09 09:10:08 +02:00
bapclenet
bfaa4ea1e3 Merge pull request #2929 from bapclenet/samr21/rtc_isr
samd21/rtc_safety_isr
2015-05-08 14:39:14 +02:00
bapclenet
fa571013ee samr21/rtc safety isr 2015-05-07 20:18:49 +02:00
Joakim Gebart
f15fc173b9 arm7: Add ARCH_HAS_ATOMIC_SET_RETURN 2015-05-07 18:52:13 +02:00
René Kijewski
96ca6a6bef x86: Add atomic_cas implementation 2015-05-07 18:52:13 +02:00
Joakim Gebart
afc1dd3a6d cortex-m4: Add atomic_cas implementation 2015-05-07 18:52:13 +02:00
Joakim Gebart
b7db351400 cortex-m3: Add atomic_cas implementation 2015-05-07 18:52:13 +02:00
Joakim Gebart
46b9358e84 native: Remove generic atomic_set_return implementation
The removed implementation is the same as the generic implementation in core/atomic.c
2015-05-07 18:52:13 +02:00
Joakim Gebart
215ccc1213 core: Introduce atomic counters
- Move generic implementation of atomic_set_return to core/atomic.c
 - Generic implementation of atomic compare and swap in core/atomic.c
 - atomic_cas is used to implement atomic counters in core/include/atomic.h
 - atomic_int_t is an atomic integer type
 - ATOMIC_INIT can be used as an initializer for atomic_int_t
 - ATOMIC_VALUE gets a reference to the value of an atomic integer
2015-05-07 18:52:13 +02:00
Joakim Gebart
988ae54e4f cortex-m3_common: Homogenize documentation tags against Cortex-M0, Cortex-M4. 2015-05-07 18:52:13 +02:00
df3ed49305 cpu: samd21: switch to hwtimer compat wrapper 2015-05-06 12:04:53 +02:00
Peter Kietzmann
19425f56b0 Merge pull request #2872 from gebart/pr/kinetis-spi-slave-warnings
kinetis: Add SPI_[2-7] to spi_transmission_begin
2015-04-29 13:24:56 +02:00
Joakim Gebart
fd46cb2364 kinetis: Add SPI_[2-7] to spi_transmission_begin
Fix compiler warning about unhandled switch cases.
2015-04-28 22:21:57 +02:00
Hauke Petersen
6bf31c6e01 cpu/nrf51822: fixed spi_transfer_bytes 2015-04-28 16:01:48 +02:00
Oleg Hahm
3dd3bbb461 transceiver: use transceiver specific broadcast 2015-04-19 20:35:11 +02:00
Hauke Petersen
4a734d51ca Merge pull request #2798 from FrancescoErmini/extend_sam3x_gpio
cpu/sam3x: extend gpio implementation
2015-04-17 11:52:50 +02:00
Peter Kietzmann
3922f6e04c Merge pull request #2817 from jfischer-phytec-iot/pr@kinetis-enable-hwcs
kinetis_common: add a option to enable hardware CS for kinetis spi
2015-04-17 10:54:52 +02:00
Johann Fischer
36e89175b8 cpu/kinetis_common/spi.c: add a option to use hardware cs (PCS0 only)
minor fixes:
  - get rid of compiler warning "value 'SPI_1' not handled in switch"
  - add a giant macro to avoid redundant code in spi_init_master
2015-04-17 09:05:37 +02:00
Francesco Ermini
ca743ae97b cpu/sam3x: extend gpio implementation
fix functions arguments

extended sam3x GPIO from 16 to 31

fix GPIO_NUMOF to 32

add GPIOs

extend GPIO 16-31  for ArduinoDue/UDOO

fix white space at the end  gpio_clear
2015-04-15 17:56:00 +02:00
Hauke Petersen
5893ca8851 cpu/stm32f1: fixed GPIO interrupt cb arg handling 2015-04-15 15:39:57 +02:00
Peter Kietzmann
7c870f8730 Merge pull request #2767 from bapclenet/samr21/RTC
samr21/RTC
2015-04-10 11:11:00 +02:00
Oleg Hahm
c1ecccfbd8 Merge pull request #2282 from gebart/pr/k60-initial
Add support for Kinetis K60 CPUs and Eistec Mulle IoT board
2015-04-10 00:22:21 +02:00
Peter Kietzmann
33133c677e Merge pull request #2701 from gebart/pr/kinetis-gpio-lut
kinetis: Refactor GPIO to use a look-up-table
2015-04-09 16:10:12 +02:00
Joakim Gebart
7f64920cd7 kinetis: Refactor GPIO to use a look-up-table
Saves a bunch of ROM space

mulle, gcc-4.9.2:
   text    data     bss     dec     hex filename
  20800     216   65320   86336   15140 /data/riotbuild/riotproject/tests/periph_gpio/bin/mulle/periph_gpio.elf
  18992     216   65320   84528   14a30 /data/riotbuild/riotproject/tests/periph_gpio/bin/mulle/periph_gpio.elf
  diff = 1808
  36080     272   65264  101616   18cf0 /data/riotbuild/riotproject/examples/default/bin/mulle/default.elf
  34296     272   65264   99832   185f8 /data/riotbuild/riotproject/examples/default/bin/mulle/default.elf
  diff = 1784
2015-04-09 13:53:21 +02:00
bapclenet
edfb255a5d samr21/RTC
Solve issue #2261 by using the external 32,768KHz Oscillator
2015-04-09 10:05:09 +02:00
d0dfbf0079 cpu: stm32f3: periph: gpio: fix possibly uninitialized variable access 2015-04-08 19:52:14 +02:00
8653e685bc stm32f3: gpio: fix isr2 2015-04-08 19:52:14 +02:00
bcb206be61 cpu: stm32f3: add myself as author 2015-04-08 19:52:03 +02:00
bb6b04bfaf cpu: stm32f3: SPI: remove empty line 2015-04-08 19:52:03 +02:00
cfcd06964a cpu: stm32f3: SPI: force 8bit transfers 2015-04-08 19:52:03 +02:00
333dae4c57 stm32f3: spi: ifdef stm32f303vc specific de/initialization 2015-04-08 19:52:03 +02:00
Cenk Gündoğan
4fae22bf3d cpu/native: do not exit when real_read returns 0 2015-04-06 10:18:46 +02:00
José Roberto de Souza
684b081a16 x86: fix FPU lazy swap
The ucontext->x86_fxsave is initialize as 512 bytes of zeros, but it
is not a valid value to be set onto FPU registers, causing a General
Protection Fault:

Interrupt 0x0d (General Protection Fault) while handling 0x07 (Device not available)
EAX=0012f4c0  ECX=001336e4  EDX=001334ac  EBX=001336e0
ESP=00123784  EBP=001237c8  ESI=00000200  EDI=00000000
Error code=00000000
CR0=80010031  CR2=00000000  CR3=0012d000  CR4=000001e0
EIP=0000:80010031  EFLAGS=0012d000
<stack trace>
00000000
???
</stack trace>
Halting.

So lets copy the initial state of FPU registers before FPU is used
and set it as the initial state of FPU to new threads(coroutine).
2015-04-02 19:27:17 -03:00
Joakim Gebart
de486ff79f k60: Initial commit of K60 CPU.
Tested on the following Freescale Kinetis K60 CPUs:

 - MK60DN512VLL10

The port should with a high probability also support the following variations of the above CPUs (untested):

 - MK60DN256VLL10

And possibly also:

 - MK60DX256VLL10
 - MK60DX512VLL10
 - MK60DN512VLQ10
 - MK60DN256VLQ10
 - MK60DX256VLQ10
 - MK60DN512VMC10
 - MK60DN256VMC10
 - MK60DX256VMC10
 - MK60DN512VMD10
 - MK60DX256VMD10
 - MK60DN256VMD10

Currently not working on the following CPUs (Missing PIT channel
chaining necessary for kinetis_common/periph/timer implementation):

 - MK60DN256ZVLL10
 - MK60DN512ZVLL10
 - MK60DX256ZVLL10
 - MK60DX512ZVLL10
 - MK60DN512ZVLQ10
 - MK60DN256ZVLQ10
 - MK60DX256ZVLQ10
 - MK60DN512ZVMC10
 - MK60DN256ZVMC10
 - MK60DX256ZVMC10
 - MK60DN512ZVMD10
 - MK60DX256ZVMD10
 - MK60DN256ZVMD10

Regarding header files from Freescale:

   dist/tools/licenses: Add Freescale CMSIS PAL license pattern

Redistribution is OK according to:

https://community.freescale.com/message/477976?et=watches.email.thread#477976

Archive copy in case the above link disappears:

https://web.archive.org/web/20150328073057/https://community.freescale.com/message/477976?et=watches.email.thread

Applies to:
 - MK60DZ10.h (K60 variant)
2015-03-28 08:30:13 +01:00
Ludwig Ortmann
1572c94e41 cpu/samd21: implement gpio_toggle properly
Before, gpio_toggle relied on gpio_read which is inefficient and does not
work with GPIOs configured as outputs.
2015-03-25 22:05:05 +01:00
Hauke Petersen
ad69413d22 Merge pull request #2669 from gebart/pr/cortex-thread-arch-asm
cortex-m4_common: Refactor context save/restore
2015-03-25 18:21:11 +01:00
Joakim Gebart
791c57720a cortex-m4_common: Refactor context save/restore
Clang 3.6 is stricter than GCC and previous releases of Clang regarding
naked functions and now only allows inline asm inside naked functions.

This is a refactoring of the functions isr_pendsv, isr_svc,
context_save, context_restore to still be naked functions but allow
building with Clang 3.6
2015-03-21 18:43:01 +01:00
Ludwig Ortmann
cf637942cc *: add missing blank lines
Some functions had no blank lines to separate them from their
neighborhood.
2015-03-21 16:34:59 +01:00
James Hollister
93cff5613f cpu/native: Fix for missing malloc.h in OSX 2015-03-21 01:41:54 -07:00
Hauke Petersen
66e7646091 cpu/nrf51822: added SPI driver implementation 2015-03-17 10:37:47 +01:00
Hauke Petersen
4ad36a799e cpu/stm32f0: added support for stm32f091rc 2015-03-16 16:23:44 +01:00
Thomas Eichinger
c633c083db Merge pull request #2597 from haukepetersen/add_stm32f0_corepanic
cpu/stm32f0: included core_panic module
2015-03-16 15:15:33 +01:00
Hauke Petersen
3436a10039 cpu/stm32f0: included core_panic module 2015-03-13 17:40:37 +01:00
Hauke Petersen
ec17730c38 cpu/stm32f0: fixed gpio interrupt routines
- guarded calls in case no interrupt is defined
- eneabled detection of multiple, simoultaneous events
2015-03-13 15:32:48 +01:00
Thomas Eichinger
1eac81b562 Merge pull request #2593 from haukepetersen/fix_stm32f0_timerdef
cpu/stm32f0: cleanup for timer IRQ macro
2015-03-13 14:23:41 +01:00