From 0a51c610d44a77c14ddfb11757ffbd81ab03c117 Mon Sep 17 00:00:00 2001 From: Mariano Alvira Date: Mon, 1 Mar 2010 13:04:53 -0500 Subject: [PATCH] econotag and usb boards --- board/redbee-econotag.h | 22 ++++++++++++++++++++++ board/redbee-usb.h | 21 +++++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 board/redbee-econotag.h create mode 100644 board/redbee-usb.h diff --git a/board/redbee-econotag.h b/board/redbee-econotag.h new file mode 100644 index 000000000..75ac46855 --- /dev/null +++ b/board/redbee-econotag.h @@ -0,0 +1,22 @@ +#ifndef BOARD_REDBEE_DEV_H +#define BOARD_REDBEE_DEV_H + +#define LED_RED (1 << 23) +#define LED_GREEN (1 << 24) +#define LED_BLUE (1 << 25) + +/* XTAL TUNE parameters */ +/* see http://devl.org/pipermail/mc1322x/2009-December/000162.html */ +/* for details about how to make this measurment */ + +/* Econotag also needs an addtional 12pf on board */ +/* Coarse tune: add 4pf */ +#define CTUNE_4PF 1 +/* Coarse tune: add 0-15 pf (CTUNE is 4 bits) */ +#define CTUNE 11 +/* Fine tune: add FTUNE * 156fF (FTUNE is 5bits) */ +#define FTUNE 3 + +#include + +#endif diff --git a/board/redbee-usb.h b/board/redbee-usb.h new file mode 100644 index 000000000..c9d786a8b --- /dev/null +++ b/board/redbee-usb.h @@ -0,0 +1,21 @@ +#ifndef BOARD_REDBEE_DEV_H +#define BOARD_REDBEE_DEV_H + +#define LED_RED (1 << 23) +#define LED_GREEN (1 << 24) +#define LED_BLUE (1 << 25) + +/* XTAL TUNE parameters */ +/* see http://devl.org/pipermail/mc1322x/2009-December/000162.html */ +/* for details about how to make this measurment */ + +/* Coarse tune: add 4pf */ +#define CTUNE_4PF 1 +/* Coarse tune: add 0-15 pf */ +#define CTUNE 3 +/* Fine tune: add FTUNE * 156fF (FTUNE is 4bits) */ +#define FTUNE 15 + +#include + +#endif