|
| 1 | +// Copyright 2016-2018 Espressif Systems (Shanghai) PTE LTD |
| 2 | +// |
| 3 | +// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | +// you may not use this file except in compliance with the License. |
| 5 | +// You may obtain a copy of the License at |
| 6 | +// |
| 7 | +// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | +// |
| 9 | +// Unless required by applicable law or agreed to in writing, software |
| 10 | +// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | +// See the License for the specific language governing permissions and |
| 13 | +// limitations under the License. |
| 14 | + |
| 15 | +#pragma once |
| 16 | + |
| 17 | +#include "soc.h" |
| 18 | + |
| 19 | +/** |
| 20 | + * This file lists peripheral registers of an I2C controller which is part of the RTC. |
| 21 | + * ULP coprocessor uses this controller to implement I2C_RD and I2C_WR instructions. |
| 22 | + * |
| 23 | + * Part of the functionality of this controller (such as slave mode, and multi-byte |
| 24 | + * transfers) is not wired to the ULP, and is such, is not available to the |
| 25 | + * ULP programs. |
| 26 | + */ |
| 27 | + |
| 28 | +#define RTC_I2C_SCL_LOW_PERIOD_REG (DR_REG_RTC_I2C_BASE + 0x000) |
| 29 | +/* RTC_I2C_SCL_LOW_PERIOD : R/W ;bitpos:[18:0] ;default: 19'b0 ; */ |
| 30 | +/*description: number of cycles that scl == 0 */ |
| 31 | +#define RTC_I2C_SCL_LOW_PERIOD 0x1FFFFFF |
| 32 | +#define RTC_I2C_SCL_LOW_PERIOD_M ((RTC_I2C_SCL_LOW_PERIOD_V)<<(RTC_I2C_SCL_LOW_PERIOD_S)) |
| 33 | +#define RTC_I2C_SCL_LOW_PERIOD_V 0x1FFFFFF |
| 34 | +#define RTC_I2C_SCL_LOW_PERIOD_S 0 |
| 35 | + |
| 36 | +#define RTC_I2C_CTRL_REG (DR_REG_RTC_I2C_BASE + 0x004) |
| 37 | +/* RTC_I2C_RX_LSB_FIRST : R/W ;bitpos:[7] ;default: 1'b0 ; */ |
| 38 | +/*description: Send LSB first */ |
| 39 | +#define RTC_I2C_RX_LSB_FIRST BIT(7) |
| 40 | +#define RTC_I2C_RX_LSB_FIRST_M BIT(7) |
| 41 | +#define RTC_I2C_RX_LSB_FIRST_V (1) |
| 42 | +#define RTC_I2C_RX_LSB_FIRST_S (7) |
| 43 | +/* RTC_I2C_TX_LSB_FIRST : R/W ;bitpos:[6] ;default: 1'b0 ; */ |
| 44 | +/*description: Receive LSB first */ |
| 45 | +#define RTC_I2C_TX_LSB_FIRST BIT(6) |
| 46 | +#define RTC_I2C_TX_LSB_FIRST_M BIT(6) |
| 47 | +#define RTC_I2C_TX_LSB_FIRST_V (1) |
| 48 | +#define RTC_I2C_TX_LSB_FIRST_S (6) |
| 49 | +/* RTC_I2C_TRANS_START : R/W ;bitpos:[5] ;default: 1'b0 ; */ |
| 50 | +/*description: Force to generate start condition */ |
| 51 | +#define RTC_I2C_TRANS_START BIT(5) |
| 52 | +#define RTC_I2C_TRANS_START_M BIT(5) |
| 53 | +#define RTC_I2C_TRANS_START_V (1) |
| 54 | +#define RTC_I2C_TRANS_START_S (5) |
| 55 | +/* RTC_I2C_MS_MODE : R/W ;bitpos:[4] ;default: 1'b0 ; */ |
| 56 | +/*description: Master (1) or slave (0) */ |
| 57 | +#define RTC_I2C_MS_MODE BIT(4) |
| 58 | +#define RTC_I2C_MS_MODE_M BIT(4) |
| 59 | +#define RTC_I2C_MS_MODE_V (1) |
| 60 | +#define RTC_I2C_MS_MODE_S (4) |
| 61 | +/* RTC_I2C_SCL_FORCE_OUT : R/W ;bitpos:[1] ;default: 1'b0 ; */ |
| 62 | +/*description: SCL is push-pull (1) or open-drain (0) */ |
| 63 | +#define RTC_I2C_SCL_FORCE_OUT BIT(1) |
| 64 | +#define RTC_I2C_SCL_FORCE_OUT_M BIT(1) |
| 65 | +#define RTC_I2C_SCL_FORCE_OUT_V (1) |
| 66 | +#define RTC_I2C_SCL_FORCE_OUT_S (1) |
| 67 | +/* RTC_I2C_SDA_FORCE_OUT : R/W ;bitpos:[0] ;default: 1'b0 ; */ |
| 68 | +/*description: SDA is push-pull (1) or open-drain (0) */ |
| 69 | +#define RTC_I2C_SDA_FORCE_OUT BIT(0) |
| 70 | +#define RTC_I2C_SDA_FORCE_OUT_M BIT(0) |
| 71 | +#define RTC_I2C_SDA_FORCE_OUT_V (1) |
| 72 | +#define RTC_I2C_SDA_FORCE_OUT_S (0) |
| 73 | + |
| 74 | +#define RTC_I2C_DEBUG_STATUS_REG (DR_REG_RTC_I2C_BASE + 0x008) |
| 75 | +/* RTC_I2C_SCL_STATE : R/W ;bitpos:[30:28] ;default: 3'b0 ; */ |
| 76 | +/*description: state of SCL state machine */ |
| 77 | +#define RTC_I2C_SCL_STATE 0x7 |
| 78 | +#define RTC_I2C_SCL_STATE_M ((RTC_I2C_SCL_STATE_V)<<(RTC_I2C_SCL_STATE_S)) |
| 79 | +#define RTC_I2C_SCL_STATE_V 0x7 |
| 80 | +#define RTC_I2C_SCL_STATE_S 28 |
| 81 | +/* RTC_I2C_MAIN_STATE : R/W ;bitpos:[27:25] ;default: 3'b0 ; */ |
| 82 | +/*description: state of the main state machine */ |
| 83 | +#define RTC_I2C_MAIN_STATE 0x7 |
| 84 | +#define RTC_I2C_MAIN_STATE_M ((RTC_I2C_MAIN_STATE_V)<<(RTC_I2C_MAIN_STATE_S)) |
| 85 | +#define RTC_I2C_MAIN_STATE_V 0x7 |
| 86 | +#define RTC_I2C_MAIN_STATE_S 25 |
| 87 | +/* RTC_I2C_BYTE_TRANS : R/W ;bitpos:[6] ;default: 1'b0 ; */ |
| 88 | +/*description: 8 bit transmit done */ |
| 89 | +#define RTC_I2C_BYTE_TRANS BIT(6) |
| 90 | +#define RTC_I2C_BYTE_TRANS_M BIT(6) |
| 91 | +#define RTC_I2C_BYTE_TRANS_V (1) |
| 92 | +#define RTC_I2C_BYTE_TRANS_S (6) |
| 93 | +/* RTC_I2C_SLAVE_ADDR_MATCH : R/W ;bitpos:[5] ;default: 1'b0 ; */ |
| 94 | +/*description: When working as a slave, whether address was matched */ |
| 95 | +#define RTC_I2C_SLAVE_ADDR_MATCH BIT(5) |
| 96 | +#define RTC_I2C_SLAVE_ADDR_MATCH_M BIT(5) |
| 97 | +#define RTC_I2C_SLAVE_ADDR_MATCH_V (1) |
| 98 | +#define RTC_I2C_SLAVE_ADDR_MATCH_S (5) |
| 99 | +/* RTC_I2C_BUS_BUSY : R/W ;bitpos:[4] ;default: 1'b0 ; */ |
| 100 | +/*description: operation is in progress */ |
| 101 | +#define RTC_I2C_BUS_BUSY BIT(4) |
| 102 | +#define RTC_I2C_BUS_BUSY_M BIT(4) |
| 103 | +#define RTC_I2C_BUS_BUSY_V (1) |
| 104 | +#define RTC_I2C_BUS_BUSY_S (4) |
| 105 | +/* RTC_I2C_ARB_LOST : R/W ;bitpos:[3] ;default: 1'b0 ; */ |
| 106 | +/*description: When working as a master, lost control of I2C bus */ |
| 107 | +#define RTC_I2C_ARB_LOST BIT(3) |
| 108 | +#define RTC_I2C_ARB_LOST_M BIT(3) |
| 109 | +#define RTC_I2C_ARB_LOST_V (1) |
| 110 | +#define RTC_I2C_ARB_LOST_S (3) |
| 111 | +/* RTC_I2C_TIMED_OUT : R/W ;bitpos:[2] ;default: 1'b0 ; */ |
| 112 | +/*description: Transfer has timed out */ |
| 113 | +#define RTC_I2C_TIMED_OUT BIT(2) |
| 114 | +#define RTC_I2C_TIMED_OUT_M BIT(2) |
| 115 | +#define RTC_I2C_TIMED_OUT_V (1) |
| 116 | +#define RTC_I2C_TIMED_OUT_S (2) |
| 117 | +/* RTC_I2C_SLAVE_RW : R/W ;bitpos:[1] ;default: 1'b0 ; */ |
| 118 | +/*description: When working as a slave, the value of R/W bit received */ |
| 119 | +#define RTC_I2C_SLAVE_RW BIT(1) |
| 120 | +#define RTC_I2C_SLAVE_RW_M BIT(1) |
| 121 | +#define RTC_I2C_SLAVE_RW_V (1) |
| 122 | +#define RTC_I2C_SLAVE_RW_S (1) |
| 123 | +/* RTC_I2C_ACK_VAL : R/W ;bitpos:[0] ;default: 1'b0 ; */ |
| 124 | +/*description: The value of an acknowledge signal on the bus */ |
| 125 | +#define RTC_I2C_ACK_VAL BIT(0) |
| 126 | +#define RTC_I2C_ACK_VAL_M BIT(0) |
| 127 | +#define RTC_I2C_ACK_VAL_V (1) |
| 128 | +#define RTC_I2C_ACK_VAL_S (0) |
| 129 | + |
| 130 | +#define RTC_I2C_TIMEOUT_REG (DR_REG_RTC_I2C_BASE + 0x00c) |
| 131 | +/* RTC_I2C_TIMEOUT : R/W ;bitpos:[19:0] ;default: 20'b0 ; */ |
| 132 | +/*description: Maximum number of FAST_CLK cycles that the transmission can take */ |
| 133 | +#define RTC_I2C_TIMEOUT 0xFFFFF |
| 134 | +#define RTC_I2C_TIMEOUT_M ((RTC_I2C_TIMEOUT_V)<<(RTC_I2C_TIMEOUT_S)) |
| 135 | +#define RTC_I2C_TIMEOUT_V 0xFFFFF |
| 136 | +#define RTC_I2C_TIMEOUT_S 0 |
| 137 | + |
| 138 | +#define RTC_I2C_SLAVE_ADDR_REG (DR_REG_RTC_I2C_BASE + 0x010) |
| 139 | +/* RTC_I2C_SLAVE_ADDR_10BIT : R/W ;bitpos:[31] ;default: 1'b0 ; */ |
| 140 | +/*description: Set if local slave address is 10-bit */ |
| 141 | +#define RTC_I2C_SLAVE_ADDR_10BIT BIT(31) |
| 142 | +#define RTC_I2C_SLAVE_ADDR_10BIT_M BIT(31) |
| 143 | +#define RTC_I2C_SLAVE_ADDR_10BIT_V (1) |
| 144 | +#define RTC_I2C_SLAVE_ADDR_10BIT_S (31) |
| 145 | +/* RTC_I2C_SLAVE_ADDR : R/W ;bitpos:[14:0] ;default: 15'b0 ; */ |
| 146 | +/*description: local slave address */ |
| 147 | +#define RTC_I2C_SLAVE_ADDR 0x7FFF |
| 148 | +#define RTC_I2C_SLAVE_ADDR_M ((RTC_I2C_SLAVE_ADDR_V)<<(RTC_I2C_SLAVE_ADDR_S)) |
| 149 | +#define RTC_I2C_SLAVE_ADDR_V 0x7FFF |
| 150 | +#define RTC_I2C_SLAVE_ADDR_S 0 |
| 151 | + |
| 152 | +/* Result of last read operation. Not used directly as the data will be |
| 153 | + * returned to the ULP. Listed for debugging purposes. |
| 154 | + */ |
| 155 | +#define RTC_I2C_DATA_REG (DR_REG_RTC_I2C_BASE + 0x01c) |
| 156 | + |
| 157 | +/* Interrupt registers; since the interrupt from RTC_I2C is not connected, |
| 158 | + * these registers are only listed for debugging purposes. |
| 159 | + */ |
| 160 | + |
| 161 | +/* Interrupt raw status register */ |
| 162 | +#define RTC_I2C_INT_RAW_REG (DR_REG_RTC_I2C_BASE + 0x020) |
| 163 | +/* RTC_I2C_TIME_OUT_INT_RAW : R/O ;bitpos:[7] ;default: 1'b0 ; */ |
| 164 | +/*description: time out interrupt raw status */ |
| 165 | +#define RTC_I2C_TIME_OUT_INT_RAW BIT(7) |
| 166 | +#define RTC_I2C_TIME_OUT_INT_RAW_M BIT(7) |
| 167 | +#define RTC_I2C_TIME_OUT_INT_RAW_V (1) |
| 168 | +#define RTC_I2C_TIME_OUT_INT_RAW_S (7) |
| 169 | +/* RTC_I2C_TRANS_COMPLETE_INT_RAW : R/W ;bitpos:[6] ;default: 1'b0 ; */ |
| 170 | +/*description: Stop condition has been detected interrupt raw status */ |
| 171 | +#define RTC_I2C_TRANS_COMPLETE_INT_RAW BIT(6) |
| 172 | +#define RTC_I2C_TRANS_COMPLETE_INT_RAW_M BIT(6) |
| 173 | +#define RTC_I2C_TRANS_COMPLETE_INT_RAW_V (1) |
| 174 | +#define RTC_I2C_TRANS_COMPLETE_INT_RAW_S (6) |
| 175 | +/* RTC_I2C_MASTER_TRANS_COMPLETE_INT_RAW : R/W ;bitpos:[5] ;default: 1'b0 ; */ |
| 176 | +/*description: */ |
| 177 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_RAW BIT(5) |
| 178 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_RAW_M BIT(5) |
| 179 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_RAW_V (1) |
| 180 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_RAW_S (5) |
| 181 | +/* RTC_I2C_ARBITRATION_LOST_INT_RAW : R/W ;bitpos:[4] ;default: 1'b0 ; */ |
| 182 | +/*description: Master lost arbitration */ |
| 183 | +#define RTC_I2C_ARBITRATION_LOST_INT_RAW BIT(4) |
| 184 | +#define RTC_I2C_ARBITRATION_LOST_INT_RAW_M BIT(4) |
| 185 | +#define RTC_I2C_ARBITRATION_LOST_INT_RAW_V (1) |
| 186 | +#define RTC_I2C_ARBITRATION_LOST_INT_RAW_S (4) |
| 187 | +/* RTC_I2C_SLAVE_TRANS_COMPLETE_INT_RAW : R/W ;bitpos:[3] ;default: 1'b0 ; */ |
| 188 | +/*description: Slave accepted 1 byte and address matched */ |
| 189 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_RAW BIT(3) |
| 190 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_RAW_M BIT(3) |
| 191 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_RAW_V (1) |
| 192 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_RAW_S (3) |
| 193 | + |
| 194 | +/* Interrupt clear register */ |
| 195 | +#define RTC_I2C_INT_CLR_REG (DR_REG_RTC_I2C_BASE + 0x024) |
| 196 | +/* RTC_I2C_TIME_OUT_INT_CLR : W/O ;bitpos:[8] ;default: 1'b0 ; */ |
| 197 | +/*description: */ |
| 198 | +#define RTC_I2C_TIME_OUT_INT_CLR BIT(8) |
| 199 | +#define RTC_I2C_TIME_OUT_INT_CLR_M BIT(8) |
| 200 | +#define RTC_I2C_TIME_OUT_INT_CLR_V (1) |
| 201 | +#define RTC_I2C_TIME_OUT_INT_CLR_S (8) |
| 202 | +/* RTC_I2C_TRANS_COMPLETE_INT_CLR : R/W ;bitpos:[7] ;default: 1'b0 ; */ |
| 203 | +/*description: */ |
| 204 | +#define RTC_I2C_TRANS_COMPLETE_INT_CLR BIT(7) |
| 205 | +#define RTC_I2C_TRANS_COMPLETE_INT_CLR_M BIT(7) |
| 206 | +#define RTC_I2C_TRANS_COMPLETE_INT_CLR_V (1) |
| 207 | +#define RTC_I2C_TRANS_COMPLETE_INT_CLR_S (7) |
| 208 | +/* RTC_I2C_MASTER_TRANS_COMPLETE_INT_CLR : R/W ;bitpos:[6] ;default: 1'b0 ; */ |
| 209 | +/*description: */ |
| 210 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_CLR BIT(6) |
| 211 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_CLR_M BIT(6) |
| 212 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_CLR_V (1) |
| 213 | +#define RTC_I2C_MASTER_TRANS_COMPLETE_INT_CLR_S (6) |
| 214 | +/* RTC_I2C_ARBITRATION_LOST_INT_CLR : R/W ;bitpos:[5] ;default: 1'b0 ; */ |
| 215 | +/*description: */ |
| 216 | +#define RTC_I2C_ARBITRATION_LOST_INT_CLR BIT(5) |
| 217 | +#define RTC_I2C_ARBITRATION_LOST_INT_CLR_M BIT(5) |
| 218 | +#define RTC_I2C_ARBITRATION_LOST_INT_CLR_V (1) |
| 219 | +#define RTC_I2C_ARBITRATION_LOST_INT_CLR_S (5) |
| 220 | +/* RTC_I2C_SLAVE_TRANS_COMPLETE_INT_CLR : R/W ;bitpos:[4] ;default: 1'b0 ; */ |
| 221 | +/*description: */ |
| 222 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_CLR BIT(4) |
| 223 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_CLR_M BIT(4) |
| 224 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_CLR_V (1) |
| 225 | +#define RTC_I2C_SLAVE_TRANS_COMPLETE_INT_CLR_S (4) |
| 226 | + |
| 227 | +/* Interrupt enable register. |
| 228 | + * Bit definitions are not given here, because interrupt functionality |
| 229 | + * of RTC_I2C is not used. |
| 230 | + */ |
| 231 | +#define RTC_I2C_INT_EN_REG (DR_REG_RTC_I2C_BASE + 0x028) |
| 232 | + |
| 233 | +/* Masked interrupt status register. |
| 234 | + * Bit definitions are not given here, because interrupt functionality |
| 235 | + * of RTC_I2C is not used. |
| 236 | + */ |
| 237 | +#define RTC_I2C_INT_ST_REG (DR_REG_RTC_I2C_BASE + 0x02c) |
| 238 | + |
| 239 | +#define RTC_I2C_SDA_DUTY_REG (DR_REG_RTC_I2C_BASE + 0x030) |
| 240 | +/* RTC_I2C_SDA_DUTY : R/W ;bitpos:[19:0] ;default: 20'b0 ; */ |
| 241 | +/*description: Number of FAST_CLK cycles SDA will switch after falling edge of SCL */ |
| 242 | +#define RTC_I2C_SDA_DUTY 0xFFFFF |
| 243 | +#define RTC_I2C_SDA_DUTY_M ((RTC_I2C_SDA_DUTY_V)<<(RTC_I2C_SDA_DUTY_S)) |
| 244 | +#define RTC_I2C_SDA_DUTY_V 0xFFFFF |
| 245 | +#define RTC_I2C_SDA_DUTY_S 0 |
| 246 | + |
| 247 | +#define RTC_I2C_SCL_HIGH_PERIOD_REG (DR_REG_RTC_I2C_BASE + 0x038) |
| 248 | +/* RTC_I2C_SCL_HIGH_PERIOD : R/W ;bitpos:[19:0] ;default: 20'b0 ; */ |
| 249 | +/*description: Number of FAST_CLK cycles for SCL to be high */ |
| 250 | +#define RTC_I2C_SCL_HIGH_PERIOD 0xFFFFF |
| 251 | +#define RTC_I2C_SCL_HIGH_PERIOD_M ((RTC_I2C_SCL_HIGH_PERIOD_V)<<(RTC_I2C_SCL_HIGH_PERIOD_S)) |
| 252 | +#define RTC_I2C_SCL_HIGH_PERIOD_V 0xFFFFF |
| 253 | +#define RTC_I2C_SCL_HIGH_PERIOD_S 0 |
| 254 | + |
| 255 | +#define RTC_I2C_SCL_START_PERIOD_REG (DR_REG_RTC_I2C_BASE + 0x040) |
| 256 | +/* RTC_I2C_SCL_START_PERIOD : R/W ;bitpos:[19:0] ;default: 20'b0 ; */ |
| 257 | +/*description: Number of FAST_CLK cycles to wait before generating start condition */ |
| 258 | +#define RTC_I2C_SCL_START_PERIOD 0xFFFFF |
| 259 | +#define RTC_I2C_SCL_START_PERIOD_M ((RTC_I2C_SCL_START_PERIOD_V)<<(RTC_I2C_SCL_START_PERIOD_S)) |
| 260 | +#define RTC_I2C_SCL_START_PERIOD_V 0xFFFFF |
| 261 | +#define RTC_I2C_SCL_START_PERIOD_S 0 |
| 262 | + |
| 263 | +#define RTC_I2C_SCL_STOP_PERIOD_REG (DR_REG_RTC_I2C_BASE + 0x044) |
| 264 | +/* RTC_I2C_SCL_STOP_PERIOD : R/W ;bitpos:[19:0] ;default: 20'b0 ; */ |
| 265 | +/*description: Number of FAST_CLK cycles to wait before generating stop condition */ |
| 266 | +#define RTC_I2C_SCL_STOP_PERIOD 0xFFFFF |
| 267 | +#define RTC_I2C_SCL_STOP_PERIOD_M ((RTC_I2C_SCL_STOP_PERIOD_V)<<(RTC_I2C_SCL_STOP_PERIOD_S)) |
| 268 | +#define RTC_I2C_SCL_STOP_PERIOD_V 0xFFFFF |
| 269 | +#define RTC_I2C_SCL_STOP_PERIOD_S 0 |
| 270 | + |
| 271 | +/* A block of 16 RTC_I2C_CMD registers which describe I2C operation to be |
| 272 | + * performed. Unused when ULP is controlling RTC_I2C. |
| 273 | + */ |
| 274 | +#define RTC_I2C_CMD_REG_COUNT 16 |
| 275 | +#define RTC_I2C_CMD_REG(i) (DR_REG_RTC_I2C_BASE + 0x048 + (i) * 4) |
| 276 | +/* RTC_I2C_CMD_DONE : R/W ;bitpos:[31] ;default: 1'b0 ; */ |
| 277 | +/*description: Bit is set by HW when command is done */ |
| 278 | +#define RTC_I2C_CMD_DONE BIT(31) |
| 279 | +#define RTC_I2C_CMD_DONE_M BIT(31) |
| 280 | +#define RTC_I2C_CMD_DONE_V (1) |
| 281 | +#define RTC_I2C_CMD_DONE_S (31) |
| 282 | +/* RTC_I2C_VAL : R/W ;bitpos:[13:0] ;default: 14'b0 ; */ |
| 283 | +/*description: Command content */ |
| 284 | +#define RTC_I2C_VAL 0 |
| 285 | +#define RTC_I2C_VAL_M ((RTC_I2C_VAL_V)<<(RTC_I2C_VAL_S)) |
| 286 | +#define RTC_I2C_VAL_V 0x3FFF |
| 287 | +#define RTC_I2C_VAL_S 0 |
| 288 | + |
0 commit comments