Power and Interrupt Controller Definitions
Detailed Description
Thunderboard Sense 1 Power and Interrupt Controller register and bitfield definitions.
Macro Definition Documentation
#define BOARD_PIC_NUM_APP_REGS 9 |
Number of application registers
Definition at line
61
of file
board_pic_regs.h
.
Referenced by BOARD_init() .
#define BOARD_PIC_NUM_SYS_REGS 13 |
Number of system registers
Definition at line
82
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_BOARD_REV 0xFC |
Board revision ID register
Definition at line
79
of file
board_pic_regs.h
.
Referenced by BOARD_picGetHwRevision() .
#define BOARD_PIC_REG_CCS_CTRL 0x03 |
CCS811 control register
Definition at line
54
of file
board_pic_regs.h
.
Referenced by BOARD_gasSensorEnable() , and BOARD_gasSensorWake() .
#define BOARD_PIC_REG_CCS_CTRL_EN 0x01 |
CCS811 control register, Enable bit
Definition at line
94
of file
board_pic_regs.h
.
Referenced by BOARD_gasSensorEnable() , and BOARD_gasSensorWake() .
#define BOARD_PIC_REG_CCS_CTRL_WAKE 0x02 |
CCS811 control register, Wake-up bit
Definition at line
95
of file
board_pic_regs.h
.
Referenced by BOARD_gasSensorWake() .
#define BOARD_PIC_REG_DEVICE_ID0 0xF8 |
Device ID register, byte 0
Definition at line
74
of file
board_pic_regs.h
.
Referenced by BOARD_picGetDeviceId() .
#define BOARD_PIC_REG_DEVICE_ID1 0xF9 |
Device ID register, byte 1
Definition at line
75
of file
board_pic_regs.h
.
Referenced by BOARD_picGetDeviceId() .
#define BOARD_PIC_REG_DEVICE_ID2 0xFA |
Device ID register, byte 2
Definition at line
76
of file
board_pic_regs.h
.
Referenced by BOARD_picGetDeviceId() .
#define BOARD_PIC_REG_DEVICE_ID3 0xFB |
Device ID register, byte 3
Definition at line
77
of file
board_pic_regs.h
.
Referenced by BOARD_picGetDeviceId() .
#define BOARD_PIC_REG_ENV_SENSOR_CTRL 0x01 |
Environmental sensor group control register
Definition at line
52
of file
board_pic_regs.h
.
Referenced by BOARD_envSensEnable() .
#define BOARD_PIC_REG_ENV_SENSOR_CTRL_EN 0x01 |
Environmental sensor group control register, Enable bit
Definition at line
88
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_IMU_CTRL 0x00 |
IMU control register
Definition at line
51
of file
board_pic_regs.h
.
Referenced by BOARD_imuEnable() .
#define BOARD_PIC_REG_IMU_CTRL_EN 0x01 |
IMU control register, Enable bit
Definition at line
85
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_CLEAR 0x06 |
Interrupt clear register
Definition at line
57
of file
board_pic_regs.h
.
Referenced by BOARD_picIntClear() .
#define BOARD_PIC_REG_INT_CLEAR_CCS811 0x01 |
Interrupt clear register, CSS811 INT clear bit
Definition at line
117
of file
board_pic_regs.h
.
Referenced by BOARD_gasSensorClearIRQ() .
#define BOARD_PIC_REG_INT_CLEAR_IMU 0x02 |
Interrupt clear register, IMU INT clear bit
Definition at line
118
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_CLEAR_UV_ALS 0x04 |
Interrupt clear register, UV/ALS INT clear bit
Definition at line
119
of file
board_pic_regs.h
.
Referenced by BOARD_alsClearIRQ() .
#define BOARD_PIC_REG_INT_CTRL 0x08 |
Interrupt options register
Definition at line
59
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_CTRL_LEGACY_MODE 0x20 |
Interrupt control register, legacy level interrupts
Definition at line
125
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_CTRL_TIMER_ENABLE 0x10 |
Interrupt control register, Periodic timer enable
Definition at line
124
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_CTRL_TIMER_MASK 0x0F |
Interrupt control register, TIMER period mask
Definition at line
122
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_CTRL_TIMER_SHIFT 0 |
Interrupt control register, TIMER period shift
Definition at line
123
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_ENABLE 0x05 |
Interrupt enable register
Definition at line
56
of file
board_pic_regs.h
.
Referenced by BOARD_alsEnableIRQ() , BOARD_envSensEnableIRQ() , BOARD_gasSensorEnableIRQ() , and BOARD_imuEnableIRQ() .
#define BOARD_PIC_REG_INT_ENABLE_CCS811 0x01 |
Interrupt enable register, CSS811 INT enable bit
Definition at line
107
of file
board_pic_regs.h
.
Referenced by BOARD_gasSensorEnableIRQ() .
#define BOARD_PIC_REG_INT_ENABLE_IMU 0x02 |
Interrupt enable register, IMU INT enable bit
Definition at line
108
of file
board_pic_regs.h
.
Referenced by BOARD_imuEnableIRQ() .
#define BOARD_PIC_REG_INT_ENABLE_UV_ALS 0x04 |
Interrupt enable register, UV/ALS INT enable bit
Definition at line
109
of file
board_pic_regs.h
.
Referenced by BOARD_alsEnableIRQ() , and BOARD_envSensEnableIRQ() .
#define BOARD_PIC_REG_INT_FLAG 0x07 |
Interrupt flag register
Definition at line
58
of file
board_pic_regs.h
.
Referenced by BOARD_picIntGet() .
#define BOARD_PIC_REG_INT_FLAG_CCS811 0x01 |
Interrupt flag register, CSS811 INT flag bit
Definition at line
112
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_FLAG_IMU 0x02 |
Interrupt flag register, IMU INT flag bit
Definition at line
113
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_INT_FLAG_UV_ALS 0x04 |
Interrupt flag register, UV/ALS INT flag bit
Definition at line
114
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_LED_CTRL 0x04 |
LED control register
Definition at line
55
of file
board_pic_regs.h
.
Referenced by BOARD_rgbledEnable() , and BOARD_rgbledPowerEnable() .
#define BOARD_PIC_REG_LED_CTRL_LED0 0x10 |
LED control register, LED0 control bit
Definition at line
99
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_LED_CTRL_LED1 0x20 |
LED control register, LED1 control bit
Definition at line
100
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_LED_CTRL_LED2 0x40 |
LED control register, LED2 control bit
Definition at line
101
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_LED_CTRL_LED3 0x80 |
LED control register, LED3 control bit
Definition at line
102
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_LED_CTRL_LED_MASK 0xf0 |
LED control register, LED control mask
Definition at line
103
of file
board_pic_regs.h
.
Referenced by BOARD_rgbledEnable() .
#define BOARD_PIC_REG_LED_CTRL_LED_SHIFT 4 |
LED control register, LED control shift value
Definition at line
104
of file
board_pic_regs.h
.
Referenced by BOARD_rgbledEnable() .
#define BOARD_PIC_REG_LED_CTRL_PWR_EN 0x01 |
LED control register, Power enable bit
Definition at line
98
of file
board_pic_regs.h
.
Referenced by BOARD_rgbledPowerEnable() .
#define BOARD_PIC_REG_MIC_CTRL 0x02 |
Microphone control register
Definition at line
53
of file
board_pic_regs.h
.
Referenced by BOARD_micEnable() .
#define BOARD_PIC_REG_MIC_CTRL_EN 0x01 |
Microphone control register, Enable bit
Definition at line
91
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_SCRATCH0 0xF4 |
Scratchpad0 register
Definition at line
69
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_SCRATCH1 0xF5 |
Scratchpad1 register
Definition at line
70
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_SCRATCH2 0xF6 |
Scratchpad2 register
Definition at line
71
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_SCRATCH3 0xF7 |
Scratchpad3 register
Definition at line
72
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_SYS_CMD 0xF0 |
System command register
Definition at line
64
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_SYS_CMD_BOOTMODE 0xA5 |
System command register, Bootmode command
Definition at line
127
of file
board_pic_regs.h
.
#define BOARD_PIC_REG_VERSION_MAJOR 0xF1 |
Major version register
Definition at line
65
of file
board_pic_regs.h
.
Referenced by BOARD_picGetFwRevision() .
#define BOARD_PIC_REG_VERSION_MINOR 0xF2 |
Minor version register
Definition at line
66
of file
board_pic_regs.h
.
Referenced by BOARD_picGetFwRevision() .
#define BOARD_PIC_REG_VERSION_PATCH 0xF3 |
Patch version register
Definition at line
67
of file
board_pic_regs.h
.
Referenced by BOARD_picGetFwRevision() .
#define BOARD_PIC_SYS_REG_START 0xF0 |
Start address of system register
Definition at line
81
of file
board_pic_regs.h
.