mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-23 16:29:34 +00:00
4b17c144d0
consistent with how everything else works
23 lines
452 B
C
23 lines
452 B
C
#ifndef TESTS_H
|
|
#define TESTS_H
|
|
|
|
#include "put.h"
|
|
#include "led.h"
|
|
|
|
#define NL "\033[K\r\n"
|
|
|
|
void uart1_init(uint16_t inc, uint16_t mod);
|
|
void print_welcome(char* testname);
|
|
void dump_regs(uint32_t base, uint32_t len);
|
|
void print_packet(volatile packet_t *p);
|
|
|
|
#define toggle_gpio0(x) do { \
|
|
if(bit_is_set(*GPIO_DATA0,x)) { \
|
|
*GPIO_DATA_RESET0 = (1 << x); \
|
|
} else { \
|
|
*GPIO_DATA_SET0 = (1 << x) ; \
|
|
} \
|
|
} while(0);
|
|
|
|
#endif
|