smlng
a7b049f98a
drivers: coding style, use {} for empty while loops
6 years ago
Kaspar Schleiser
0fcc7d3834
cleanup: apply headerguard script output
6 years ago
Martine Lenders
29842bb5e4
netdev2: rename to netdev and remove `gnrc_netdev`
...
With some minor hand-edits I used the following chain of commands:
```sh
git rm sys/include/net/gnrc/netdev.h
git grep --name-only -i netdev2 | \
xargs sed -i -e 's/^\(NETDEV\)2\(.*\)\( [("]\)/\1\2 \3/g' \
-e 's/\(netdev\)2\(.*\)\( \/\*\*<\)/\1\2 \3/I' \
-e 's/\(netdev\)2/\1/gI'
git add -p
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | xargs -I'{}' dirname '{}' | uniq | \
grep "netdev2" | while read dir; do
new_dir="$(echo "$dir" | sed "s/netdev2/netdev/g")"
git mv -f "$dir" "$new_dir"
done
git commit --amend
git ls-tree --full-tree -r HEAD --name-only | \
grep "netdev2" | while read file; do
new_file="$(echo "$file" | sed "s/netdev2/netdev/g")"
git mv -f "$file" "$new_file"
done
git commit --amend
git grep --name-only "\<drivers_netdev_netdev\>" | \
xargs sed -i "s/\<drivers_netdev_netdev\>/drivers_netdev_api/g"
git add -p
git commit --amend
```
6 years ago
Oleg Hahm
0d3833a88a
net: cleanup ng_ remnants
6 years ago
Hauke Petersen
79a113d1ba
sys/drivers: renamed uuid module to luid
6 years ago
Hauke Petersen
8799b3ab9e
drivers/cc110x: adapted to SPI API changes
6 years ago
Hauke Petersen
84246d1687
drivers/cc110x: use uuid module for addr gen
6 years ago
Martine Lenders
7f7f08bf50
cc110x: only handle NETOPT_PROTO if gnrc_netif module is present
...
The cc110x_t::proto field is only present when the `gnrc_netif` module
is present. Handling its corresponding `NETOPT_PROTO` value leads to a
compile error when trying to compile without GNRC.
6 years ago
Martine Lenders
bd2429f299
cpu: drivers: adapt devices for netdev2 parameter type change
7 years ago
Alexandre Abadie
75168936f6
drivers/cc110x: fix typo in macro definition.
7 years ago
Kaspar Schleiser
d7b17684e4
drivers: net: adapt to removed event_callback argument
7 years ago
Oleg Hahm
86a83f8f86
cc110x: use CPP check instead of runtime check
7 years ago
Oleg Hahm
0ed54f0d4e
cc110x: fix typo (missing semicolon)
7 years ago
Kaspar Schleiser
e64cffa359
drivers: cc110x: compile fix
7 years ago
Martine Lenders
69b63b7c5a
cc110x: generate IID from hardware address
7 years ago
Martine Lenders
536255696e
cc110x: take whole CPU ID for hardware address generation
7 years ago
DipSwitch
0bb4748a94
core: Fix/refactor function naming in core/incude/irq.h
7 years ago
Hauke Petersen
e51d634aeb
drivers: adapted gpio_init(_x)() calls
7 years ago
Martine Lenders
64ec89e9cb
cc110x: only set info values if != NULL
7 years ago
Martine Lenders
bd8d2d3a8a
cc110x: adapt for info struct
7 years ago
Kaspar Schleiser
5b4b40cc1e
drivers: cc110x: don't pass isr_arg on rx complete event
7 years ago
Cenk Gündoğan
c0369f04f6
drivers: make default channel configurable at compile time
7 years ago
Hauke Petersen
f3ac84d43a
drivers: s/CPUID_ID_LEN/CPUID_LEN/
7 years ago
Oleg Hahm
2f5683b3f7
cc110x: make protocol configurable
7 years ago
Martine Lenders
3c00cec299
gnrc_netdev2: harmonize naming scheme to rest of GNRC
7 years ago
Hauke Petersen
aee4e564c0
drivers/cc110x: moved includes
...
let the driver follow the same structure than other drivers
for now: keeping 'private' includes in a local include folder
7 years ago
Kaspar Schleiser
14d0ef6c4d
drivers: add cc110x driver
7 years ago
Kaspar Schleiser
6e3e41b729
drivers: remove cc110x
8 years ago
Kaspar Schleiser
5d8349298f
remove bulk of legacy network stack and drivers
8 years ago
Hauke Petersen
2cc2d9f740
drivers: adjusted drivers to changed GPIO interface
8 years ago
Hauke Petersen
9943f51080
global: renamed cpu-conf.h into cpu_conf.h
8 years ago
Joakim Gebart
13832d8e62
everything: Remove filename from @file Doxygen command
8 years ago
Joakim Gebart
9597cfd946
drivers/cc110x: Replace tabs by spaces
8 years ago
kushalsingh007
3dbe4cd8af
Reducing the scope of variable after running static code analyser.
...
- Part of fix for issue number 480 (variableScope)
- Suppression of warnings that are not needed.
8 years ago
Joakim Gebart
af1ddef1fb
cc110x: Acquire exclusive access to SPI bus.
...
Signed-off-by: Joakim Gebart <joakim.gebart@eistec.se>
8 years ago
Oleg Hahm
11d0a22ad7
doc: remove superfluous and erroneous @file params
8 years ago
Fabian Nack
eebfd5011a
drivers - cc110x: Initial import of new cc110x driver
8 years ago
Fabian Nack
53b0ad2be5
drivers - cc110x: rename cc110x to cc110x_legacy_csma
8 years ago
BytesGalore
469f28bf5c
added missing `extern "C"` guards
8 years ago
BytesGalore
f94623ae0f
drivers: add `extern "C"` to header files
8 years ago
René Kijewski
0cc699c0ce
lint: reduce scope
...
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
9 years ago
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...
9 years ago
Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
9 years ago
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.
9 years ago
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.
9 years ago
Oleg Hahm
78237c3fba
cc110x: use radio_packet_length_t
9 years ago
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.
9 years ago
Ludwig Ortmann
3ca4f18479
doc: use lgplv2.1-short license header instead of lgpl-short-riot
9 years ago
Ludwig Ortmann
1200c3bc46
doc: fix comment indentation
9 years ago
Cenk Gündoğan
c0f80c7f75
converting tabs to spaces in drivers ( #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.
9 years ago