[Tinyos-beta-commits] CVS: tinyos-1.x/beta/platform/imote2 pmic.h,
1.1, 1.2
Robbie Adler
radler at users.sourceforge.net
Mon Sep 19 14:06:28 PDT 2005
Update of /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23510
Modified Files:
pmic.h
Log Message:
added some additional PMIC register defs. Slowly filling in the entire register space...
Index: pmic.h
===================================================================
RCS file: /cvsroot/tinyos/tinyos-1.x/beta/platform/imote2/pmic.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** pmic.h 22 Jun 2005 18:34:56 -0000 1.1
--- pmic.h 19 Sep 2005 21:06:26 -0000 1.2
***************
*** 61,65 ****
/*
*
! * Authors: Lama Nachman
*
* This file includes the PMIC command defintions. We are using the Dialog
--- 61,65 ----
/*
*
! * Authors: Lama Nachman, Robbie Adler
*
* This file includes the PMIC command defintions. We are using the Dialog
***************
*** 104,107 ****
--- 104,133 ----
#define PMIC_BRC2_SIMCP_EN 0x40 // off
+ #define PMIC_CID (0x00)
+ #define PMIC_EVENTA (0x01)
+ #define PMIC_EVENTB (0x02)
+ #define PMIC_EVENTC (0x03)
+ #define PMIC_STATUS (0x04)
+ #define PMIC_IRQ_MASK_A (0x05)
+ #define PMIC_IRQ_MASK_B (0x06)
+ #define PMIC_IRQ_MASK_C (0x07)
+ #define PMIC_SYS_CONTROL_A (0x08)
+ #define PMIC_SYS_CONTROL_C (0x80)
+
+ #define PMIC_CHARGE_CONTROL (0x28)
+ #define PMIC_CC_CHARGE_ENABLE (1<<7)
+ #define PMIC_CC_ISET(_x) (((_x) & 0xF) << 3)
+ #define PMIC_CC_VSET(_x) (((_x) & 0x7))
+
+ #define PMIC_TCTR_CONTROL (0x2A)
+
+ #define PMIC_ADC_MAN_CONTROL (0x30)
+ #define PMIC_AMC_ADCMUX(_x) ((_x & 0x7))
+ #define PMIC_AMC_MAN_CONV (1<<3)
+ #define PMIC_AMC_LDO_INT_Enable (1<<4)
+
+ #define PMIC_MAN_RES (0x40)
+ #define PMIC_LED1_CONTROL (0x20)
+
#define PMIC_H_REG_CONTROL_1 0x97
#define PMIC_HRC1_BUCK_EN 0x1 // off
More information about the Tinyos-beta-commits
mailing list