Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Jake Read
atkrouter
Commits
38aa54ba
Commit
38aa54ba
authored
Mar 16, 2018
by
Jake Read
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
port handling works on multiple hops, returns
parent
9b8a8aae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
embedded/mkrouter-v04/.vs/mkrouter-v04/v14/.atsuo
embedded/mkrouter-v04/.vs/mkrouter-v04/v14/.atsuo
+0
-0
embedded/mkrouter-v04/mkrouter-v04/src/apahandler.c
embedded/mkrouter-v04/mkrouter-v04/src/apahandler.c
+1
-4
embedded/mkrouter-v04/mkrouter-v04/src/uartport.c
embedded/mkrouter-v04/mkrouter-v04/src/uartport.c
+3
-0
No files found.
embedded/mkrouter-v04/.vs/mkrouter-v04/v14/.atsuo
View file @
38aa54ba
No preview for this file type
embedded/mkrouter-v04/mkrouter-v04/src/apahandler.c
View file @
38aa54ba
...
...
@@ -55,7 +55,4 @@ void apa_return_packet(uint8_t *packet, uint8_t length){
}
uart_sendchars_buffered
(
ups
[
ackpack
[
1
]],
ackpack
,
length
);
}
}
// NOW: test this
// then, also: can we avoid packing ups into apaports, use hardware.h instead?
}
\ No newline at end of file
embedded/mkrouter-v04/mkrouter-v04/src/uartport.c
View file @
38aa54ba
...
...
@@ -6,6 +6,7 @@
*/
#include "uartport.h"
#include "hardware.h"
void
uart_build
(
uartport_t
*
uart
,
Uart
*
com
,
Pio
*
port
,
uint32_t
pinrx
,
uint32_t
pintx
,
ringbuffer_t
*
rbrx
,
ringbuffer_t
*
rbtx
,
pin_t
*
stlr
,
pin_t
*
stlb
){
uart
->
com
=
com
;
...
...
@@ -82,7 +83,9 @@ void uart_handler(uartport_t *uart){
void
uart_rxhandler
(
uartport_t
*
uart
){
pin_clear
(
uart
->
stlr
);
// set with whatever reads it (apa)
//uint8_t data = uart->com->UART_RHR;
rb_putchar
(
uart
->
rbrx
,
uart
->
com
->
UART_RHR
);
//uart_sendchar_buffered(ups[0], data);
}
void
uart_txhandler
(
uartport_t
*
uart
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment