2021-08-10 07:16:02 -04:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2015-2021 Espressif Systems (Shanghai) CO LTD
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*/
|
2020-04-10 02:25:40 -04:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/**
|
2020-09-28 03:44:28 -04:00
|
|
|
* @file regi2c_ulp.h
|
2020-04-10 02:25:40 -04:00
|
|
|
* @brief Register definitions for analog to calibrate o_code for getting a more precise voltage.
|
|
|
|
*
|
|
|
|
* This file lists register fields of ULP, located on an internal configuration
|
2020-09-28 03:44:28 -04:00
|
|
|
* bus. These definitions are used via macros defined in regi2c_ctrl.h, by
|
2020-04-10 02:25:40 -04:00
|
|
|
* rtc_init function in rtc_init.c.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#define I2C_ULP 0x61
|
|
|
|
#define I2C_ULP_HOSTID 1
|
|
|
|
|
|
|
|
#define I2C_ULP_IR_RESETB 0
|
|
|
|
#define I2C_ULP_IR_RESETB_MSB 0
|
|
|
|
#define I2C_ULP_IR_RESETB_LSB 0
|
|
|
|
|
|
|
|
#define I2C_ULP_O_DONE_FLAG 3
|
|
|
|
#define I2C_ULP_O_DONE_FLAG_MSB 0
|
|
|
|
#define I2C_ULP_O_DONE_FLAG_LSB 0
|
|
|
|
|
|
|
|
#define I2C_ULP_BG_O_DONE_FLAG 3
|
|
|
|
#define I2C_ULP_BG_O_DONE_FLAG_MSB 3
|
2020-11-10 02:40:01 -05:00
|
|
|
#define I2C_ULP_BG_O_DONE_FLAG_LSB 3
|
2020-12-03 07:08:59 -05:00
|
|
|
|
2020-12-22 23:29:57 -05:00
|
|
|
#define I2C_ULP_IR_FORCE_CODE 5
|
|
|
|
#define I2C_ULP_IR_FORCE_CODE_MSB 6
|
|
|
|
#define I2C_ULP_IR_FORCE_CODE_LSB 6
|
|
|
|
|
|
|
|
#define I2C_ULP_EXT_CODE 6
|
|
|
|
#define I2C_ULP_EXT_CODE_MSB 7
|
|
|
|
#define I2C_ULP_EXT_CODE_LSB 0
|