Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
2014-08-23 16:16:26 +02:00
René Kijewski
a79d9c8562
native: remove redeclarations of sched_active_thread
2014-08-14 13:21:17 +02:00
Oleg Hahm
aa2ecf6216
initialize kernel_pid_t correctly
2014-08-07 16:31:27 +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
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
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
Martin Lenders
239f2e0f24
Implement CPU id getter for native
2014-07-31 23:05:15 +02:00
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
2014-07-31 22:57:20 +02:00
Ludwig Ortmann
3d6124c905
native: reenable compilation on osx
2014-07-30 10:23:28 +02:00
Ludwig Ortmann
13bd2a2b3b
native: increase rtc realism
...
Prevent rtc enabling when not initialized.
2014-07-28 09:36:53 +02:00
Ludwig Ortmann
3cda0369cb
native: cleanup
...
fix style
fix some syscall declarations
reorder syscall declarations
init syscalls in dedicated function
substitute 1 with EXIT_FAILURE
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
c6bcc344ca
native: uart reconnect buffer replay
...
When using socket stdio, add option to replay what has been written to
stdout while not connected (`-r`).
The implementation is to simply use the existing log file (which is
implicitly created when the option is used), and read from it until
EOF upon reconnect.
closes #476
2014-07-27 15:16:38 +02:00
Ludwig Ortmann
bea563d1da
Fix a few cppcheck findings
2014-07-25 08:17:06 +02:00
Ludwig Ortmann
2aa9f6b045
native: clean up and clarify help
...
- reorder option details to mirror the order given in usage
- list option arguments in option details
- clarify option arguments
2014-07-22 16:25:00 +02:00
René Kijewski
a0c435458e
Merge pull request #1410 from LudwigOrtmann/issue-787
...
native: enable reboot with tap
2014-07-14 00:33:03 +02:00
Ludwig Ortmann
aaaccf9d87
native: enable reboot with tap
...
partially fixes #787
2014-07-13 16:40:32 +02:00
Ludwig Ortmann
df36f6304a
native: remove stale TODOs and blank line
...
The values are quite OK.
2014-07-13 07:24:01 +02:00
Hauke Petersen
9001e0c2fb
core: removed duplicated hwtimer_arch.h
2014-07-09 21:08:13 +02:00
René Kijewski
867246a09f
Add argument to thread_create
2014-07-09 10:07:54 +02:00
René Kijewski
54047c72d3
native: override INCLUDES w/ NATIVEINCLUDES
...
Currrently native overrides the object file targets, because it needs
the different include paths to interact with libc and the OS.
This PR simplifies their makefiles to only override the variable
INCLUDES, instead of overriding the targets.
2014-07-07 23:09:14 +02:00
Ludwig Ortmann
34c2283d5e
Merge pull request #1351 from LudwigOrtmann/native_hwtimer
...
native: implement hwtimer removal
2014-07-07 11:01:48 +02:00
René Kijewski
63dd8546af
Merge pull request #1335 from Kijewski/fix-all-warnings-for-native-and-qemu-i386
...
Fix all warnings for native and qemu-i386
2014-07-02 10:58:48 +02:00
Oleg Hahm
44e5d8cfd0
nativenet: change max packet size to 127
...
Real IEEE 802.15.4 transceivers have a payload of 127. Hence, for
testing - particular 6lowpan - it would make sense to have the same
limitation in nativenet. Especially to test fragmentation this is
helpful.
2014-07-01 18:31:40 +02:00
Ludwig Ortmann
6567de634f
native: implement hwtimer removal
2014-06-30 11:25:05 +02:00
René Kijewski
3063e3c2b1
Fix all warnings for native and qemu-i386
...
Missing returns, unused variables (only used for debugging), empty
translation units, missing function prototypes, and GNU extensions.
2014-06-24 16:50:32 +02:00
René Kijewski
2ae0c1b149
make: use abspath for better error messages
2014-06-23 15:50:10 +02:00
René Kijewski
a9a76cb2c2
make: create dependencies as side effect
2014-06-23 15:50:10 +02:00
Ludwig Ortmann
741d9beeb0
Merge pull request #1332 from Kijewski/native-fix-warnings-in-default
...
native: remove some warnings about undef functions
2014-06-19 17:28:16 +02:00
Martine Lenders
6d1365c5d8
Merge pull request #1324 from Kijewski/make-automatic-module-name
...
make: much less clutter for "standard layout" modules
2014-06-18 23:52:49 +02:00
René Kijewski
2f871ca885
native: remove some warnings about undef functions
...
This PR implements `real_X` for `X in (fork, dup2, unlink, execve)`.
These function caused warnings while making the default example.
2014-06-18 20:34:12 +02:00
René Kijewski
467b41ad49
make: easifier usage of module subdirectories
...
Many modules have subdirectories. Often these subdirectories should only
be included under certain circumstances. Modules that use submodules
currently need to use this pattern:
```make
DIRS = …
all: $(BINDIR)$(MODULE).a
@for i in $(DIRS) ; do $(MAKE) -C $$i ; done ;
include $(RIOTBASE)/Makefile.base
clean::
@for i in $(DIRS) ; do $(MAKE) -C $$i clean ; done ;
```
This PR moves the `all:` and `clean::` boilerplate into `Makefile.base`.
2014-06-17 15:49:32 +02:00
René Kijewski
840c0f0a57
make: detect their module name automatically
...
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.
This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
René Kijewski
2e9a1773e9
native: use real_pipe()
and read_close()
2014-06-14 00:39:02 +02:00
Ludwig Ortmann
dbc36fc2c5
native: add id option
2014-06-06 16:30:54 +02:00
Ludwig Ortmann
1e5e19bc23
native: set optional path with unix socket option
...
fixes #1045
2014-06-03 16:46:40 +02:00
Ludwig Ortmann
e36590cda7
native: fix coding style
2014-06-03 16:46:40 +02:00
Oleg Hahm
ef4fe6616c
documentation: unified descriptive text for cpu
2014-05-24 15:56:57 +02:00
Ludwig Ortmann
c9f68e79b9
native: set _native_pid correctly in daemon mode
...
This fixes a bug that leads to all unix sockets being created as
`/tmp/riot.tty.0`.
2014-05-20 08:53:26 +02:00
Oleg Hahm
ef5ec344fd
core: prefix API functions correctly
...
Also changed names for bitarithm functions and rename thread_pid to sched_active_pid.
2014-05-18 08:53:20 +02:00
Ludwig Ortmann
cbf39bf012
native: add missing include
...
crash.c was missing native_internal.h
2014-05-16 17:24:45 +02:00
Ludwig Ortmann
98bbb80571
documentation: append my email to my name everywhere
2014-05-15 18:07:17 +02:00
Ludwig Ortmann
3a3c04e66e
native/tramp.S: add missing license header
2014-05-15 18:07:17 +02:00
Ludwig Ortmann
b43fa2327e
native/tramp.S: use ret instead of manual return
2014-05-15 11:38:24 +02:00
Ludwig Ortmann
e0a1217f20
native: refactor one debug/errx use in irq_cpu.c
2014-05-15 11:37:18 +02:00
Thomas Eichinger
7a031e5669
net: handle macro redefinitions for OS X
...
undefine macros and reorder header includes to get rid of system
defined macros on OS X
fixes #1165
2014-05-14 19:43:58 +02:00
René Kijewski
d98ebf62cd
native: fixup #1145 : function declaration
2014-05-14 16:54:34 +02:00
René Kijewski
8038e96d09
Merge pull request #1119 from Kijewski/error_old-style-definition
...
Exterminate old-style function definitions
2014-05-14 13:31:30 +02:00
Ludwig Ortmann
166b88f1ae
native: internal getpid syscall
2014-05-14 09:13:57 +02:00
Ludwig Ortmann
4c961bfb6e
native: refactor getpid calls
2014-05-14 09:13:57 +02:00