mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-08-14 05:25:05 +00:00
use check_maca in rftests
This commit is contained in:
1529
doc/rf4ce-macphy.dis
1529
doc/rf4ce-macphy.dis
File diff suppressed because it is too large
Load Diff
@@ -41,6 +41,11 @@ void main(void) {
|
|||||||
|
|
||||||
print_welcome("rftest-rx");
|
print_welcome("rftest-rx");
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
|
/* call check_maca() periodically --- this works around */
|
||||||
|
/* a few lockup conditions */
|
||||||
|
check_maca();
|
||||||
|
|
||||||
if((p = rx_packet())) {
|
if((p = rx_packet())) {
|
||||||
/* print and free the packet */
|
/* print and free the packet */
|
||||||
printf("rftest-rx --- ");
|
printf("rftest-rx --- ");
|
||||||
|
@@ -54,6 +54,10 @@ void main(void) {
|
|||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
|
/* call check_maca() periodically --- this works around */
|
||||||
|
/* a few lockup conditions */
|
||||||
|
check_maca();
|
||||||
|
|
||||||
p = get_free_packet();
|
p = get_free_packet();
|
||||||
if(p) {
|
if(p) {
|
||||||
fill_packet(p);
|
fill_packet(p);
|
||||||
|
Reference in New Issue
Block a user