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

1023 Commits

Author SHA1 Message Date
Hauke Petersen
594d9251c9 Merge pull request #1987 from BytesGalore/EasyCPPMixing_stm32f0discovery_support_fix
cpu/stm32f0 C++ stmf0discovery support fix
2014-11-17 18:21:19 +01:00
Hauke Petersen
d1e57faf34 Merge pull request #1994 from BytesGalore/EasyCPPMixing_samr21_xpro_support_fix
cpu/samd21 C++ samr21-xpro support fix
2014-11-17 18:20:50 +01:00
Martine Lenders
d4e651ad8b Merge pull request #2015 from LudwigOrtmann/native_real-accept
native: add missing syscall declarations
2014-11-17 17:40:32 +01:00
Ludwig Ortmann
8d2a5b22b4 native: add daemonize argv filter
When daemonizing, only the first instance should do so.
2014-11-17 12:51:42 +01:00
Hauke Petersen
bb347e0a30 Merge pull request #1989 from BytesGalore/EasyCPPMixing_stm32f3discovery_support_fix
cpu/stm32f3 C++ stm32f3discovery support fix
2014-11-17 11:21:04 +01:00
Ludwig Ortmann
42e43d5e12 FIXUP: remove erroneous comment 2014-11-17 09:56:03 +01:00
Christian Mehlis
d56ebcbff2 Merge pull request #1932 from haukepetersen/fix_nrf_isrstacksize
cpu/nrf51822: changed ISR stack size to 512 byte
2014-11-16 17:44:20 +01:00
Ludwig Ortmann
acaa6481cb native: add more syscall declarations 2014-11-14 20:52:17 +01:00
Ludwig Ortmann
a1b530a98d native: shutdown -> native_shutdown 2014-11-14 20:51:34 +01:00
Ludwig Ortmann
641cb4c488 native: add accept syscall declaration 2014-11-14 17:49:56 +01:00
BytesGalore
8060825c81 cpu/stm32f3: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
boards/stm32f3discovery: provided c++ feature (cpp)
2014-11-14 13:26:15 +01:00
BytesGalore
3154bc8bc5 cpu/stm32f0: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
boards/stm32f0discovery: provided c++ feature (cpp)
2014-11-14 13:25:02 +01:00
BytesGalore
ae3492b017 cpu/samd12: c++: initial support for c++, added _kill (weak) and weak attribute for _kill_r
boards/samr21-xpro: provided c++ feature (cpp)
2014-11-14 13:20:54 +01:00
Hauke Petersen
6b33ff1a31 Merge pull request #2004 from dangnhat/cpp_for_iot_lab_m3
iot-lab_m3: C++ support
2014-11-14 13:00:49 +01:00
BytesGalore
0de260f5a2 Merge pull request #1985 from BytesGalore/EasyCPPMixing_stm32f4discovery_support_fix
squashed, changed comment and go.
2014-11-14 12:53:22 +01:00
BytesGalore
8c5418e9e5 initial support for c++ for this cpu/board 2014-11-14 11:19:34 +01:00
Pham Huu Dang Nhat
df192b0f25 cpu/stm32f1: c++: added _kill (weak) and weak attribute for _kill_r 2014-11-14 16:55:30 +07:00
Thomas Eichinger
2b0d49c8b1 Merge pull request #1954 from haukepetersen/fix_cortex_irqstacksize
cpu: adjusted IRQ stack sizes for Cortex CPUs
2014-11-14 10:50:51 +01:00
Thomas Eichinger
2382a4d320 native: fix Makefiles for OSX 2014-11-13 16:00:52 +01:00
Hauke Petersen
a3061bccc2 Merge pull request #1827 from haukepetersen/fix_nrf_timer
cpu/nrf51822: fixed timers
2014-11-12 13:21:44 +01:00
Hauke Petersen
2278e72952 cpu/nrf51822: added HFCLK initialization 2014-11-12 13:17:13 +01:00
Hauke Petersen
dc79675888 cpu/sam3x8e: made UART0 work by editing syscalls 2014-11-11 13:05:43 +01:00
Hauke Petersen
3c9c95f7b1 cpu/sam3x8e: added interrupt mode to uart driver 2014-11-11 13:05:02 +01:00
René Kijewski
fdb1190cfa avr: define ssize_t 2014-11-11 10:45:56 +01:00
Ian Martin
7bbdbcc7cb Allow the application's makefile to specify a custom linker script, for example:
LINKERSCRIPT = custom-linkerscript.ld
2014-11-10 14:28:35 -05:00
Oleg Hahm
037571445c Merge pull request #1974 from OlegHahm/cleanup_licenses
licenses: fix miss-spelled & missing boiler plates
2014-11-10 19:53:40 +01:00
Oleg Hahm
39abba1bc2 licenses: fix miss-spelled & missing boiler plates 2014-11-10 18:59:55 +01:00
Hauke Petersen
6cc4a7a6eb Merge pull request #1956 from haukepetersen/fix_stm32f0_timer
cpu/stm32f0: fixed low-level timer driver
2014-11-10 13:58:41 +01:00
Martine Lenders
bbeb4941fa nativenet: add missing include 2014-11-10 05:19:28 +01:00
Hauke Petersen
65520865b1 cpu/stm32f1: adjusted to RTT interface changes 2014-11-07 12:29:31 +01:00
Hauke Petersen
636287a1aa cpu/nrf51822: adjusted to RTT interface changes 2014-11-07 12:29:31 +01:00
Hauke Petersen
19a95bbfbe cpu/stm32f0: fixed low-level timer driver 2014-11-06 17:23:26 +01:00
Hauke Petersen
72b68bc9f0 cpu: adjusted IRQ stack sizes for Cortex CPUs 2014-11-06 15:16:33 +01:00
Thomas Eichinger
d43367e0a2 cpu/stm32f1: fix wrong bit operation in SPI init 2014-11-06 15:09:35 +01:00
benpicco
cedc588d77 Merge pull request #1782 from benpicco/fix_malloc
check if the requested memory is really available in _sbrk_r
2014-11-05 13:21:40 +01:00
Benjamin Valentin
879768397e malloc: check if the requested memory is really available 2014-11-05 12:11:24 +01:00
Hauke Petersen
ac2ff23020 cpu/stm32f1: fixes to i2c driver
- fixes BUSY on initialization
2014-11-04 21:09:40 +01:00
Hauke Petersen
1b1f44c899 cpu/nrf51822: fixed timers
- changed TIMER_0 to be a 24-bit timer -> see Nordic PAN #32
- cleaned up timer initialization code
- added check if an interrupt channel was active
2014-11-04 18:18:23 +01:00
Hauke Petersen
505e184ee5 cpu/nrf51822: changed ISR stack size to 512 byte 2014-11-04 14:50:44 +01:00
Thomas Eichinger
76d0d6c4a2 cpu/stm32f1: fixes for the cpuid driver 2014-11-04 13:11:30 +01:00
Ian Martin
b37698a064 cpu/cc2538: Enable the CC2538's more compact alternate interrupt mapping. 2014-11-03 14:17:00 -05:00
Benjamin Valentin
73f6ac6bce Revert "cpu/cc2538: sbrk() checks if the requested memory is really available."
This reverts commit 81dea364a5.
2014-11-03 18:46:49 +01:00
Christian Mehlis
f3b1753ac7 added spark core board 2014-11-02 14:36:42 +01:00
Hauke Petersen
13a417d02a cpu/stm32f0: optimized GPIO driver implementation 2014-10-31 14:00:46 +01:00
Hinnerk van Bruinehsen
0e065cff2c lint: fix va_end_missing in cpu/native/syscalls.c 2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
9ba980dfd9 cpu: stm32f1 spi: fix typos 2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
145d345edf lint: fix syntaxError warning 2014-10-31 01:24:32 +01:00
Hinnerk van Bruinehsen
e3aa222d6c lint: fix nullPointer errors 2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
aca4724447 lint: fix warnings of possible nullPointer dereferences 2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
a5aeaab87b lint: fix unreadVariable warnings 2014-10-31 01:24:30 +01:00
Hinnerk van Bruinehsen
4b68b9e547 lint: fix redundantAssignment warnings
SQUASH ME: redundantAssignment (remove FAT stuff)

SQUASH ME: into redundantAssignment unnecessary supp
2014-10-31 01:24:29 +01:00
Hinnerk van Bruinehsen
ec98c85a05 lint: fix unusedVariable warnings
SQUASH ME: into unusedVariable (annotated)

SQUASH ME: into unusedVariable (II)

SQUASH ME: into unreadVariable (II)
2014-10-31 01:24:29 +01:00
Hinnerk van Bruinehsen
2103249815 lint: fix unassignedVariable warnings in stm32f1 2014-10-31 01:24:28 +01:00
Hauke Petersen
56062b0f23 Merge pull request #1872 from thomaseichinger/stm32f1-i2c-multibyte-fix
cpu/stm32f1: fix i2c master read for N=2 and N>2 bytes
2014-10-30 23:24:00 +01:00
Hauke Petersen
64c5ee3322 cpu/nrf51822: made syscalls aware of uart0 2014-10-30 21:51:31 +01:00
Hauke Petersen
2bab8aed2e cpu/nrf51822: added interrupt mode to UART driver 2014-10-30 21:51:31 +01:00
Hauke Petersen
e7fbaf3815 cpu: removed NAKED attribute from ISRs
- removed the __attribute__((naked)) from ISRs
- removed ISR_ENTER() and ISR_EXIT() macros

Rationale: Cortex-Mx MCUs save registers R0-R4 automatically
on calling ISRs. The naked attribute tells the compiler not
to save any other registers. This is fine, as long as the
code in the ISR is not nested. If nested, it will use also
R4 and R5, which will then lead to currupted registers on
exit of the ISR. Removing the naked will fix this.
2014-10-30 19:33:32 +01:00
Thomas Eichinger
a11e4fe534 Merge pull request #1712 from haukepetersen/fix_stm32f0_hardfault
cpu/stm32f0: fixed hardfault indication
2014-10-30 19:05:04 +01:00
Oleg Hahm
eb40993d8b native: remove obsolete line 2014-10-30 16:37:10 +01:00
Oleg Hahm
9a61d8cf1c core: move optional tcb members to DEVELHELP 2014-10-30 16:37:10 +01:00
Hauke Petersen
a51bfeb5d7 SQUASH: cpu/f4: changed order of irq enabling seq 2014-10-30 13:59:19 +01:00
Hauke Petersen
a057f3aa74 SQUASH: cpu: fixed some typos 2014-10-30 13:59:19 +01:00
Hauke Petersen
4546a87ded cpu/stm32f4: optimized GPIO driver implementation 2014-10-30 13:59:19 +01:00
Hauke Petersen
4d97f1752b cpu/sam3x8e: fixed style in startup.c 2014-10-30 13:53:44 +01:00
Hauke Petersen
e71d37ba05 cpu/sam3x8e: added output to isr_hard_fault 2014-10-30 13:52:56 +01:00
Hauke Petersen
8b992d03c2 cpu/sam3x8e: put PendSV IRQ to lowest prio 2014-10-30 13:50:12 +01:00
Hauke Petersen
a4d7ee8d4d cpu/sam3x8e: fixes to timer driver
- renamed config variable
- placed thread_yield() correctly
2014-10-30 13:50:12 +01:00
Ludwig Ortmann
4545c15f70 native: inrease default transceiver buffer 2014-10-30 13:20:51 +01:00
Ludwig Ortmann
5d606b676d native: set net buffer defaults conditionally 2014-10-30 13:20:45 +01:00
Ludwig Ortmann
7bcf896ec6 native: add and use callback type 2014-10-30 12:11:22 +01:00
Ludwig Ortmann
245df3f028 cpu/lpc2387, drivers/cc110x: purge FEUERWARE_CPU_LPC2387
* includes were superfluous
* unused otherwise
2014-10-28 18:04:26 +01:00
Ludwig Ortmann
ebc122bff1 cpu/arm_common: purge FEUERWARE_CONF_ENABLE_HAL 2014-10-28 18:04:26 +01:00
Ludwig Ortmann
f30ce433fc board/avsextrem, cpu/lpc2387: purge FEUERWARE_CONF_CPU_NAME 2014-10-28 18:04:26 +01:00
Ludwig Ortmann
c006c69218 cpu/lpc2387: purge FEUERWARE_CONF_CORE_SUPPORTS_TIME 2014-10-28 18:04:26 +01:00
Thomas Eichinger
b756534a58 Merge pull request #1874 from locicontrols/cc2538-oe
cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in().
2014-10-28 16:43:50 +01:00
Ian Martin
81dea364a5 cpu/cc2538: sbrk() checks if the requested memory is really available. 2014-10-27 20:00:52 -04:00
Ludwig Ortmann
c540c8a3a9 cpu/mc1322x: fix mc1322x-adc.h cpp compatability 2014-10-27 16:36:43 +01:00
Ludwig Ortmann
5dbab29df0 cpu/mc1322x: fix mc1322x-adc.h license 2014-10-27 16:34:24 +01:00
Ludwig Ortmann
324a57a914 cpu/mc1322x: rename adc header to mc1322x-adc 2014-10-25 17:11:18 +02:00
Ludwig Ortmann
d42d226d66 cpu: use adc_legacy.h where appropriate 2014-10-25 17:09:22 +02:00
Ian Martin
34086fc6c6 cpu/cc2538 bug fix: OE (output enable) bit was set by gpio_init_in(). 2014-10-24 14:36:06 -04:00
Hauke Petersen
e6e37e0371 Merge pull request #1864 from haukepetersen/add_board_openmote
boards: added support for OpenMote
2014-10-24 16:50:29 +02:00
Oleg Hahm
c33e1b5dad Merge pull request #1844 from OlegHahm/doxygen_cleanup
Doxygen cleanup
2014-10-24 16:04:01 +02:00
Hauke Petersen
616ff64929 Merge pull request #1771 from PeterKietzmann/correct_stm32f4_spi_return_values
cpu/stm32f4: Changed SPI return values to API definitions
2014-10-24 15:37:22 +02:00
Hauke Petersen
ffea9fc4e8 cpu/cc2538: added linkerscript for cc2538sf53 2014-10-24 15:25:44 +02:00
Thomas Eichinger
ede33a6364 cpu/stm32f1: fix i2c read for N=2 bytes 2014-10-24 14:48:31 +02:00
Hauke Petersen
6889fd1f89 cpu/cc2538: adjusted GPIO register definitions 2014-10-24 14:43:52 +02:00
Hauke Petersen
9051c7be4b Merge pull request #1861 from haukepetersen/fix_cc2538_irqvector
cpu/cc2538: cleaned up IRQ vector definition
2014-10-24 14:40:10 +02:00
Thomas Eichinger
2e9d4cbba4 Merge pull request #1862 from haukepetersen/fix_cc2538_includecleanup
cpu/cc2538: centralized all cpu specific includes
2014-10-24 14:23:43 +02:00
Thomas Eichinger
414be5257d cpu/stm32f1: fix i2c master read for N>2 bytes
This fixes reading more than 2 bytes from the slave device.
In the current implementation the last byte was not read from
data register and the termination sequence buggy.
2014-10-24 14:08:27 +02:00
Hauke Petersen
ca20603d54 cpu/cc2538: made ISR names configurable by a board 2014-10-24 14:00:53 +02:00
Hauke Petersen
24ac5a7e94 cpu/cc2538: cleaned up IRQ vector definition 2014-10-24 14:00:47 +02:00
Ludwig Ortmann
6a5026803c Merge pull request #1842 from fnack/cc110x_ng_rename
drivers/cc110x_ng: rename driver to cc110x_legacy
2014-10-24 03:07:37 -07:00
Oleg Hahm
9b819c4dd6 Merge pull request #1836 from Kijewski/yield-less
core: introduce sched_yield(), yield less
2014-10-24 10:05:37 +02:00
Fabian Nack
07fff37efe drivers - cc110x_ng: rename ng driver to legacy 2014-10-24 09:55:31 +02:00
René Kijewski
677d690e2b core: introduce thread_yield_higher(), yield less
Fixes #1708.

Currently involuntary preemption causes the current thread not only to
yield for a higher prioritized thread, but all other threads of its own
priority class, too.

This PR adds the function `thread_yield_higher()`, which will yield the
current thread in favor of higher prioritized functions, but not for
threads of its own priority class.

Boards now need to implement `thread_yield_higher()` instead of
`thread_yield()`, but `COREIF_NG` boards are not affected in any way.

`thread_yield()` retains its old meaning: yield for every thread that
has the same or a higher priority.

This PR does not touch the occurrences of `thread_yield()` in the periph
drivers, because the author of this PR did not look into the logic of
the various driver implementations.
2014-10-24 00:09:56 +02:00
Oleg Hahm
cb48f7cd47 doc: fix warning from avr libc 2014-10-23 20:53:01 +02:00
Oleg Hahm
c53bd9ca5d doc: remove more CPU specific documentation 2014-10-23 20:53:01 +02:00
Oleg Hahm
bbf82ab254 doc: put atmega cpu file into the right group 2014-10-23 20:53:00 +02:00
Oleg Hahm
ca866b248e doc: fix naming for Cortex M3 common group 2014-10-23 20:53:00 +02:00
Oleg Hahm
481d4f2ee3 doc: fix ambiguous file name warnings
doxygen does a good job itself, identifying the unique part of the path
to identify a file.
2014-10-23 20:53:00 +02:00
Oleg Hahm
49208ffb59 doc: exclude more CPU specific stuff from doxygen 2014-10-23 20:53:00 +02:00
René Kijewski
aa086158ee Add copyright information to lpc1768/include/cpu.h 2014-10-23 20:50:31 +02:00
Oleg Hahm
db8f3d2650 cpu: use typed function pointer for thread_arch_init 2014-10-23 18:26:21 +02:00
Oleg Hahm
6d8c0d74c3 doc: some doxygen cleanups
* removed RIOT unrelated cpu documentation
* introduced cpu_specific prefix to mark such documentation
* put oneway_malloc and crypto into sys group
2014-10-23 17:29:25 +02:00
Hauke Petersen
ccd601b429 cpu/cc2538: centralized all cpu specific includes
- added all CPU specific includes to cpu-conf.h
- removed now not needed includes from cpu .c files
2014-10-23 14:04:57 +02:00
Oleg Hahm
fd2ec50035 Merge pull request #1848 from locicontrols/cc2538-nvic-prio-bits
cc2538: Set __NVIC_PRIO_BITS to the correct value of 3.
2014-10-21 16:10:16 +02:00
Ludwig Ortmann
a2bb383a86 Merge pull request #1838 from LudwigOrtmann/native_subsstructure
native: add substructure
2014-10-21 00:56:24 -07:00
Ian Martin
647391f71c cc2538: Set __NVIC_PRIO_BITS to the correct value of 3. 2014-10-20 14:21:17 -04:00
Ludwig Ortmann
45cf2e4967 native: relocate drivers/rtc implementation 2014-10-18 11:00:09 +02:00
Ludwig Ortmann
0136f208c6 native: add drivers substructure 2014-10-18 10:58:51 +02:00
Ludwig Ortmann
833c36f09d native: relocate periph/cpuid implementation 2014-10-18 10:48:03 +02:00
Ludwig Ortmann
96d2907666 native: add periph substructure 2014-10-18 10:47:26 +02:00
Ludwig Ortmann
a29a9ced27 boards + cpu: atmega2560: fix non-existent GPIO 2014-10-18 07:40:27 +02:00
Hauke Petersen
8c3a207a3f Merge pull request #1770 from fnack/spi_extension
driver - periph: Extend SPI low-level driver interface
2014-10-17 13:54:38 +02:00
Hauke Petersen
010091f265 cpu/stm32f0: fixed typo uart driver defines 2014-10-16 22:17:30 +02:00
Fabian Nack
45b3da9be7 cpu - multiple: adapt spi drivers to interface extension 2014-10-16 17:47:10 +02:00
Martine Lenders
a569f2b92c net: Initial import of a global packet buffer 2014-10-16 11:52:30 +02:00
Hauke Petersen
0fed9a438c cpu/stm32f1: added low-level I2C driver 2014-10-15 14:50:14 +02:00
Thomas Eichinger
ecae75a1ab Merge pull request #1697 from locicontrols/cc2538
Add support for the Texas Instruments CC2538 ARM Cortex-M3 MCU and developer kit.
2014-10-13 16:58:41 +02:00
Ian Martin
0605a7eb95 Add support for the Texas Instruments CC2538 ARM Cortex-M3 MCU and developer kit. 2014-10-13 09:29:49 -04:00
Hauke Petersen
d75a85a2aa cpu/nrf51822: fixed issue with disabled RAM
- on certain devices the second RAM bank might be disabled after
  reset, this fix makes sure its enabled
2014-10-13 13:04:39 +02:00
Thomas Eichinger
86c85d86e8 Merge pull request #1756 from thomaseichinger/welq-fix
cpu/stm32f: boards/iot-lab_M3: cleanup and fixes
2014-10-13 11:58:46 +02:00
Christian Mehlis
fff0a2f846 Merge pull request #1720 from haukepetersen/fix_nrf_gpio
cpu/nrf51822: fixed gpio driver
2014-10-11 16:12:22 +02:00
Thomas Eichinger
420f20f4bc cpu/stm32f1: overwrite HWTIMER_WAIT_OVERHEAD 2014-10-10 11:43:02 +02:00
Thomas Eichinger
19db6ded85 cpu/stm32f1:board/iot-lab_M3: fix and cleanup for GPIO low level driver 2014-10-10 11:42:08 +02:00
Thomas Eichinger
a16d326bf0 stm32f1: implement RTT driver 2014-10-09 11:13:06 +02:00
Thomas Eichinger
3b56b6bf07 Merge pull request #1780 from LudwigOrtmann/native-freebsd-fixup
sys/posix: FreeBSD fixup
2014-10-09 10:48:59 +02:00
Martine Lenders
264785852e nativenet: Supply net_dev_t support for nativenet 2014-10-09 09:40:58 +02:00
Martine Lenders
333c49a344 nativenet: Apply coding conventions 2014-10-09 09:40:57 +02:00
Ludwig Ortmann
6fba6a7f5a native/freebsd: fix tapsetup permission 2014-10-08 16:11:04 +02:00
PeterKietzmann
502ceaf508 cpu: Implement SPI driver for sam3x8e 2014-10-08 12:20:23 +02:00
PeterKietzmann
4da6329684 cpu/stm32f4 changed SPI-return values to API defs 2014-10-07 12:16:37 +02:00
Hauke Petersen
ae48fccdf7 Copy some files from cpu/sam3x8e to cpu/cc2538. 2014-10-06 15:30:24 -04:00
Hauke Petersen
15b9df8975 cpu/stm32f0: fixed hardfault indication 2014-10-06 15:45:14 +02:00
Hauke Petersen
a29b9a08e4 cpu/stm32f0: removed leftovers from slave mode 2014-10-02 17:44:26 +02:00
Martine Lenders
0d33a00d36 Merge pull request #1492 from authmillenon/net-dev-base
drivers: Introduce a general interface for network device drivers
2014-10-02 12:29:59 +02:00
Thomas Eichinger
464ed0ee24 Merge pull request #1752 from haukepetersen/fix_stm32f1_gpio
cpu/stm32f1: fixed gpio driver
2014-10-02 00:49:06 +02:00
Martine Lenders
ec24fbd6dc Merge pull request #1751 from LudwigOrtmann/native_syscalls_p2
native: add two more syscall declarations
2014-10-01 22:14:15 +02:00
Hauke Petersen
f3d8f05d6e cpu/stm32f1: fixed gpio driver
- changed #ifdef to #if for device filter
- guarded file in case no GPIO device is defined
- added guards around interrupts
2014-10-01 22:01:46 +02:00
Ludwig Ortmann
b849b848a0 native: add two more syscall declarations 2014-10-01 21:56:43 +02:00
Thomas Eichinger
fccfce2d59 stm32f1: implement 32bit hwtimer by cascading two timers 2014-10-01 20:54:14 +02:00
Martine Lenders
97bf8b09ad atmega_common: add ENOTSUP and ECANCELED to errno.h 2014-10-01 19:24:12 +02:00
Hauke Petersen
26dfa7c89c Merge pull request #1464 from PeterKietzmann/stm32f4_spi_driver
Initial Stm32f4 spi driver
2014-09-30 13:40:01 +02:00
PeterKietzmann
d481af752f initial import of stm32f4discovery spi low-level driver 2014-09-30 13:18:27 +02:00
Hauke Petersen
25c891ecdd Merge pull request #1736 from haukepetersen/fix_stm32f1_somecleanup
board/iot-lab_M3: cleanup of SPI and radio driver
2014-09-30 12:02:42 +02:00
Hauke Petersen
c7807517da cpu/stm32f1: added clock config to cpu.c 2014-09-30 11:25:56 +02:00
Hauke Petersen
6ee15ea6df cpu/stm32f1: cleanup in SPI driver
- made config more versatile
- added pin configuration to spi_init()
2014-09-30 11:19:16 +02:00
Ludwig Ortmann
f539f30691 Merge pull request #1698 from Kijewski/ssize_t-for-all
core: Provide ssize_t in a common place
2014-09-27 00:26:34 -07:00
Hauke Petersen
964c145eef cpu/nrf51822: fixed gpio driver 2014-09-26 17:25:21 +02:00
Thomas Eichinger
d0b0af6d81 stm32f*: rename STDIO buffer and enable getchar with UART0 2014-09-26 14:16:59 +02:00
Thomas Eichinger
c83e4cb361 stm32f1: unify UART0 use 2014-09-26 14:16:59 +02:00
Thomas Eichinger
fc3864756f stm32f3: be UART0 aware 2014-09-26 14:16:31 +02:00
Thomas Eichinger
aefa818338 stm32f4: be UART0 aware 2014-09-26 14:16:31 +02:00
Thomas Eichinger
8fc2e61e20 stm32f0: be UART0 aware 2014-09-26 14:16:31 +02:00
René Kijewski
4e50d74272 core: Provide ssize_t in a common place
Now you can include `kernel_types.h` if you need the `ssize_t`, without
 facing problems due to the terrible MSP toolchain.
2014-09-26 14:04:30 +02:00
Thomas Eichinger
bf256f63a3 samr21-xpro: initial import for the samr21-xpro board 2014-09-25 14:37:47 +02:00
Hauke Petersen
d7741efa03 cpu/stm32f1: added missing spi function 2014-09-25 14:25:04 +02:00
Hauke Petersen
934eb44c13 Merge pull request #1488 from haukepetersen/add_stm32f0_spi
board/cpu: added SPI driver for the stm32f0discovery
2014-09-25 11:59:11 +02:00
Ludwig Ortmann
bd0ff3712e Merge pull request #1706 from locicontrols/sam3x8e-break
cpu/sam3x8e bug: missing break statements in gpio_set() and gpio_clear()
2014-09-25 01:42:46 -07:00
René Kijewski
d4f144eb47 Add license statement to {msp430_types,net_help}.h 2014-09-25 10:14:58 +02:00
Ian Martin
ab3b731ca8 cpu/sam3x8e bug: missing break statements in gpio_set() and gpio_clear() 2014-09-24 14:26:36 -04:00
Hauke Petersen
3d797d8f4b cpu/stm32f4: fixed doxygen 2014-09-24 17:51:37 +02:00
Hauke Petersen
127095ada0 [SQUASH ME] cpu: removed slave mode 2014-09-24 15:41:48 +02:00
Hauke Petersen
cdb335e21d [SQUASH ME] stm32f0: substantial fixes to SPI driver 2014-09-24 15:41:48 +02:00
Hauke Petersen
7904076668 cpu: mini cleanup to spi driver 2014-09-24 15:41:48 +02:00
Hauke Petersen
7d5b3263d5 SPI: more fixes including DEBUG info 2014-09-24 15:41:48 +02:00
Hauke Petersen
ff4854341a [SQUASH ME] finished 0.1 of spi driver 2014-09-24 15:41:47 +02:00
Hauke Petersen
c494e3ab09 board/cpu: added SPI driver for stm32f0discovery 2014-09-24 15:41:47 +02:00
Hauke Petersen
34aaa61eb0 Merge pull request #1486 from haukepetersen/fix_sam3x_finish_gpio
cpu/boards: completed GPIO driver for sam3x8e
2014-09-19 13:21:09 +02:00
Hauke Petersen
4411b6b53f cpu/nrf51822: adjusted default stack sizes 2014-09-19 13:02:23 +02:00
Ludwig Ortmann
d7cdc85758 Merge pull request #1677 from LudwigOrtmann/headers
doc: add license headers to some .h files
2014-09-18 10:47:30 -07:00
Hauke Petersen
50ba74b7dc cpu/boards: completed GPIO driver for sam3x8e
- adjusted peripheral conf for udoo and arduino-due
- added gpio_init_int()
- added interrupt service routines
- fixed gpio_read()
- added clock enable for gpio_init_in()
2014-09-18 18:29:02 +02:00
Ludwig Ortmann
289c4c0ee4 doc: add license headers to some .h files 2014-09-18 17:45:11 +02:00
Hauke Petersen
c9c7bfad38 cpu/nrf51822: some fixes and clean up
- enabled power for uart and timer
- outsourced timer config values to periph_conf.h
- made linkerscript better readable
- adjusted default stack-sizes
- let RED_LED blink on hard_fault
2014-09-17 14:44:13 +02:00
Hinnerk van Bruinehsen
d5fe9de5e5 cpu: change __ASM to asm (cppcheck uninitvar error) 2014-09-17 00:20:20 +02:00
Ludwig Ortmann
651cb6ca9f doc: tailor CMSIS doxygen for license checker
Remove '@par' within the license header to allow the existing regular
expression to match it.
2014-09-15 08:27:59 +02:00
René Kijewski
ba07d6a5a2 Merge pull request #1664 from N8Fear/unsignedLessThanZero
lint: _sbrk_r: change parameter type from size_t to ptrdiff_t
2014-09-14 23:33:17 +02:00
Hinnerk van Bruinehsen
129e9b0bfa cpu: multiple: change size_t to ptrdiff_t for_sbrk_r 2014-09-14 22:07:05 +02:00
Hinnerk van Bruinehsen
9933dd0b78 cpu: arm/cortex-mX/atmega: use uintptr_t for sp cast 2014-09-14 02:34:04 +02:00
Hinnerk van Bruinehsen
4d2ca13fcf lint: lpc1768/msp430: remove arith ops on void ptrs 2014-09-14 02:33:44 +02:00
Hinnerk van Bruinehsen
68e3e68ce1 Merge pull request #1657 from N8Fear/scope
lint: reduce scope (2)
2014-09-13 20:06:45 +02:00
Hinnerk van Bruinehsen
57b998e4a1 cpu/examples/sys/drivers: reduce scope of variables 2014-09-13 19:03:40 +02:00
Oleg Hahm
fa8c70bbb8 Merge pull request #1618 from rousselk/msp430-fix-thread-yield
Fix thread_yield() on MSP430 platforms
2014-09-12 20:14:18 +02:00
Hinnerk van Bruinehsen
5aa9b8449b cpu: lpc_common: reduce indentation level in iap.c 2014-09-12 11:50:12 +02:00
René Kijewski
0cc699c0ce lint: reduce scope
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Kévin Roussel
a691d0798a Fixed comments 2014-09-09 13:18:39 +02:00
Hinnerk van Bruinehsen
3d686c7cf1 cpu: atmega: doxygen: blacklist upstream headers 2014-09-06 12:38:04 +02:00
Ludwig Ortmann
3d29a9e3d3 native: add support for Linux on ARM 2014-09-04 16:39:33 +02:00
Joakim Gebart
21fc1bd7a6 cpu/stm32f1: Reduce scope of ret variable in spi_transfer_bytes.
Reduced scope to inside the while loop as per comments in RIOT-OS/RIOT#1630

Signed-off-by: Joakim Gebart <joakim@gebart.se>
2014-09-03 10:28:33 +02:00
Joakim Gebart
a12b879027 cpu/stm32f1: spi_transfer_bytes proper counting.
The transferred bytes were being counted more than once because of a +=
when calling spi_transfer_byte().

This patch should also handle errors from spi_transfer_byte() better
since it is now possible to detect errors _after_ the first byte has
been successfully sent.

Signed-off-by: Joakim Gebart <joakim@gebart.se>
2014-09-02 17:17:21 +02:00
Fabian Nack
edb6a4ddf4 cpu - stm32f4: added support for more channels/devices in periph impls 2014-09-01 21:29:56 +02:00
Fabian Nack
47657ac7d9 cpu - stm32f4: add support for stm32f415rg 2014-09-01 21:29:56 +02:00
Kévin Roussel
4421de003b Fix the race condition when an interruption occured at the beginning
of thread_yield(), i.e.: just after SR(R2) was pushed but before
the rest of the suspended thread's context was pushed!
2014-08-29 15:09:23 +02:00
Kévin Roussel
3df5a2745f Prevent the compiler to add an unwanted prologue in thread_yield() 2014-08-29 15:09:22 +02:00
Kévin Roussel
cf683d9866 Fix thread_yield by avoiding the (too) early re-enablement of IRQ,
that is: before the newly selected thread's context is totally restored
2014-08-29 15:09:22 +02:00
Martine Lenders
752fe547ca Merge pull request #1624 from LudwigOrtmann/headacheheaders
doc: fix more license headers
2014-08-28 12:34:55 +02:00
Ludwig Ortmann
2439bd839c doc: fix more license headers
Remove some cruft, set correct lgpl versions, update to lgpl where
this had been overlooked in the past, fix odd comment style...
2014-08-27 19:20:49 +02:00
Hauke Petersen
ae23d813b1 Merge pull request #1621 from haukepetersen/add_nrf_cpuid
cpu/nrf51822: added cpuid driver
2014-08-27 19:11:04 +02:00
Hinnerk van Bruinehsen
223e22ac1e board: arduino-mega2560: Initial import 2014-08-27 16:39:40 +02:00
Hinnerk van Bruinehsen
7b70f64d84 cpu: atmega2560: Initial import 2014-08-27 16:39:23 +02:00
Hinnerk van Bruinehsen
a6b77b4745 cpu: atmega_common: Initial import 2014-08-27 16:22:48 +02:00
Hauke Petersen
1de3deff81 cpu/nrf51822: added driver to get CPUID 2014-08-27 15:12:59 +02:00
Ludwig Ortmann
fc0b0bcc29 Merge pull request #1608 from LudwigOrtmann/fixmorelicenseheaders
Fix more license headers
2014-08-26 13:48:59 +02:00
Thomas Eichinger
6f83609107 Merge pull request #1607 from haukepetersen/add_nrf_random
cpu/nrf51822: added random number generator driver
2014-08-25 14:51:18 +02:00
Hauke Petersen
373e69e5c9 cpu/stm32f4: added random number generator driver 2014-08-25 13:54:15 +02:00
Ludwig Ortmann
b7992922ce fix license headers in non-.c files 2014-08-23 16:16:26 +02:00
Hauke Petersen
82eebeb2cc cpu/nrf51822: added RNG driver 2014-08-23 13:29:14 +02:00
Hauke Petersen
addfaefe8a Merge pull request #1598 from haukepetersen/add_nrf_rtt
cpu/board: added RTT driver for NRF51822
2014-08-22 02:13:43 +02:00
003dd1969c Merge pull request #1566 from Kijewski/undef_is_null
core: let PIDs begin with 1
2014-08-22 00:43:04 +02:00
Hauke Petersen
744ce78e12 cpu/nrf51822: added RTT driver implementation 2014-08-22 00:40:50 +02:00
Hauke Petersen
bd86eb28c9 cpu/sam3x8e: added random number generator driver 2014-08-21 20:18:02 +02:00
René Kijewski
639dae4a1d Merge pull request #1575 from Kijewski/use-sched_active_pid
all over the place: use sched_active_pid
2014-08-21 19:09:40 +02:00
Thomas Eichinger
0e79a01cd2 stm32f1: SPI: implement speed setting properly 2014-08-21 17:53:38 +02:00
Thomas Eichinger
6b43b3f587 stm32f1: implement new cpuid_get 2014-08-21 17:53:38 +02:00
Thomas Eichinger
c28aebf105 at86rf231: handle rx tx state changes correctly 2014-08-21 17:53:38 +02:00
Thomas Eichinger
b6abdc9519 stm32f1: implement SPI register access functions 2014-08-21 17:53:38 +02:00
Thomas Eichinger
e59bc2eb9d iot-lab_M3: refactor at86rf231 driver 2014-08-21 17:53:37 +02:00
Thomas Eichinger
b86b78bcb2 stm32f1: implement missing UART0 parts 2014-08-21 17:53:37 +02:00
Thomas Eichinger
aaa2c2e8ba boards: initial import of iot-lab_M3 2014-08-21 17:53:37 +02:00
Thomas Eichinger
37611db41c cpu: initial import of stm32f1 2014-08-21 17:53:37 +02:00
René Kijewski
2cb4166c3e all over the place: use sched_active_pid
In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.

`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.
2014-08-17 21:04:25 +02:00
René Kijewski
427a5fbaef core: let valid PIDs start with 1 2014-08-17 19:51:03 +02:00
Hauke Petersen
13894fa70c cpus: adjusted uart implementations for changed IF
- adjusted stm32f0
- adjusted stm32f3
- adjusted stm32f4
- adjusted sam3x8e
- adjusted nrf51822
2014-08-15 12:23:39 +02:00
Hauke Petersen
ea96af4d53 cpu/stm32f3: let LD3 blink on hardFault 2014-08-15 10:38:34 +02:00
René Kijewski
a79d9c8562 native: remove redeclarations of sched_active_thread 2014-08-14 13:21:17 +02:00
Hauke Petersen
037820d6a6 board/cpu: adjusted uart driver implementations
for
- sam3x8e
- stm32f0
- stm32f4
- sam3x8e
- nrf51822
2014-08-11 15:08:20 +02:00
Oleg Hahm
1de5c2b4a0 fixed remaining variables to kernel_pid_t 2014-08-07 17:29:53 +02:00
Oleg Hahm
aa2ecf6216 initialize kernel_pid_t correctly 2014-08-07 16:31:27 +02:00
Oleg Hahm
c2b0423918 core: renamed KERNEL_PID_NULL to KERNEL_PID_UNDEF
As @authmillenon pointed out the "null" in the old name is somewhat
misleading, since the actual value is -1.
2014-08-07 16:31:27 +02:00
Hauke Petersen
cc6ee1dc05 board/cpu: added pwm driver for stm32f4discovery 2014-08-07 16:15:39 +02:00
Hauke Petersen
9a90eae1ba cpu: adjusted pwm driver impl for lpc2387 2014-08-07 16:14:09 +02:00
Ludwig Ortmann
14e8abed05 Merge pull request #1525 from LudwigOrtmann/morning-cleanup
doc, boards/cpu: cleanup
2014-08-05 19:28:24 +02:00
Hauke Petersen
d9b0927b57 Merge pull request #1547 from haukepetersen/fix_cortex_threadarch
cpu/cortex-mX_common: bugfix to arch_stack_init
2014-08-05 18:59:17 +02:00
Ludwig Ortmann
1df6505db9 boards/cpu: fix some warnings 2014-08-05 18:52:26 +02:00
Ludwig Ortmann
c883c33d83 doc: fix flashrom doxygen 2014-08-05 18:52:26 +02:00
Hauke Petersen
be46f2047a cpu/cortex-mX_common: bugfix to arch_stack_init
- fixed cortex-[m0|m3|m4]
2014-08-05 18:38:06 +02:00
Ludwig Ortmann
1c3f481702 tests, native: fixup for cpuid
- adopt test name to new scheme
- make cppcheck happy / dont overwrite the target memory location twice
- fix license header
- don't redefine define if it already exists
- don't write more cpuid than is defined as size
2014-08-05 16:55:42 +02:00
epiktet
1154bd5a50 cpu/nrf51822: squash added support for nrf51822 cpu 2014-08-04 13:42:06 +02:00
Cenk Gündoğan
5429035b1c cpu: removing tabs from asm files (#1439)
```find . -name "*.[sS]" -exec grep -l $'\t' {} \;``` and ```ack --asm -l "\t"```
revealed three more files with tabs.
2014-08-02 12:47:02 +02:00
Oleg Hahm
983d056c75 core: harmonizes the data type for the process ID
Instead of using differing integer types use kernel_pid_t for process
identifier. This type is introduced in a new header file to avoid
circular dependencies.
2014-08-01 12:02:54 +02:00
Hauke Petersen
938c61a5a2 Merge pull request #1456 from haukepetersen/board_stm32f3discovery
board/cpu: Added support for the stm32f3discovery board and stm32f3 cpu
2014-07-31 23:55:05 +02:00
Martine Lenders
b1bc11c7fc native: cpu: Add documentatiton for CPUID_ID_LEN 2014-07-31 23:27:38 +02:00
Martine Lenders
7516c94dd8 Merge pull request #854 from authmillenon/cpu-id
drivers/cpu: add function to get CPU id/serial number
2014-07-31 23:23:21 +02:00
Ludwig Ortmann
d55da67fb6 Merge pull request #1329 from LudwigOrtmann/riot_license
RIOT default license header change
2014-07-31 23:12:47 +02:00
Martin Lenders
239f2e0f24 Implement CPU id getter for native 2014-07-31 23:05:15 +02:00
Hauke Petersen
19ab93cadc Merge pull request #1509 from haukepetersen/fix_cortexmcommon_cppcheck
cpu/cortex-mX_common: fixed type issues in thread_arch
2014-07-31 23:04:42 +02:00
Hauke Petersen
c54594632f Merge pull request #1505 from haukepetersen/add_stm32f0_adc
cpu/board: added ADC driver for stm32f0discovery
2014-07-31 23:01:21 +02:00
Oleg Hahm
8890470783 Merge pull request #1514 from cgundogan/remove_tabs_cpu
converting tabs to spaces in cpu (#1439)
2014-07-31 22:58:17 +02:00
Ludwig Ortmann
5fdce06b3b doc: use lgplv2.1-short license header instead of lgplv2-short-v1 2014-07-31 22:57:20 +02:00