Cenk Gündoğan
ca5b45e264
converting tabs to spaces in sys ( #1439 )
...
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:51:50 +02:00
Ludwig Ortmann
b6846e31fc
doc: fix most occurences of FU as an author
...
.. but only if there are other authors as well
2014-07-29 17:23:11 +02:00
René Kijewski
0ab1b86e5f
Add generic char
pipe implementation
2014-07-28 23:21:27 +02:00
René Kijewski
02aeca02db
ringbuffer: add static initializer
2014-07-28 20:56:12 +02:00
René Kijewski
201152a6d3
ringbuffer: add documentation
2014-07-28 20:56:12 +02:00
René Kijewski
a346276d30
ringbuffer: don't overwrite in ringbuffer_add
2014-07-28 20:44:02 +02:00
René Kijewski
47950e8bab
ringbuffer: remove pointer to the end
...
There is no need for an explicit pointer to the end of the buffer.
2014-07-28 20:44:02 +02:00
René Kijewski
726af8d44e
ringbuffer: fix parameter types
...
It is a bad idea to use signed types for lengths.
Mark pointers a `restrict`, since the ringbuffer is not thread safe
anyway.
2014-07-28 20:44:02 +02:00
René Kijewski
67856d63d9
ringbuffer: add convenience functions
...
This patch add `peek` functionality, and empty and full helpers.
2014-07-28 20:44:01 +02:00
Oleg Hahm
a6e97a4f75
Merge pull request #1034 from Kijewski/vtimer-callbacks
...
vtimer: fix callback usage
2014-07-10 17:12:23 +02:00
Ludwig Ortmann
d034cfac29
sys/transceiver: implement transceiver_unregister
2014-07-10 14:11:48 +02:00
René Kijewski
ba1a15535b
core: remove extra thread_create_arg() function
2014-07-09 10:28:23 +02:00
Oleg Hahm
9f39226108
shell: added command to print all ignored addresses
2014-06-24 10:11:06 +02:00
Hauke Petersen
839955cd05
sys: added color module
2014-06-22 13:53:01 +02:00
Philipp Rosenkranz
0bf6ce22f3
added conv function from uint64 to timex_t and one minor bug fix
2014-06-19 12:40:24 +02:00
René Kijewski
2231a315d4
vtimer: fix callback usage
...
There is no need to test the "handler" set in the vtimer struct, and
have some code executed then. We just can make the code to execute the
handler. To lengthy `if else if`, just a call.
2014-06-03 21:07:59 +02:00
René Kijewski
1887bd45c6
sys: add utility functions for struct tm
2014-05-28 00:16:32 +02:00
Oleg Hahm
9efc0d2255
documentation: added missing doxygen header to transceiver interface
2014-05-22 13:01:36 +02:00
René Kijewski
f23dab96d2
sys: rename ringbuffer functions
...
Closes #1011 .
2014-05-03 16:39:39 +02:00
Christian Mehlis
72036742d8
Merge pull request #1063 from Kijewski/shell_command_t-fix-const
...
shell: strings in shell_command_t are const
2014-04-28 14:07:36 +02:00
René Kijewski
07cc72576e
shell: Comment internal members, too
...
Closes #979 .
2014-04-28 10:41:48 +02:00
René Kijewski
4ed38bd2f3
shell: strings in shell_command_t are const
2014-04-27 14:37:54 +02:00
Thomas Eichinger
d89faccc78
Merge pull request #1031 from LudwigOrtmann/issue_676
...
redbee-econotag: fix maca
2014-04-24 10:19:22 +02:00
René Kijewski
14401ede42
shell: Add doxygen
...
Closes #577 .
2014-04-22 08:03:15 +02:00
Ludwig Ortmann
3a1980af36
redbee-econotag: fix maca
...
I suspect that the transceiver will still not work as there are many
many warnings, but at least it builds now.
closes : #676
2014-04-18 16:05:23 +02:00
Ludwig Ortmann
8ac4f3332d
core cpu: add defaulttransceiver pseudomodule
...
update examples/default
2014-03-18 10:18:15 +01:00
Christian Mehlis
60feb7ea37
posix: move posix semaphore in posix module
2014-03-16 19:48:25 +01:00
Christian Mehlis
ef1d9836d3
Merge pull request #806 from Kijewski/sem-pthread-native
...
native/posix: Don't include sys/types.h in semaphore.h
2014-03-03 17:36:46 +01:00
Christian Mehlis
80135e6655
Merge pull request #824 from LudwigOrtmann/3des_includes
...
sys/crypto: remove assert.h include
2014-03-01 17:14:44 +01:00
Ludwig Ortmann
c51c135192
sys/crypto: remove assert.h include
...
It is not used and most platforms don't have it.
2014-03-01 14:43:13 +01:00
Martin Lenders
7f8e2c2991
Add getter and setter of long addresses to transceiver
2014-02-28 23:13:22 +01:00
René Kijewski
6636e9c8e8
native/posix: Don't include sys/types.h in sem
...
`sys/types.h` contains the native definition for `pthread_*_t`. This
causes clashes if you want to use `semaphore` and `pthread` in the same
application.
2014-02-27 15:26:25 +01:00
Christian Mehlis
af87308e2a
Merge pull request #782 from OlegHahm/syscall_gettimeofday
...
sys: vtimer: added gettimeofday syscall
2014-02-26 15:56:53 +01:00
René Kijewski
c507632e50
Use argc and argv in shell handlers
...
Compare #708 .
Now the tokenization of an input line is done by the shell itself. You
may quote arguments with `"..."`. Empty arguments, supplied by `""` are
preserved. Spaces in between arguments are squasheds; spaces inside
quotes are preserved.
You cannot partially quote an argument. You must not use
- `cmd "abc`,
- `cmd abc"def"`, or
- `cmd "abc"def`.
2014-02-25 17:54:17 +01:00
Oleg Hahm
07b0cd8863
added gettimeofday syscall
...
RIOT's gettimeofday needs to be called from syscalls.c to assure that gcc actually links it.
If an RTC if available and enabled it will be used instead.
2014-02-25 17:41:45 +01:00
Christian Mehlis
cb9c5d00de
repace project by application in documentation
2014-02-18 12:28:32 +01:00
Ludwig Ortmann
2525920426
remove trailing whitespace and newlines
2014-02-11 18:45:06 +01:00
Oleg Hahm
30b6c16512
include cc110x.h instead of deprecated interface.h
2014-02-11 13:36:40 +01:00
Christian Mehlis
96d0eafc1a
spelling: fix autor to author
2014-01-24 19:04:28 +01:00
Oleg Hahm
690c4564f2
include "cpu.h" for MSP430 platforms in fd.h
2014-01-20 13:48:37 +01:00
Martin Lenders
abe65b09bb
Implement file descriptor table
...
Needed for pnet
2014-01-17 14:40:57 +01:00
Oleg Hahm
ed8a220cd0
Merge pull request #442 from mehlis/vtimer_get_localtime
...
Vtimer get localtime
2014-01-15 09:19:06 -08:00
Christian Mehlis
93ddf37d81
added timex_isnormalized
2014-01-09 16:36:40 +01:00
Christian Mehlis
5a6e16cfc3
added timex_uint64 function
2014-01-09 16:36:40 +01:00
Oleg Hahm
593ee623b6
simplify and unify include pathes
...
additional:
* exporting include path in sys is mandatory for subfolders
* removed duplicate object file in linker call
2014-01-05 16:11:07 +01:00
Oleg Hahm
8d157130ae
move include directives from header to C file
2014-01-05 16:11:07 +01:00
Christian Mehlis
3d67ad3a8a
add vtimer_get_localtime
2013-12-23 23:36:03 +01:00
Martin Lenders
68f7b9090e
Make shell buffer size a shell property
2013-12-20 11:10:50 +01:00
Martin Lenders
69809928d3
Make UART0_BUFSIZE configurable by CPU
2013-12-20 11:10:42 +01:00
Oleg Hahm
885798aaca
Merge pull request #391 from haukepetersen/import_crypto
...
Initial import of crypto libs from SecureMicroMeshRouting
2013-12-19 10:10:37 -08:00