From 0dc344a0ec24dc918411c85a7d477635395a7850 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Mon, 17 Jan 2011 11:33:27 -0300 Subject: [PATCH] removed atben/tools/ (functionality has moved to atrf-id long ago) --- atben/tools/Makefile | 7 ------- atben/tools/try.c | 29 ----------------------------- 2 files changed, 36 deletions(-) delete mode 100644 atben/tools/Makefile delete mode 100644 atben/tools/try.c diff --git a/atben/tools/Makefile b/atben/tools/Makefile deleted file mode 100644 index 77925e4..0000000 --- a/atben/tools/Makefile +++ /dev/null @@ -1,7 +0,0 @@ -CC=mipsel-openwrt-linux-gcc -CFLAGS=-Wall -I../../atrf/fw/include - -MAIN = try -OBJS = $(MAIN).c lib/atusd.o - -$(MAIN): $(OBJS) diff --git a/atben/tools/try.c b/atben/tools/try.c deleted file mode 100644 index c753130..0000000 --- a/atben/tools/try.c +++ /dev/null @@ -1,29 +0,0 @@ -#include -#include -#include - -#include "at86rf230.h" -#include "lib/atusd.h" - - -int main(void) -{ - struct atusd_dsc *dsc; - uint8_t part, version, man_id_0, man_id_1; - - dsc = atusd_open(); - - atusd_cycle(dsc); -// atusd_reset(dsc); - - part = atusd_reg_read(dsc, REG_PART_NUM); - version = atusd_reg_read(dsc, REG_VERSION_NUM); - man_id_0 = atusd_reg_read(dsc, REG_MAN_ID_0); - man_id_1 = atusd_reg_read(dsc, REG_MAN_ID_1); - printf("part 0x%02x version %u manufacturer xxxx%02x%02x\n", - part, version, man_id_1, man_id_0); - - atusd_close(dsc); - - return 0; -}