1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

501 Commits

Author SHA1 Message Date
fcb666dff9 sys: shell: mersenne: adapt to xtimer 2015-09-16 10:58:51 +02:00
Cenk Gündoğan
067c029f92 sc_gnrc_rpl: adjust to xtimer for trickle 2015-09-16 10:58:51 +02:00
Oleg Hahm
e65cc8dc6d shell: initialize l2 addr length variable 2015-09-11 21:44:25 +02:00
Oleg Hahm
000caf4e87 shell: exit early if no IPv6 interface is found 2015-09-11 21:44:25 +02:00
Martine Lenders
14ae02d768 sc_netif: piggy-back some style fixes 2015-09-11 13:14:21 +02:00
Martine Lenders
3364782614 shell: fix output for ifconfig 2015-09-11 13:13:55 +02:00
DipSwitch
a3062dd8c2 rpl: RPL Instance ID 0 must be allowed 2015-09-08 09:20:20 +02:00
d7b9053e23 sys: shell: work around inlined putchar 2015-09-04 19:38:16 +02:00
Hauke Petersen
076e9db374 Merge pull request #3402 from kaspar030/simplify_shell
sys: simplify shell
2015-09-03 15:27:01 +02:00
13995e878f sys: shell: get rid of some parameters 2015-09-03 13:33:18 +02:00
Thomas Eichinger
c5a141393c shell/netif: fix wrong type for formating 2015-09-03 11:49:57 +02:00
Oleg Hahm
6786da07e2 Merge pull request #3628 from authmillenon/ng_ndp/enh/0-length-addr
gnrc_ndp: add support for address-less link-layers
2015-09-02 13:53:22 +02:00
Martine Lenders
6e0a44705b sc_ipv6_nc: add capability for address-less link-layers 2015-09-02 12:51:15 +02:00
daniel-k
6f705a5189 at86rf2xx: implement CSMA settings 2015-09-01 18:45:47 +02:00
Oleg Hahm
eac7f3e3ce Merge pull request #3697 from OlegHahm/netopt_wireless_ro
gnrc: link-type flag
2015-09-01 11:54:48 +02:00
Oleg Hahm
7b967a1e75 shell: show link-type for IPv6 interfaces 2015-09-01 11:32:16 +02:00
Oleg Hahm
b514eeab04 Merge pull request #3706 from OlegHahm/fib_size_parameter
fib: add size parameter
2015-09-01 11:28:55 +02:00
Oleg Hahm
86cabbd102 fib: add data struct for meta information
In order to properly make use of different FIB tables, handling of different sizes is required. The fib_table_t provides a pointer to the array of entries and its size.
2015-09-01 11:09:10 +02:00
Cenk Gündoğan
b8c0498fb4 rpl: allow 0 as instance id 2015-08-27 14:38:08 +02:00
Martine Lenders
ac0e2f4371 net: remove redefinitions and their dependencies throughout the stack 2015-08-24 13:13:53 +02:00
Oleg Hahm
a0b3021f60 icmpv6: remove superfluous header build functions 2015-08-22 14:32:12 +02:00
Oleg Hahm
8977cc1175 Merge pull request #3675 from authmillenon/gnrc_ipv6/fix/check-mtu
gnrc_ipv6: check link MTU before sending
2015-08-21 23:45:52 +02:00
Martine Lenders
942d774a44 shell: ifconfig: add support for IPv6 MTU 2015-08-21 19:05:53 +02:00
Oleg Hahm
4267212502 fib: allow for multiple instances of FIB 2015-08-20 15:47:27 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00
Martine Lenders
89009ae2f1 icmpv6: put message definitions in their own files 2015-08-18 17:30:23 +02:00
Martine Lenders
87c222d2fa Merge pull request #3595 from authmillenon/gnrc/api/mv
gnrc: rename ng_netbase to gnrc
2015-08-18 16:59:34 +02:00
Martine Lenders
b969eeb217 gnrc: rename ng_netbase to gnrc 2015-08-18 16:11:55 +02:00
Cenk Gündoğan
acd07de676 ng_rpl: shell commands for RPL 2015-08-18 12:03:30 +02:00
Martine Lenders
2903667494 tests: adapt unittests for ipv6_hdr module division 2015-08-14 17:18:37 +02:00
Cenk Gündoğan
4deb0213b9 sys/shell/shell.c: command not found in one line 2015-08-12 13:16:37 +02:00
Martine Lenders
203561e741 ipv6_addr: remove ng_ prefix 2015-08-11 13:27:07 +02:00
Martine Lenders
2e6c974c15 Merge pull request #3568 from haukepetersen/opt_fib_ngprefix
net/fib: removed any ng_'s from the FIB
2015-08-11 02:28:00 +02:00
Martine Lenders
c82dfda445 Merge pull request #3567 from authmillenon/timex/enh/timex_to_str
timex: make timex_to_str more efficient
2015-08-11 02:21:41 +02:00
Martine Lenders
ea48b48dd3 timex: make timex_to_str more efficient 2015-08-11 01:33:21 +02:00
Hauke Petersen
85fe67e629 net/fib: removed all ng prefixes from fib 2015-08-10 15:43:55 +02:00
Cenk Gündoğan
6b36a0760b sys/shell/commands/sc_fib.c: make dev param optional 2015-08-08 08:48:56 +02:00
Martine Lenders
0046d8fffb Merge pull request #3572 from cgundogan/pr/sc_ipv6_nc/iface_optional_and_reset
sc_ipv6_nc: make iface optional and add reset function
2015-08-07 17:37:58 +02:00
Hauke Petersen
38956457a1 sys: adapted to renamed netopt header 2015-08-06 15:37:11 +02:00
5d8349298f remove bulk of legacy network stack and drivers 2015-08-06 12:12:47 +02:00
Cenk Gündoğan
c7f9bce644 sc_ipv6_nc: add ncache reset functionality 2015-08-05 22:43:04 +02:00
Cenk Gündoğan
fa0b1ba441 sc_ipv6_nc: make iface optional for add 2015-08-05 22:37:25 +02:00
Hauke Petersen
db862f13a1 sys/shell_commands: fixed formatting in Makefile 2015-07-30 15:15:31 +02:00
Martine Lenders
9aff73b4a9 Merge pull request #3514 from authmillenon/shell/fix/icmpv6-stupid
shell: sc_icmpv6_echo: prepare for stupid users
2015-07-28 23:58:27 +02:00
Martine Lenders
ce9b6e1990 shell: sc_icmpv6_echo: prepare for stupid users 2015-07-28 23:05:15 +02:00
Martine Lenders
e9cbadd3cd shell: sc_icmpv6_echo: don't fail if packet buffer is full 2015-07-28 22:35:20 +02:00
Oleg Hahm
03b7c7349a Merge pull request #3457 from authmillenon/gnrc/api/rename-netconf
gnrc: rename ng_netconf to ng_netopt
2015-07-28 18:21:09 +02:00
Martine Lenders
6f56b983f0 gnrc: replace all instances of ng_netconf with ng_netopt 2015-07-28 13:33:12 +02:00
Tobias Markmann
f5a991c476 shell: Fix statistic calculation in ping shell command 2015-07-26 16:15:30 +02:00
Martine Lenders
58d6f124b0 shell: ifconfig add capability to (un)set IPHC 2015-07-23 17:03:34 +02:00
Oleg Hahm
3bae1a7066 shell: set default prefix length to 64 for ifconfig 2015-07-22 20:19:49 +02:00
80ed1d84a0 sys: shell: commands: fix NG_NETIF_NUMOF related compile warning 2015-07-17 12:18:07 +02:00
Martine Lenders
19769bc190 sc_icmpv6_echo: rename n and count more appropriatly 2015-07-10 14:54:42 +02:00
Martine Lenders
be9d8ca64b shell: sc_icmpv6_echo: provide delay option 2015-07-10 14:27:50 +02:00
Peter Kietzmann
8456c9c3fe Merge pull request #3311 from authmillenon/ng_icmpv6_echo/fix/unexpected-parameter-problem
ng_icmpv6_echo: fix unexpected parameter problem
2015-07-08 09:10:15 +02:00
Martine Lenders
539dd57154 ng_icmpv6_echo: fix unexpected parameter problem
Previously it could happen, that the pinging node had send more then one
packet before the reply was received. This would cause the sequence
number to be bigger than expected on receive.

This fixes this problem by introducing a window of expected echo sequence
numbers.
2015-07-08 01:45:57 +02:00
Joakim Gebart
8fc1a656fa sys/shell/commands: Add missing inttypes.h include 2015-07-07 00:53:27 +02:00
adabd8c930 shell: let readline return an error on empty line so prompt gets print again 2015-07-06 11:33:44 +02:00
2d7642b8c1 shell: flush stdout after printing prompt 2015-07-06 09:53:29 +02:00
Martine Lenders
c5318336ae net: intial import of the ZEP protocol 2015-07-02 15:47:19 +02:00
haukepetersen
b803438774 sys/shell: fixed percentage calc of ping6 shell cmd 2015-06-30 14:47:50 +02:00
Martine Lenders
1c4af66c3a ng_icmpv6_echo: fix time output on shell command 2015-06-23 23:44:32 +02:00
Hauke Petersen
1eec484a30 sys/shell: changed signature of put_char pointer
changed from void(*put_char)(int) to int(*putchar)(int).

This is beneficial, as now the std-libs putchar can be given as
an argument to shell_init() directly.
2015-06-14 17:02:57 +02:00
Cenk Gündoğan
2fda604ef3 ng_icmpv6: fix release of pkt 2015-06-11 13:49:01 +02:00
Oleg Hahm
83e22a28af ping6: fix output for nanospecs 2015-05-27 11:11:45 +02:00
Martine Lenders
863304356c shell: fix netif output 2015-05-26 18:46:49 +02:00
Martine Lenders
350b040d72 ng_netif: adapt ng_netif_get for holey lists 2015-05-25 22:02:44 +02:00
Martine Lenders
db33a1047e shell: add examplery ng_ipv6_nc_still_reachable() 2015-05-17 09:15:03 +02:00
Martine Lenders
5e9a4acd29 shell: adapt sc_netif 2015-05-16 15:03:17 +02:00
Martine Lenders
d1c2f7f72b Merge pull request #2908 from authmillenon/ipv6_nc/enh/opt
ipv6_nc: prepare for NDP
2015-05-13 11:05:39 +02:00
Martine Lenders
396b913f3d shell: adapt ipv6_nc shell commands 2015-05-12 20:06:09 +02:00
Martine Lenders
74e58f953b shell: fix table output of neighbor cache 2015-05-10 14:06:03 +02:00
Oleg Hahm
d1bfa2f2ff Merge pull request #2555 from authmillenon/ng_icmpv6/feat/initial
ng_icmpv6: Initial import
2015-05-01 11:37:42 +02:00
Martine Lenders
229f49ad5d shell: add icmpv6_echo shell handler 2015-05-01 08:34:11 +02:00
Martine Lenders
4741a01e36 Merge pull request #2721 from authmillenon/ipv6_nc/feat/iterators
ipv6_nc: add iterators
2015-04-30 08:59:44 +02:00
Martine Lenders
188c1a4ca9 shell: add support for nc iterators 2015-04-29 21:22:29 +02:00
8921a370dc Merge pull request #2582 from authmillenon/shell/feat/ifconfig-ipv6-output
shell: add ng_ipv6 support for ifconfig
2015-04-26 17:58:27 +02:00
Martine Lenders
cb07cd05e2 shell: add ng_ipv6 support for ifconfig 2015-04-26 14:00:48 +02:00
Hauke Petersen
3f7b705379 sys/shell: added option RAWMODE to netif cmds 2015-04-24 14:53:08 +02:00
Martine Lenders
5a0d222dcd shell: add support for (un-)setting 6LoWPAN support on an interface 2015-04-23 16:23:42 +02:00
Martine Lenders
a09909585b shell: fix netif command for return values 2015-04-22 23:34:10 +02:00
Martine Lenders
94dc48da09 shell: sc_netif: add set/unset for promiscous mode 2015-04-22 15:28:27 +02:00
Oleg Hahm
89b32aefe3 ps: thread_print_all() had the wrong module prefix 2015-04-19 16:36:05 +02:00
BytesGalore
bbaddc756d sys/shell: added missing return values 2015-04-14 11:41:10 +02:00
Martine Lenders
67602bb443 Merge pull request #2600 from authmillenon/ipv6_nc/feat/mc-translation
[RFC] ng_netif_hdr: add flags for multicast and broadcast
2015-04-14 10:08:22 +02:00
Martine Lenders
a83fecd642 Merge pull request #2710 from haukepetersen/ng_scnetif_state
shell/ng_netif: enable to get/set a device's state
2015-04-09 21:47:53 +02:00
Martine Lenders
fa2ab8b7cd shell: adapt netif shell commands for bc flag 2015-04-03 16:05:10 +02:00
Martine Lenders
bc072db0e9 shell: add commands to manage neighbor cache manually 2015-04-02 01:13:17 +02:00
Lotte Steenbrink
40acfa732b Merge pull request #2705 from authmillenon/netif/feat/addr-str
netif: add functions to parse and output hardware addresses
2015-04-02 01:04:33 +02:00
BytesGalore
6d579c84e7 shell: fixed return value warning for FIB shell command handler 2015-04-01 18:17:51 +02:00
Martine Lenders
1a0d97fced shell: adapt sc_netif to use new netif functions 2015-04-01 16:24:19 +02:00
BytesGalore
30c76adc43 net: added a core implementation of a FIB 2015-04-01 10:24:35 +02:00
Peter Kietzmann
aeb5316af2 Merge pull request #2744 from authmillenon/shell/fix/rm-return
shell: remove unneeded return
2015-03-31 09:22:24 +02:00
Martine Lenders
3ac8146f8b style: replace tabs with spaces in source 2015-03-31 05:04:44 +02:00
Martine Lenders
8dd5010014 shell: remove unneeded return 2015-03-31 04:54:04 +02:00
Martine Lenders
d0bd218226 shell: fix rtc alarm handler 2015-03-29 20:54:35 +02:00
Martine Lenders
3b42fae668 Merge pull request #2602 from kushalsingh007/shell-return
Return-based error-handling for shell handlers
2015-03-29 18:29:58 +02:00
Hauke Petersen
bf48b86cfa shell/ng_netif: enable to get/set a device's state 2015-03-28 14:04:17 +01:00
Hauke Petersen
6dfca3bd45 Merge pull request #2716 from haukepetersen/fix_shell_makefiles
sys/shell_commands: Makefile: converted tabs to spaces
2015-03-28 14:00:54 +01:00
Hauke Petersen
7d50ad1954 Merge pull request #2715 from haukepetersen/ng_fix_scnetif
sys/shell: shortened description of netif shell cmd
2015-03-28 13:48:54 +01:00
Martine Lenders
ff5633e44e Merge pull request #2709 from haukepetersen/ng_scnetif_power
shell/sc_netif: added means to control TX power
2015-03-27 17:27:25 +01:00
Hauke Petersen
6119ca00d8 sys/shell_commands: converted tabs to spaces in Makefile
Though technically it does not make a difference here, tabs have
a different semantic meaning than spaces in Makefiles. To be consistent
in RIOT we agreed to use two spaces for if conditions -> see #2626.
2015-03-26 00:04:56 +01:00
Hauke Petersen
eecd6ec2cc sys/shell: shortened description of netif shell cmd 2015-03-25 21:24:30 +01:00
kushalsingh007
9aae656be9 shell: Return-based error-handling for shell handlers
- Included the missing parts.
- Squashed with @authmillenon's commit
2015-03-25 23:54:04 +05:30
Martine Lenders
70c1e4dd37 shell: adapt for new nettype_t value 2015-03-25 02:10:14 +01:00
Hauke Petersen
f2e2cfd11c shell/sc_netif: added means to control TX power 2015-03-24 22:16:50 +01:00
Ludwig Ortmann
cf637942cc *: add missing blank lines
Some functions had no blank lines to separate them from their
neighborhood.
2015-03-21 16:34:59 +01:00
Martine Lenders
72f91ad6be Merge pull request #2659 from haukepetersen/ng_fix_scnetif_return
shell/sc_netif: added missing return statements
2015-03-20 16:28:08 +01:00
Hauke Petersen
2e2b0952fe shell/sc_netif: added missing return statements 2015-03-20 15:10:01 +01:00
Hauke Petersen
506c97c4d9 shell/sc_netif: fixed output of PAN ID for decimal 2015-03-20 11:08:02 +01:00
Martine Lenders
d6262df0d2 shell: port ifconfig for ng_netif 2015-03-16 16:46:31 +01:00
Hauke Petersen
40f7227c02 sys/shell: added (ng_)netif shell commands 2015-03-10 17:43:48 +01:00
Hauke Petersen
2323c08d32 sys/shell: fixed and unified doxygen headers
- changed doxygen group name to sys_shell
- added some missing fields
- unified the doxygen header format
2015-03-03 18:10:06 +01:00
Martine Lenders
498313a23f doc: Add mail address where it is missing 2015-02-08 19:41:14 +01:00
Martine Lenders
0eb2d78dda doc: use my real name 2015-02-08 18:52:16 +01:00
Cenk Gündoğan
7095241555 rpl: wrong macro definitions in rpl shell commands
It appears that the values defined for RPL_NODE_IS_ROOT and
RPL_MAX_ROUTING_ENTRIES in the Makefile via CFLAGS are not recognized in
sc_rpl.c (my guess: they are only visible to the rpl module?)
Therefore RPL_MAX_ROUTING_ENTRIES is always set to 0, no matter how the
binary is compiled, thus resulting in the output "No routing table
available" for root nodes.
2015-01-15 10:56:22 +01:00
Cenk Gündoğan
a06c667af5 rpl: remove routing table dependent code
This PR removes code depending on a routing table with an entries
size > 0. Currently, all those functions and symbols are compiled into the binary,
even when there is no effective space in the routing table (as it is the
case for normal nodes in non-storing mode)
2015-01-13 13:11:32 +01:00
Ludwig Ortmann
e7f6f640f6 Merge pull request #2060 from OlegHahm/periph_rtc
drivers: Adapt old platforms to periph rtc
2014-12-16 18:56:59 +01:00
Ludwig Ortmann
ca36e9c4a7 sys/shell: refactor _parse_time 2014-12-16 16:15:17 +01:00
Ludwig Ortmann
3729789dc3 sys/shell: use more common libc calls
use strtol instead of sscanf
use plain printf instead of asctime
2014-12-16 16:08:49 +01:00
Ludwig Ortmann
4942882949 sys/shell: rewrite rtc command for periph/rtc 2014-12-16 16:07:01 +01:00
Oleg Hahm
e64ab2aed5 Merge pull request #2024 from OlegHahm/ccnl_802154
ccn-lite: fixes for working with IEEE 802.15.4 radios
2014-12-16 11:03:20 +01:00
Ludwig Ortmann
0027f90be4 Merge pull request #2118 from OlegHahm/simplify_cpu_folder_structure
cpu: simplify folder structure
2014-12-08 13:10:13 +01:00
Martine Lenders
115420a510 Merge pull request #1228 from OlegHahm/l2_ping
net: Link Layer Ping
2014-12-03 11:55:37 +01:00
Oleg Hahm
4b77fcd22f shell: introduced l2 ping shell commands 2014-12-03 11:08:32 +01:00
Oleg Hahm
17929a5ce4 cpu: lpc2387: integrated lpc_common into lpc2387
Rationale 1: The common part made only sense for (some) NXP ARM7 MCUs,
but was misleading for MCUs like the LPC1768.

Rationale 2: The common part was only used by one specific MCU
implementation - no need to outsource it.
2014-12-02 17:47:10 +01:00
Fabian Nack
eebfd5011a drivers - cc110x: Initial import of new cc110x driver 2014-12-01 17:14:02 +01:00
Fabian Brandt
12cd62c689 Introduction of RPL non-storing mode.
This implementation is based on RFC 6550 with addition of RFC 6554 (Source Routing Header for RPL). Both can be found under the following links:
- http://tools.ietf.org/html/rfc6550
- http://tools.ietf.org/html/rfc6554

The PR provides basic functionality for handling and forwarding packages in non-storing mode. In addition the structure of the previous implemented RPL storing mode is now revised, so that readability and modularity is increased. The following features are implemented:
- building function for a SRH and integration in common packets
- source-route build algorithm based on the structure of the DODAG
- an RPL-based interpretation of the SRH and removal at destination
- new structure for RPl-module with extracted beaconing-functionality
- leaf nodes are now supported

There are some missed goals and should be included in future updates:
- building a common routing table structure for different types of routing protocols
- routing tables are statically assigned via source code, future update should have an optional variable at build-time, which sets the size of the routing table depending on the desired functionality of a node in the network (root, node, leaf)
2014-11-27 21:42:40 +01:00
Oleg Hahm
fbd04bd051 ieee802154: introduce constant for default PAN id 2014-11-16 19:04:25 +01:00
Hauke Petersen
4cdc79f3a9 Merge pull request #1945 from thomaseichinger/sc_lsm303dlhc
shell: provide shell commands to poll lsm303dlhc sensor
2014-11-06 15:03:10 +01:00
Oleg Hahm
f79e228e44 shell: sensors: exit on failure
Immediately leave the read command if sensor is not initialized.
2014-11-06 13:45:44 +01:00
Thomas Eichinger
6bbc4ca226 shell: provide shell commands to poll lsm303dlhc sensor 2014-11-06 11:28:22 +01:00
Hauke Petersen
7e043bb27f sys/shell: added commands for iot-lab_M3 sensors 2014-11-06 10:41:55 +01:00
Thomas Eichinger
660f24405e shell/transceiver: set 16 bit addresses and frame type 2014-11-04 15:14:37 +01:00
Oleg Hahm
fce3a2243e Merge pull request #1846 from thomaseichinger/at86rf23x
drivers/at86rf231: refactoring of the at86rf231 radio driver
2014-10-31 09:33:30 +01:00
Hinnerk van Bruinehsen
ce075d9cbd lint: suppress warning about obsoleteFuntionsasctime 2014-10-31 01:24:32 +01:00
Thomas Eichinger
dfb1b56fad drivers/at86rf231: refactoring of the at86rf231 radio driver
* deploy extended operation mode
* cleanup
* implement netdev 802154.h interface
2014-10-30 22:35:00 +01:00
Fabian Nack
53b0ad2be5 drivers - cc110x: rename cc110x to cc110x_legacy_csma 2014-10-28 16:18:50 +01:00
Fabian Nack
07fff37efe drivers - cc110x_ng: rename ng driver to legacy 2014-10-24 09:55:31 +02:00
Oleg Hahm
84cb4ccaa2 Merge pull request #1830 from thomaseichinger/transceiver-fixes
sys/transceiver: fixes for the use of `ieee802154_packet_t`
2014-10-23 20:58:57 +02:00
5146c66786 core: adapt to msg_try_send 2014-10-22 12:37:33 +02:00
Thomas Eichinger
5b48fcd007 shell/transceiver: properly initialize 802.15.4 packet 2014-10-17 17:05:09 +02:00
Thomas Eichinger
6fcc2ac777 shell/transceiver: fix byte selection for 802.15.4 devices in output 2014-10-07 10:32:58 +02:00
Thomas Eichinger
a686e909aa examples/default: fix handling of 802.15.4 devices 2014-10-07 10:32:58 +02:00
Thomas Eichinger
19f612cf2c examples/default: set src addr correctly 2014-10-07 10:32:58 +02:00
René Kijewski
5f262be568 Merge pull request #1653 from medicalwei/shell_backspace
Add backspace functionality in shell
2014-09-29 21:21:41 +02:00
Yao Wei
b5d3c65672 Add 0x7f as backspace key in shell 2014-09-24 15:40:21 +08:00
Hinnerk van Bruinehsen
567ebf987f lint: limit maximum length of input via scanf 2014-09-19 23:31:26 +02:00
René Kijewski
0cc699c0ce lint: reduce scope
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Yao Wei
208f889a4a add backspace functionality in shell 2014-09-11 21:27:20 +08:00
Oleg Hahm
0ad7b170ed make kernel_pid_t comparisons consistent 2014-08-07 16:31:27 +02:00
Ludwig Ortmann
5fdce06b3b doc: use lgplv2.1-short license header instead of lgplv2-short-v1 2014-07-31 22:57:20 +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
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
Oleg Hahm
344f702366 shell: prepare a rudimentary IEEE 802.15.4 packet
The transceiver module expects an `ieee802154_packet_t` instead of a
`radio_packet_t` if the device supports the IEEE 802.15.4 packet format.
This commit fixes the corresponding transceiver shell command for
`txtsnd` to set destination address (short address mode), payload, and
length accordingly.
2014-07-16 16:07:49 +02:00
Ludwig Ortmann
428e085c53 sys/shell: fix error when not using sixlowpan
```
/sys/shell/commands/sc_net_if.c:631:27: error: ‘IPV6_MAX_ADDR_STR_LEN’ undeclared (first use in this function)
             char addr_str[IPV6_MAX_ADDR_STR_LEN];
                           ^
```
2014-07-14 18:00:05 +02:00
Oleg Hahm
9f39226108 shell: added command to print all ignored addresses 2014-06-24 10:11:06 +02:00
Oleg Hahm
36b9f7e7d7 Merge pull request #1257 from Kijewski/shell-fix-newline
shell: fix newlines
2014-06-22 23:56:36 +02:00
Oleg Hahm
6f17f0c60a Merge pull request #1105 from Kijewski/shell-print-not-found
shell: print command if not found
2014-06-22 21:03:30 +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
94bb326fc0 shell: fix newlines 2014-05-30 21:10:05 +02:00
René Kijewski
4e4f908379 Initial import of the x86 port
Currently this works only in qemu.
2014-05-25 13:40:29 +02:00
Jan S
ba907471f3 fixed printf specifiers 2014-05-15 17:42:57 +02:00
Thomas Eichinger
46acc2f5d5 shell: renaming isnumber to is_number in sc_net_if.c
fix name collision on OS X by renaming
2014-05-14 19:43:58 +02:00
René Kijewski
638666c34a shell: print command if not found 2014-05-12 22:07:35 +02:00
Oleg Hahm
0018e3a181 shell: added RPL route shell command 2014-05-04 17:52:51 +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
René Kijewski
de29e4184c Add include paths automatocally for USEMODULES
Application developers use `$(USEMODULES)` in their Makefiles to have
the relevant functionally automagically added to their apps. This even
does basic dependency tracking by means of `Makefile.dep`.

But an important thing is missing: the automatic adding of include
paths. This is inconvenient, error prone, and will hinder the RIOT core
developers in future to change folder structures.
2014-03-29 16:27:55 +01:00
Ludwig Ortmann
a6fd531783 Merge pull request #874 from OlegHahm/fix_ignore_command
net: transceiver: fix ignore command
2014-03-29 09:42:35 +01:00
Oleg Hahm
90ccdd34d2 shell: transceiver: added missing return in error case 2014-03-19 10:26:49 +01:00
René Kijewski
e073d86845 Merge pull request #877 from Kijewski/shell-utf8
shell: fix UTF-8 problem
2014-03-18 11:27:28 +01:00
Oleg Hahm
42dbc44be4 amendment to 169976f 2014-03-10 20:03:14 +01:00
René Kijewski
97593e9f05 shell: add myself to authors 2014-03-10 18:17:05 +01:00
René Kijewski
a1df6a86bb shell: don't ignore IO errors 2014-03-10 13:48:00 +01:00
René Kijewski
3f289760bf shell: accept UTF8 input 2014-03-10 13:47:33 +01:00
Ludwig Ortmann
063a15ce9b Change reboot signature.
Change from `void reboot(void)` to `int reboot(int mode)`.
Move reboot definition to core, rename architecture implementations
from reboot to reboot_arch.
Declare reboot mode(s) in kernel.h, reboot_arch in kernel_internal.h
Currently only one reboot mode is handled, its use is enforced.

Rationale:
A reboot function is already defined in <unistd.h> on BSD systems.
(See: http://www.openbsd.org/cgi-bin/man.cgi?query=reboot&sektion=2)
This patch not only allows native to build sensibly on these systems
but also streamlines RIOTs compatability with existing software.
2014-03-10 11:14:27 +01:00
Oleg Hahm
169976f90a fix ignore command 2014-03-09 18:59:35 +00:00
Martin Lenders
58fb30b8a7 Fix address output of net_if shell command 2014-03-09 08:45:03 +00:00
René Kijewski
a3076c9726 shell: remove clutter from shell's Makefile
Remove clutter that was put into centralized Makefile.includes.
2014-03-04 21:12:17 +01:00
Christian Mehlis
eb0ceeb773 Merge pull request #794 from Kijewski/shell-args-escape
shell: Allow escaped characters in shell
2014-03-03 18:14:00 +01:00
Martin Lenders
00acab920b Let IPv6 and ICMP use new 6LoWPAN layer (+fixes) 2014-03-01 15:08:18 +01:00
Martin Lenders
4a6495987e Add shell commands for interface configuration 2014-03-01 00:48:42 +01:00
Martin Lenders
848ac70f90 Implement net_if module 2014-02-28 23:13:22 +01:00
Martin Lenders
7f8e2c2991 Add getter and setter of long addresses to transceiver 2014-02-28 23:13:22 +01:00
René Kijewski
03e174ed96 Allow escaped characters in shell
Per #708.

This patch allows escaped characters in the shell, and makes the
apostrophe a quotation mark. The escape character is backslash.

The term "escape character" is used liberally in here: if a backslash is
encountered in the command line, the next character will be taken
verbatim. No escape sequences are understood, i.e. `"\n"` is just the
letter `n`, not a new line.
2014-02-26 18:09:46 +01:00
René Kijewski
a5c0518e0e Fix _settime_handler 2014-02-26 14:08:54 +01:00
René Kijewski
28c4ef45f7 Do not skip over the null terminator 2014-02-26 13:21:25 +01:00
René Kijewski
829966ee32 Print error message on any quoting error 2014-02-25 17:54:17 +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
Ludwig Ortmann
61df6e05a3 ifdef shell _heap_handler for corresponding module 2014-02-25 10:11:04 +01:00
Ludwig Ortmann
3fd73c60c6 build id shell command only for config module
closes #777
2014-02-25 10:11:04 +01:00
Christian Mehlis
48f23aa43d Merge pull request #734 from mehlis/native-c++-fixes
C++ compiler warnings (native, core)
2014-02-20 10:27:37 +01:00
Martin Lenders
df83221983 Hotfix for error introduced in #678 2014-02-18 22:44:00 +01:00
Christian Mehlis
0309fecc19 fix warning: invalid suffix on literal
C++11 requires a space between
literal and identifier [-Wliteral-suffix]
2014-02-18 17:05:01 +01:00
Oleg Hahm
b42496475a Merge pull request #724 from rousselk/reboot
Reboot
2014-02-18 13:33:49 +01:00
Kévin Roussel
dc6f920f33 Merge remote-tracking branch 'origin/reboot' into reboot 2014-02-17 12:00:19 +01:00
René Kijewski
2349d0806e "Exterminate } else {" 2014-02-16 23:29:47 +01:00
Oleg Hahm
6c0482b976 Merge pull request #701 from Kijewski/issue-672
Use `filter` instead of `findstring`
2014-02-16 12:33:29 +01:00
Christian Mehlis
4fd6d73125 Merge pull request #678 from mehlis/shell-no-copy
shell: remove useless copying of input string
2014-02-14 18:03:14 +01:00
Ludwig Ortmann
523129c1d6 add system calls to the shell 2014-02-14 17:17:25 +01:00
René Kijewski
102dc45382 Eliminate findstring in more places 2014-02-14 14:30:16 +01:00
Thomas Eichinger
17b624e0a4 Merge pull request #681 from OlegHahm/at86rf231_fixes
at86rf231: fix includes and shell commands
2014-02-12 09:46:13 +01:00
Ludwig Ortmann
2525920426 remove trailing whitespace and newlines 2014-02-11 18:45:06 +01:00
Oleg Hahm
f379eefbd8 fix includes and shell commands for at86rf231 2014-02-11 17:15:03 +01:00
Oleg Hahm
30b6c16512 include cc110x.h instead of deprecated interface.h 2014-02-11 13:36:40 +01:00
Christian Mehlis
33239487bf shell: remove useless copying of input string 2014-02-10 15:41:04 +01:00
Ludwig Ortmann
062a5b93f4 replace shell commands for different transceivers with one transceiver command 2014-02-07 18:56:04 +01:00
Oleg Hahm
70747d8bb4 streamlined driver include pathes 2014-02-05 18:56:47 +01:00
Christian Mehlis
439b0d2ba5 added LGPL header and doxygen headers 2014-02-03 23:21:41 +01:00
Christian Mehlis
d0680e7bac shell: added a handler for mersenne twister 2014-01-30 11:52:29 +01:00
René Kijewski
891245cf60 Allow Mac linebreaks in shell
QEMU uses Mac style newlines in its UART implementation.
This change allows Unix ("\n"), DOS ("\r\n") and Mac ("\r") style
linebreaks.
2014-01-27 19:25:03 +01:00
Oleg Hahm
775c0dee5c added missing mute prefixes in nativenet and shell 2014-01-05 16:11:08 +01:00
Oleg Hahm
9df07f9238 muting compiler and binutils optionally
Instead of muting all compiler and other binutils output by default,
introduce a variable to make this behaviour configurable.
2014-01-05 16:11:08 +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
e6b354db5d mute build tools (to be consistent with the rest of the build system) 2014-01-05 16:11:07 +01:00
Ludwig Ortmann
c1c6287ef7 fix nativenet shell comamnd printf 2013-12-21 16:58:51 +01:00
Martin Lenders
68f7b9090e Make shell buffer size a shell property 2013-12-20 11:10:50 +01:00
Oleg Hahm
903ec54a43 making include directives consistent 2013-12-19 15:31:37 +01:00
Oleg Hahm
3f983db20a make compilation of sc_heap module dependent 2013-12-13 18:49:19 +01:00
LudwigOrtmann
1442170d41 Merge pull request #300 from kaspar030/shell_refactor
shell: refactor default shell command handling
2013-12-03 04:44:59 -08:00
6634c56830 shell: fix compile warning and add some comments 2013-12-02 17:36:58 +01:00
Ludwig Ortmann
d6c213fb47 fix grammar in license header 2013-11-23 13:11:56 +01:00
Christian Mehlis
84e73ae324 clean up shell 2013-11-14 10:45:24 +01:00
Christian Mehlis
bb85cb33d9 shell: dont't use malloc on each line 2013-11-14 10:45:24 +01:00
Martin Lenders
d47907ed1a Refactor net module to one include directory 2013-11-06 13:04:23 +01:00
3be2a3227a shell: refactor default shell command handling
before, we actually duplicated code for handling of shell commands
supplied to shell_init and those hardcoded by MODULE_SHELL_COMMANDS.

This patch refactors shell.c find_handler and print_help so there's
no duplicated code.
2013-11-04 17:06:50 +01:00
Oleg Hahm
94454f455d use Makefile.base for shell_commands 2013-10-29 10:48:24 +01:00
Oleg Hahm
9ac5a26600 include sc_heap only when building for LPC boards 2013-09-19 13:47:23 +02:00
zkasmi
ceedb9b496 Converting tabs to spaces. 2013-09-18 16:38:14 +02:00
zkasmi
4a614b8a35 add the heap command to the shell command list + coding conventions. 2013-09-18 16:38:14 +02:00
Christian Mehlis
16dbafe319 Merge pull request #182 from LudwigOrtmann/make_clang_happy
Fix some clang warnings in native
2013-08-31 00:25:35 -07:00
Ludwig Ortmann
a714597482 fix spelling & warning of _heap_handler parameter 2013-08-30 17:14:56 +02:00
Ludwig Ortmann
c2fcbb787e Fix some clang warnings in native
also cleans up a bit
2013-08-30 17:03:34 +02:00
Ludwig Ortmann
37c3059e1c clean up nativenet, add src addr 2013-08-29 16:16:46 +02:00
Zakaria Kasmi
c52a24625f reverted license change from 0634f21542 2013-08-26 11:30:36 +02:00
Zakaria_Kasmi
3ea68ecfc1 add a handler for the heap state 2013-08-26 11:30:17 +02:00
Ludwig Ortmann
708ece68cc cc1100 -> nativenet 2013-08-15 14:05:26 +02:00
Oleg Hahm
88d2357295 fix warnings from #62 2013-08-08 18:34:51 +02:00
Oliver Hahm
57cc002c67 Merge branch 'wsn430'
Conflicts:
	core/include/queue.h
	core/queue.c
	cpu/msp430-common/hwtimer_cpu.c
	cpu/msp430x16x/hwtimer_msp430.c
	sys/lib/hashtable.c
	sys/net/ieee802154/ieee802154_frame.c
	sys/shell/commands/sc_cc110x_ng.c
	sys/transceiver/transceiver.c
	sys/vtimer/vtimer.c
2013-06-25 15:33:40 +02:00
Oliver Hahm
c8bee9e554 fixed coding style (space after most keywords) 2013-06-24 22:37:35 +02:00
Oliver Hahm
5c52e1ce2e coding conventions for most of system libraries 2013-06-22 05:11:53 +02:00
Rene Kijewski
0212ab36a7 Use inttypes.h in sc_cc110x_ng.c 2013-06-18 17:46:18 +02:00
Oliver Hahm
fdd1d21e8d Merge branch 'master' into wsn430 2013-06-14 19:41:23 +02:00
Christian Mehlis
57e70a659c Remove undefined variables from Makefiles
The following variables are included in various Makefiles but never
defined.

    $(BOARDINCLUDE)
    $(PROJECTINCLUDE)
    $(CPUINCLUDE)
2013-06-13 21:41:24 +02:00
Milan Babel
db1fc96ffe added driver for cc2420
also added cc2420 to transceiver and added cc2420 shell commands
2013-06-06 08:35:17 +02:00
Milan Babel
edb34b73c0 fixes for the wsn430
fixed vtimer for the msp430
added spi module for the wsn430 v1.3b
changed some variables to uintXX_t, fixes overflow on msp430
2013-06-06 08:35:17 +02:00
Ludwig Ortmann
dfeae74661 lose > before output, prompt when ready for input 2013-03-18 15:37:32 +01:00
Oliver Hahm
0d06e1bc18 Merge branch 'master' of github.com:RIOT-OS/RIOT 2013-03-10 16:46:46 +01:00
Oliver Hahm
7a4dec1830 * replaced new Makefile name in Makefiles 2013-03-09 23:47:21 +01:00
Oliver Hahm
5ffe5a9c27 * renamed makefiles to Makefile 2013-03-09 23:45:56 +01:00