osd-contiki/tests/tests.h

22 lines
407 B
C
Raw Normal View History

#ifndef TESTS_H
#define TESTS_H
#include "put.h"
2010-02-26 21:35:57 +01:00
#include "led.h"
2010-02-26 23:44:39 +01:00
#define NL "\033[K\r\n"
void print_welcome(char* testname);
2010-02-26 23:44:39 +01:00
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