Skip to content
Snippets Groups Projects
Commit 61a5b239 authored by Jake Read's avatar Jake Read
Browse files

prior to packet refactor

parent e26a9c56
No related branches found
No related tags found
No related merge requests found
......@@ -91,7 +91,7 @@ In addition to proving our merit with a careful literature review, we can devise
# Key Contributions
A strategy for stateless multipath routing that increases message deliver time determinism and network robustness.
A strategy for stateless multipath routing that increases message delivery time determinism and network robustness.
A real-time cost function, using next-hop buffer size (i.e. busyness metric) as well as historical hop-count for per-packet dynamic re-routing, that increases packet delivery-time determinism.
......
......@@ -362,6 +362,7 @@
<Value>../src/ASF/common/services/delay</Value>
</ListValues>
</armgcc.compiler.directories.IncludePaths>
<armgcc.compiler.optimization.level>Optimize more (-O2)</armgcc.compiler.optimization.level>
<armgcc.compiler.optimization.OtherFlags>-fdata-sections</armgcc.compiler.optimization.OtherFlags>
<armgcc.compiler.optimization.PrepareFunctionsForGarbageCollection>True</armgcc.compiler.optimization.PrepareFunctionsForGarbageCollection>
<armgcc.compiler.optimization.DebugLevel>Maximum (-g3)</armgcc.compiler.optimization.DebugLevel>
......
......@@ -2,7 +2,7 @@
#define NODE_H_
#define MAX_HOPCOUNT 6
#define MYADDRESS 3
#define MYADDRESS 2
uint8_t LUT[1024][4];
uint8_t myAddress;
......
......@@ -66,8 +66,8 @@ int tp_putdata(tinyport_t *tp, uint8_t *data, uint8_t size){
void tp_rxhandler(tinyport_t *tp){
uint8_t data = tp->uart->UART_RHR;
rb_putchar(tp->rbrx, data);
pin_clear(tp->stlb);
pin_set(&tstrx);
//pin_clear(tp->stlb);
//pin_set(&tstrx);
}
void tp_packetparser(tinyport_t *tp){
......@@ -123,14 +123,9 @@ void tp_packetparser(tinyport_t *tp){
void tp_txhandler(tinyport_t *tp){
if(!rb_empty(tp->rbtx)){
tp->uart->UART_THR = rb_get(tp->rbtx);
pin_clear(tp->stlg);
pin_set(&tsttx);
} else {
tp->uart->UART_IDR = UART_IER_TXRDY; // if nothing left to tx, turn isr off
pin_set(tp->stlg);
pin_clear(&tsttx); // tricky, adding these increases transfer time...
}
//while(!(tp->uart->UART_SR & UART_SR_TXRDY)); // blocking
}
void tp_testlights(tinyport_t *tp){
......
......@@ -48,7 +48,7 @@
// packet delimiters
#define TP_DELIMITER_START 255
#define UART_BAUD_DIVIDER 6 // 977: 9600 baud, 81: 115200, 10: 921600: newclock: 63: 115200
#define UART_BAUD_DIVIDER 3 // 977: 9600 baud, 81: 115200, 10: 921600, 3: 3.125 MB, 2: 4.687 MB, 1: 9.337 MB
#define RINGBUFFER_SIZE 1024 // in bytes, or 4 full length packets, have 384KBytes total in system
#include "asf.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment