-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #255 from xkevin190/rpl_modifications
firmware: rpl fixed routing
- Loading branch information
Showing
5 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
menu "example configuration" | ||
|
||
rsource "../../firmware/sys/Kconfig" | ||
rsource "../../firmware/network/Kconfig" | ||
|
||
menu "Interface" | ||
#comment "Interface wifi and Radio" | ||
config WIFI_SUBSYSTEM | ||
bool "Wifi-Subsytem Interface" | ||
default y | ||
|
||
config IEEE_802154 | ||
bool "Radio Interface" | ||
default n | ||
endmenu #interface | ||
endmenu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
APPLICATION = mesh4all-rpl | ||
BOARD ?= m4a-24g | ||
|
||
# Current path | ||
APPBASE ?= $(CURDIR) | ||
|
||
# RIOT-OS's base path | ||
RIOTBASE ?= $(CURDIR)/../../RIOT | ||
|
||
# Custom boards "MUST BE" into "boards" folder, it's code **strongly** hardware dependent | ||
EXTERNAL_BOARD_DIRS ?= $(CURDIR)/../../boards | ||
|
||
# If We need custom actions, routines, etc **SHOULD BE** included in the "core" folder | ||
# and "MUST BE" code hardware independent | ||
# EXTERNAL_MODULE_DIRS += $(CURDIR)/../core | ||
|
||
DEVHELP ?= 1 | ||
QUIET ?= 1 | ||
|
||
# Modules | ||
USEMODULE += saul_default | ||
USEMODULE += shell | ||
USEMODULE += shell_commands | ||
USEMODULE += ps | ||
|
||
# Custom modules | ||
# Note: this code is hardware independent but "COULD BE" configurable for a | ||
# target board | ||
|
||
USEMODULE += rpl_protocol | ||
USEMODULE += radio | ||
USEMODULE += gnrc_icmpv6_echo | ||
USEMODULE += at_client | ||
|
||
EXTERNAL_MODULE_DIRS += $(CURDIR)/../../firmware/peripherals | ||
EXTERNAL_MODULE_DIRS += $(CURDIR)/../../firmware/network | ||
EXTERNAL_MODULE_DIRS += $(CURDIR)/../../firmware/sys | ||
|
||
# Use UART_DEV(1) for slipdev as a default, baudrate by default is 115200 | ||
|
||
|
||
include $(RIOTBASE)/Makefile.include |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (c) 2022 Mesh4all <mesh4all.org> | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/** | ||
* @brief Main firmware file | ||
* | ||
* @author xkevin190 <kevinvelasco193@gmail.com> | ||
* | ||
*/ | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
#include <string.h> | ||
|
||
#include "shell.h" | ||
#include "shell_commands.h" | ||
#include "log.h" | ||
|
||
#include "rpl_protocol.h" | ||
|
||
#define MAIN_QUEUE_SIZE (8) | ||
|
||
msg_t _main_msg_queue[MAIN_QUEUE_SIZE]; | ||
shell_command_t shell_extended_commands[] = {{NULL, NULL, NULL}}; | ||
|
||
int main(void) { | ||
LOG_INFO("~~ Welcome to rpl exam ~~\n"); | ||
/* Start shell */ | ||
char line_buf[SHELL_DEFAULT_BUFSIZE]; | ||
msg_init_queue(_main_msg_queue, MAIN_QUEUE_SIZE); | ||
|
||
rpl_setup(); | ||
|
||
shell_run(shell_extended_commands, line_buf, SHELL_DEFAULT_BUFSIZE); | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters