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

159 Commits

Author SHA1 Message Date
Martine Lenders
a370a12f75 msp430: fix doc to time.h 2015-10-28 13:59:52 +01:00
Martine Lenders
77b0ffffec msp430: include missing types to time.h 2015-10-28 13:59:35 +01:00
Ludwig Knüpfer
eda6328e21 documentation: update my name (Ortmann -> Knüpfer) 2015-09-27 18:58:30 +02:00
c122571801 cpu: msp430-common: fix context save/restore
Previously, __restore_context was meddling with the to-be-restored
context SR on the stack, not correctly restoring GIE.
Now, we let the CPU restore the correct status register as saved in
__save_context.

Contains some simplification of the context save/restore logic.
2015-09-22 10:43:27 +02:00
Joakim Nohlgård
98c465008b all: Update @gebart family name, email 2015-09-20 13:47:39 +02:00
Oleg Hahm
e15bdd257a debug: replace __FILE__ by RIOT_RELATIVE_FILE 2015-09-20 01:51:47 +02:00
Hauke Petersen
515d325c89 cpu/msp430xx: some Makefile cleanup
- removed redundancies
- optical cleanup
2015-09-16 17:07:26 +02:00
c3fa148256 cpu: msp430-common: remove obsolete hwtimer support 2015-09-16 10:58:52 +02:00
Martine Lenders
93f555ef69 Merge pull request #3782 from OlegHahm/RIOT_assert
core: RIOT's own assert macro
2015-09-12 13:12:34 +02:00
Oleg Hahm
49917a5797 core: cpu: fix check for DEVELHELP 2015-09-12 12:43:15 +02:00
Oleg Hahm
f3245cecac core: panic: last instruction's address for assert 2015-09-11 23:23:31 +02:00
Oleg Hahm
d7161b6d4b cpu: inline function to print instruction register 2015-09-11 23:23:31 +02:00
Thomas Eichinger
5a6bc8c284 Merge pull request #3569 from authmillenon/msp430/enh/use-log
msp430: use assert instead of printf
2015-09-11 12:47:15 +02:00
f433c9a5c7 cpu: msp430-common: remove obsolete UART0_BUFSIZE define 2015-09-04 17:46:23 +02:00
Hauke Petersen
68e7965b50 cpu/msp43-common: re-added deprecated e|dINT defs 2015-09-03 10:31:30 +02:00
Hauke Petersen
fd8c0de3d2 cpu/msp430-common: simplified hwtimer configuration 2015-09-02 17:10:28 +02:00
Hauke Petersen
69e83bbab3 cpu: removed hwtimer code from msp430 CPUs 2015-09-02 17:10:27 +02:00
Hauke Petersen
7d25b41610 cpu/msp430-common: removed legacymsp430.h code 2015-09-02 16:47:52 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00
Hauke Petersen
75472eddf4 cpu: remove transceiver defines from cpu_conf files 2015-08-06 12:13:54 +02:00
Martine Lenders
cef0857992 msp430: use assert instead of printf 2015-08-05 19:43:51 +02:00
Joakim Gebart
897f40fabe cpu/msp430-common: Clean up Doxygen groups 2015-07-20 12:40:31 +02:00
Oleg Hahm
c0d5d2e9b6 Merge pull request #2571 from haukepetersen/rm_msp430_edint
cpu/msp430-common: removed e|dINT calls
2015-07-14 15:46:33 +02:00
Joakim Gebart
499666f24a cpu/msp430-common: Add getchar declaration 2015-07-14 08:11:19 +02:00
Joakim Gebart
153c97fc74 cpu/msp430-common: Add stdlib.h header to ensure malloc is defined.
Fixes warnings of the kind:

/data/riotbuild/riotbase/sys/bloom/bloom.c: In function 'bloom_new':
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:5: error: implicit declaration of function 'calloc' [-Werror=implicit-function-declaration]
/data/riotbuild/riotbase/sys/bloom/bloom.c:39:22: error: incompatible implicit declaration of built-in function 'calloc' [-Werror]
2015-07-14 08:11:15 +02:00
haukepetersen
36a99a0c70 cpu/msp430-common: removed e|dINT calls 2015-05-29 12:07:57 +02:00
Hauke Petersen
a5e4b02ed8 cpu: fixed doxygen for multiple headers 2015-05-28 15:45:05 +02:00
Hauke Petersen
9943f51080 global: renamed cpu-conf.h into cpu_conf.h 2015-05-28 15:45:05 +02:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Lucas Jenss
426170b064 Improve naming of thread stacksize/priority constants
As discussed in #2725, this commit renames a number of stacksize constants to
better convey their intended usage. In addition, constants for thread priority
are given a `THREAD_` prefix. Changes are:

* KERNEL_CONF_STACKSIZE_PRINTF renamed to THREAD_EXTRA_STACKSIZE_PRINTF
* KERNEL_CONF_STACKSIZE_DEFAULT renamed to THREAD_STACKSIZE_DEFAULT
* KERNEL_CONF_STACKSIZE_IDLE renamed to THREAD_STACKSIZE_IDLE
* KERNEL_CONF_STACKSIZE_MAIN renamed to THREAD_STACKSIZE_MAIN
* Move thread stacksizes from kernel.h to thread.h, since the prefix changed
* PRIORITY_MIN renamed to THREAD_PRIORITY_MIN
* PRIORITY_IDLE renamed to THREAD_PRIORITY_IDLE
* PRIORITY_MAIN renamed to THREAD_PRIORITY_MAIN
* Move thread priorities from kernel.h to thread.h since the prefix has changed
* MINIMUM_STACK_SIZE renamed to THREAD_STACKSIZE_MINIMUM for consistency
2015-05-21 00:14:23 +02:00
Oleg Hahm
cb1f047f59 core: unified core_panic implementation 2015-05-10 11:58:43 +02:00
Oleg Hahm
828839316b core: renamed crash.h to panic.h 2015-05-09 18:44:10 +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
Martine Lenders
41f60aca4c pktbuf: port to use ng_ version 2015-02-19 13:51:27 +01:00
Martine Lenders
9077299d06 msp430: add assert header 2015-02-12 14:24:06 +01:00
Oleg Hahm
db58a8b226 Merge pull request #2214 from rousselk/msp430-fix-intr
Msp430 misc interrupt-related fixes
2014-12-19 16:35:39 +01:00
Kévin Roussel
892268d74b Ensure only GIE bit is touched in splx_() 2014-12-19 11:11:15 +01:00
Kévin Roussel
07b170595c Ensure interrupts are enabled before going in low-power mode 2014-12-19 11:11:14 +01:00
Kévin Roussel
91fd567c8f Use custom assembly code instead of MSP GCC primitives for dINT()/eINT()
and all other functions that enable or disable interrupts
2014-12-19 11:11:14 +01:00
Kévin Roussel
f9b0df7e4b Use TimerB for 'hwtimer' module implementation 2014-12-19 10:53:12 +01:00
Kévin Roussel
25ac0db606 Robust use of TimerA for 'hwtimer' module 2014-12-19 10:53:12 +01:00
Kévin Roussel
d101b30dd8 Make hwtimer_spin() work even with interrupts disabled
by using only 16 significative bits on MSP430 hardware timers
2014-12-17 12:21:07 +01:00
BytesGalore
a4d2ee307c cpu: added extern "C" to headers 2014-11-24 19:10:15 +01:00
Oleg Hahm
10a4540f2d license: added missing license for msp430 time.h 2014-11-21 15:10:19 +01:00
Oleg Hahm
39abba1bc2 licenses: fix miss-spelled & missing boiler plates 2014-11-10 18:59:55 +01: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
Martine Lenders
a569f2b92c net: Initial import of a global packet buffer 2014-10-16 11:52:30 +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
René Kijewski
d4f144eb47 Add license statement to {msp430_types,net_help}.h 2014-09-25 10:14:58 +02:00
Hinnerk van Bruinehsen
4d2ca13fcf lint: lpc1768/msp430: remove arith ops on void ptrs 2014-09-14 02:33:44 +02:00