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
René Kijewski
a70ee0f022
make: centralize wget/curl & unzip/7z feature test
...
With many open PRs that could benefit from loading SDKs when needed,
instead adding vast amounts of code to RIOTs master, this PR provides
the "functions" `$(DOWNLOAD_TO_STDOUT)`, `$(DOWNLOAD_TO_FILE)`, and
`$(UNZIP_HERE)`.
The first "function" takes one argument, the URL from where to download
the content. It is then piped to stdout. To be used e.g. with `tar xz`.
The second "function" taken two arguments, the destination file name,
and the source URL. If the previous invocation was interrupted, then the
download gets continued, if possible.
The last "function" takes one argument, the source ZIP file. The file
gets extracted into the cwd, so best use this "function" with
`cd $(SOME_WHERE) &&`.
The clumsy name `$(UNZIP_HERE)` is taken because the program "unzip"
takes the environment variable `UNZIP` as the source file, even if
another file name was given on the command line. The rationale for that
is that the hackers of "unzip" hate their users. Also they sacrifice
hamsters to Satan.
2014-08-21 19:07:52 +02:00
Thomas Eichinger
0ea5f94754
Merge pull request #1363 from thomaseichinger/thirdparty_boards_import
...
board: cpu: initial import of iot-lab_M3
2014-08-21 18:47:07 +02:00
Thomas Eichinger
57cbaef8ea
Merge pull request #1020 from thomaseichinger/real_rtc_interface
...
periph_drivers: Introduce a minimal RTC interface
2014-08-21 18:43:42 +02:00
Thomas Eichinger
b904bc3495
Implement a minimal RTC interface
2014-08-21 18:42:30 +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
d50f43e9f5
at86rf231: introduce variable to keep internal driver state
...
The at86rf231 radio transceiver provides one IRQ (TRX_END) signaling
end of transmission or reception but no way to distinguish between
these.
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
Thomas Eichinger
78041ea15d
Merge pull request #1592 from thomaseichinger/ccn-lite-relay-rtc
...
examples/ccn-lite-relay: remove unnecessary USEMODULE
2014-08-21 17:53:05 +02:00
Thomas Eichinger
e6798a8250
examples/ccn-lite-relay: remove unnecessary USEMODULE
2014-08-21 17:46:17 +02:00
Hauke Petersen
0200db5e6a
Merge pull request #1590 from haukepetersen/fix_nrf_maketargets
...
board/pca10000: added make targets
2014-08-21 15:47:53 +02:00
Hauke Petersen
46a791fd95
board/pca10000: added make targets
...
- added `reset` target
- added `debug` target
- added `debug-server` target
- adjusted `flash` target
2014-08-21 15:47:10 +02:00
Hauke Petersen
8147216d29
Merge pull request #1591 from haukepetersen/fix_make_vars
...
make: added CPU_MODEL & TERMFLAGS to Makefile.vars
2014-08-21 15:29:59 +02:00
Hauke Petersen
800edbcb59
make: added CPU_MODEL & TERMFLAGS to Makefile.vars
...
- added CPU_MODEL variable
- added TERMFLAGS variable
- fixed a little style (dots on the end of comments)
2014-08-21 14:59:23 +02:00
René Kijewski
b4f105f178
core: SCHED_PRIO_LEVELS==16 for every board
...
Closes #1399 .
> Using a different value for SCHED_PRIO_LEVELS for 16 and 32 bit
platforms hurts portability, one thing that we heavily advertise about
RIOT. if you want to write a portable application, then you have to
assume the lower value.
This PR defaults `SCHED_PRIO_LEVELS` to 16 for every board.
2014-08-18 10:43:41 +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
René Kijewski
b31e5a8675
core: introduce KERNEL_PID_FIRST and KERNEL_PID_LAST
2014-08-17 19:50:34 +02:00
Martine Lenders
6999e6fb21
Merge pull request #1580 from Kijewski/thread_get
...
core: add `thread_get()`
2014-08-16 21:48:49 +02:00
Ludwig Ortmann
91d4a25c12
Merge pull request #1582 from N8Fear/fix_pyterm_twisted
...
pyterm: fix exit behavior if twisted is not available
2014-08-16 08:31:20 +02:00
Hinnerk van Bruinehsen
1b5836571b
pyterm: fix exit behavior if twisted is not available
2014-08-16 00:49:43 +02:00
René Kijewski
89a26b7331
Merge pull request #1562 from Kijewski/the-first-two-commits-of-the-branch-issue-198
...
posix: minor pthread_barrier clean up
2014-08-15 14:44:54 +02:00
Hauke Petersen
10218108e9
Merge pull request #1484 from haukepetersen/fix_drivers_gpioif
...
drivers: improved IF for low-level GPIO driver
2014-08-15 12:36:25 +02:00
Hauke Petersen
9da0abc14d
tests/periph_gpio: added test cases for GPIO driver
2014-08-15 12:24:24 +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
aa3e40c9b1
drivers: improved the low-level GPIO driver IF
...
- removed UNDEFINED value from device enum
- changed most functions to void return value
- add parameter for interrupt callback
2014-08-15 12:23:32 +02:00
Hauke Petersen
39a198cf4b
Merge pull request #1576 from haukepetersen/fix_stm32f0_leds
...
cpu/board: fixes to stm32f0(discovery)
2014-08-15 10:40:35 +02:00
Hauke Petersen
ea96af4d53
cpu/stm32f3: let LD3 blink on hardFault
2014-08-15 10:38:34 +02:00
Hauke Petersen
48eafe9912
board/stm32f3discover: fixed LED macros
2014-08-15 10:38:10 +02:00
René Kijewski
a7e5157fd9
core: add thread_get()
...
Remove PID check duplication in `thread_getstatus()` and
`thread_getname()`.
2014-08-15 01:16:13 +02:00
Ludwig Ortmann
de039b0ec6
Merge pull request #1574 from Kijewski/native-sched_active_thread
...
native: remove redeclarations of sched_active_thread
2014-08-14 18:27:22 +02:00
René Kijewski
a79d9c8562
native: remove redeclarations of sched_active_thread
2014-08-14 13:21:17 +02:00
Martine Lenders
7681e594b9
Merge pull request #1557 from authmillenon/make-list-show
...
make: Add target to show if boards that are supported by apps
2014-08-14 09:39:09 +02:00
Martine Lenders
04489be771
[SQUASH ME] make: Move buildtest related PHONY targets to Makefile.buildtests
2014-08-13 21:24:07 +02:00
René Kijewski
d1d8fb2b68
sys: remove lib/hashtable.c
...
Quoting myself:
> The code of sys/lib/hashtable.c is very badly adapted for embedded
> systems. The used primes are huge, and the limit is entirely
> unrealistic. Why do we ship this file?
In #1564 we came to the conclusion that we don't need this code.
Closes #1564 .
2014-08-13 21:21:39 +02:00
Martine Lenders
7306552873
[SQUASH ME] make: remove debugging lines
2014-08-13 21:14:11 +02:00
René Kijewski
2d336ed8c8
make: easier to read object targets
2014-08-13 20:52:41 +02:00
René Kijewski
9b408fda9c
make: don't invoke wildcard repeatedly
2014-08-13 20:51:50 +02:00
René Kijewski
01f6bdf789
make: call ranlib
2014-08-13 20:51:50 +02:00
René Kijewski
aa2ee4084d
make: use $@ and $<
2014-08-13 20:51:29 +02:00
Martine Lenders
87b68e9382
make: Add supported boards to info-build target
2014-08-13 20:44:16 +02:00
Martine Lenders
e8f251cfa3
[SQUASH ME] make: info-boards-supported is just
2014-08-13 20:43:42 +02:00
Martine Lenders
da779b0dee
make: Make BOARDS a global macro for buildtests
2014-08-13 20:39:48 +02:00
René Kijewski
346313bf07
make: don't call mkdir -p a lot
2014-08-13 20:23:08 +02:00