MrKevinWeiss
7a68fb0d5e
*Kconfig*: Remove dep-only Kconfig files
2024-03-26 14:54:22 +01:00
Karl Fessel
05f114d0af
doc: fix unbalaced grouping
...
- most were trivial
- missing group close or open
- extra space
- no doxygen comment
- name commad might open an implicit group
this hould also be implicit cosed but does not happen somtimes
- crazy: internal declared groups have to be closed internal
2022-09-14 15:05:25 +02:00
Marian Buschsieweke
276ad5716a
sys/net/gnrc/netif: allow checking if a netdev is legacy or new API
...
A if `netdev_driver_t::confirm_send()` is provided, it provides the
new netdev API. However, detecting the API at runtime and handling
both API styles comes at a cost. This can be optimized in case only
new or only old style netdevs are in use.
To do so, this adds the pseudo modules `netdev_legacy_api` and
`netdev_new_api`. As right now no netdev actually implements the new
API, all netdevs pull in `netdev_legacy_api`. If `netdev_legacy_api` is
in used but `netdev_new_api` is not, we can safely assume at compile
time that only legacy netdevs are in use. Similar, if only
`netdev_new_api` is used, only support for the new API is needed. Only
when both are in use, run time checks are needed.
This provides two helper function to check for a netif if the
corresponding netdev implements the old or the new API. (With one
being the inverse of the other.) They are suitable for constant folding
when only new or only legacy devices are in use. Consequently, dead
branches should be eliminated by the optimizer.
2022-08-17 12:56:07 +02:00
Leandro Lanzieri
bc10e6ec79
drivers/encx24j600: model in Kconfig
2022-07-22 16:06:35 +02:00
Leandro Lanzieri
a2e5934ec9
drivers/encx24j600: introduce setup function with index
2022-03-24 09:32:10 +01:00
Leandro Lanzieri
de79edb352
drivers/encx24j600: define default parameters
2022-03-04 09:58:50 +01:00
Marian Buschsieweke
4c22716001
drivers/encx24j600: make cppcheck happy
...
Rename cmd buffer to cmd_buf to avoid shadowing outer function.
2021-11-07 08:46:06 +01:00
Marian Buschsieweke
9f1cece6ee
drivers/encx24j600: fix unaligned memory access
2021-11-06 20:33:43 +01:00
Jan Romann
4384795cb9
treewide: Remove excessive newlines
2021-08-13 19:50:38 +02:00
Jose Alamos
ebb857f8fa
drivers/encx24j600: avoid explicit cast to netdev
2021-07-09 11:35:23 +02:00
Bas Stottelaar
92b1dfc703
drivers/*: realign ENABLE_DEBUG
2020-10-23 01:26:09 +02:00
Bas Stottelaar
26835a949f
drivers/*: remove unused assert.h include
2020-10-22 11:29:27 +02:00
Benjamin Valentin
110609195f
drivers/encx24j600: use unsigned char
2020-07-31 13:38:03 +02:00
304bce3724
drivers: configure per driver dependency resolution
2020-07-20 14:32:16 +02:00
Martine Lenders
e5d692babe
Merge pull request #14493 from miri64/netopt/cleanup/rm-LINK_CONNECTED
...
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
2020-07-17 22:35:46 +02:00
490126cfa0
drivers: move USEMODULE_INCLUDES in each driver directories
2020-07-15 20:36:27 +02:00
Martine S. Lenders
8dba9a9188
netopt: remove deprecated alias NETOPT_LINK_CONNECTED
2020-07-10 16:18:13 +02:00
Jose Alamos
3ad574a822
drivers/netdev: use netdev_trigger_event_isr function
2020-03-06 14:03:43 +01:00
6d79a068b0
drivers/encx24j600: fix typos
2019-11-23 22:39:39 +01:00
Francois Berder
4a31f94cfc
many typo fixes
...
Signed-off-by: Francois Berder <18538310+francois-berder@users.noreply.github.com>
2019-11-23 22:39:07 +01:00
Marian Buschsieweke
99db8e8717
drivers/encx24j600: Allow empty iolist elements
...
This commits allows using netdev_driver_t::send() to be called with one or more
empty iolist elements. This fixes issue
https://github.com/RIOT-OS/RIOT/issues/11163
2019-04-01 16:51:39 +02:00
4dcd958dce
Merge pull request #10415 from maribu/encx24j600
...
drivers/encx24j600: Implemented missing drop case
2019-03-11 14:15:40 +01:00
4c2749041b
drivers/encx24j600: lock dev in netopt get()
2019-03-11 12:35:09 +01:00
smlng
6183d5f5c5
netdev: remove layer2 netstats from netdev drivers
...
Removing usage of netdev->stats in all net drivers, as it is
handled by gnrc_netif.
2019-02-01 11:25:27 +02:00
Marian Buschsieweke
727b4cac1c
drivers/encx24j600: Implemented missing drop case
...
The netdev_driver_t::recv implementation of the encx24j600 does not provide the
drop feature. This commit adds it.
Fixes : #10410
2018-11-16 13:24:35 +01:00
Martine Lenders
ce807173ff
Merge pull request #8601 from bergzand/pr/netopt-link-status
...
netopt/drivers: Add phy link status output
2018-03-18 15:25:01 +00:00
eb9e2dadf1
encx24j600: add link status support
2018-03-18 15:32:41 +01:00
23b414b732
drivers: net: adapt to iolist-using netdev
2018-03-06 14:00:31 +01:00
smlng
b283b7784c
make: fix various compile errors with Wextra
...
pkg, nordic_softdevice_ble: disable CFLAGS to omit compiler error
sys, pm_layered: fix casting nonscalar to the same type
cpu, stm32_common: fix type-limits, remove always true assert
cpu, stm32f4: fix pointer arithmetic in periph/i2c
drivers, at86rf2xx: fix type-limits where condition always true
saul, gpio: fix if no gpio configured for saul
cpu, saml21: add frequency check to periph/timer
driver, cc110x: fix unused param and type-limts errors
boards, wsn430-common: fix old-style-declaration
make: fix old style definition
drivers, sdcard_spi: fix old style typedef
driver, at30tse: remove unnecessary check
driver, nrf24: fix type-limit
driver, pn532: change buffer from char to uint8_t
tests/driver_sdcard: fix type limits
boards, feather-m0: add missing field inits
driver, tcs37727: fix type limits
pkg, emb6: disable some compiler warnings
tests/emb6: disable some compiler warings
pkg, openthread: fix sign compare and unused params
tests/trickle: fix struct init
tests/pthread_cooperation: fix type limits
board, mips-malta: remove feature periph_uart
shell: fix var size for netif command
gnrc, netif: fix sign-compare
gnrc, nib: fix sign-compare
shell: fix output in netif command
posix: fix type-limits in pthread_cond
2017-11-28 18:31:43 +01:00
kYc0o
b3c39274bb
drivers/encx24j600/encx24j600.c : fix counter var length
2017-10-26 00:45:00 +02:00
94c753c07a
drivers: doxygen cleanup
2017-09-01 15:12:20 +02:00
smlng
a7b049f98a
drivers: coding style, use {} for empty while loops
2017-06-11 20:08:10 +02:00
Martine Lenders
99327c7c04
Merge pull request #7137 from smlng/driver/encx24j600/fix_overflow
...
driver, encx24j600: fix possible buffer overflow
2017-06-06 07:51:13 +02:00
smlng
164768be54
netstats_l2: correct rx_bytes in encx24j600
2017-06-05 11:08:59 +02:00
smlng
b41219744a
driver, encx24j600: fix possible buffer overflow
...
overflow if len < payload_len, that is packet too big
2017-06-05 11:08:59 +02:00
Martine Lenders
d4693648ba
Merge pull request #7095 from kaspar030/add_headerguard_check_script
...
dist: tools: add headerguard check script
2017-05-24 18:08:29 +02:00
0fcc7d3834
cleanup: apply headerguard script output
2017-05-24 17:54:02 +02:00
Hauke Petersen
d488fdc1e3
sys/drivers: guard l2filter.h, netstats.h includes
2017-05-23 13:39:49 +02:00
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
```
2017-03-15 09:31:20 +01:00
7178d6d002
drivers: encx24j600: misc compilation fixes
2017-01-26 10:56:59 +01:00
Hauke Petersen
87534c75f0
drivers/encx24j600: adapted to SPI API changes
2017-01-25 16:46:45 +01:00
Martine Lenders
bd2429f299
cpu: drivers: adapt devices for netdev2 parameter type change
2016-08-03 12:30:51 +02:00
Victor Arino
50eee7fa8a
drivers/encx24j600: minor fixes
2016-07-14 16:44:39 +02:00
d7b17684e4
drivers: net: adapt to removed event_callback argument
2016-06-02 11:11:40 +02:00
1ac0ab6905
drivers: encx24j600: prefix constants
2016-04-06 22:53:47 +02:00
d9d5d88b26
drivers: encx24j600.c: compile fixes
2016-04-06 22:53:27 +02:00
Oleg Hahm
aa043a50bf
drivers encx24j600: introduce netstats
...
This driver was missing netstats completely so far.
2016-04-03 18:05:07 +02:00
Oleg Hahm
59674a679b
netdev2: use params parameter for setup
2016-03-28 20:22:20 +02:00
Oleg Hahm
26b3263f8a
netdev2: moved ethernet header into subdir
2016-03-25 15:10:07 +01:00
Hauke Petersen
e51d634aeb
drivers: adapted gpio_init(_x)() calls
2016-03-17 14:55:30 +01:00