Имя модуля: RTC , базовый адрес: 0x07000000 Руководство п. 3.13.5 Регистров: 24 Имя регистра | Смещение 1) LOSC_CTRL_REG | 0x0000 typedef union losc_ctrl_reg { struct { unsigned reserv_6 : 1; unsigned unused0 : 1; unsigned reserv_5 : 2; unsigned reserv_4 : 1; unsigned unused1 : 2; unsigned rtc_day_acce : 1; unsigned rtc_hhmmss_acce : 1; unsigned unused2 : 5; unsigned reserv_3 : 1; unsigned reserv_2 : 1; unsigned reserv_1 : 16; } b; unsigned long w; } LOSC_CTRL_REG 2) INTOSC_CLK_PRESCAL_REG | 0x0008 typedef union intosc_clk_prescal_reg { struct { unsigned intosc_32k_clk_prescal : 5; unsigned unused0 : 27; } b; unsigned long w; } INTOSC_CLK_PRESCAL_REG 3) INTOSC_CLK_AUTO_CALI_REG | 0x000C typedef union intosc_clk_auto_cali_reg { struct { unsigned rc_clk_src_sel : 1; unsigned rc_calibr_ena : 1; unsigned rc_calibr_prec : 2; unsigned clk6m_rc_enable : 1; unsigned dec_div : 17; unsigned int_div : 10; } b; unsigned long w; } INTOSC_CLK_AUTO_CALI_REG 4) RTC_DAY_REG | 0x0010 typedef union rtc_day_reg { struct { unsigned day : 16; unsigned unused0 : 16; } b; unsigned long w; } RTC_DAY_REG 5) RTC_HH_MM_SS_REG | 0x0014 typedef union rtc_hh_mm_ss_reg { struct { unsigned second : 6; unsigned unused0 : 2; unsigned minute : 6; unsigned unused1 : 2; unsigned hour : 5; unsigned unused2 : 11; } b; unsigned long w; } RTC_HH_MM_SS_REG 6) ALARM0_COUNTER_REG | 0x0020 typedef union alarm0_counter_reg { struct { unsigned alarm0_counter : 16; unsigned unused0 : 16; } b; unsigned long w; } ALARM0_COUNTER_REG 7) ALARM0_CUR_VLU_REG | 0x0024 typedef union alarm0_cur_vlu_reg { struct { unsigned second : 6; unsigned unused0 : 2; unsigned minute : 6; unsigned unused1 : 2; unsigned hour : 5; unsigned unused2 : 11; } b; unsigned long w; } ALARM0_CUR_VLU_REG 8) ALARM0_ENABLE_REG | 0x0028 typedef union alarm0_enable_reg { struct { unsigned alm_0_en : 1; unsigned unused0 : 31; } b; unsigned long w; } ALARM0_ENABLE_REG 9) ALARM0_IRQ_EN | 0x002C typedef union alarm0_irq_en { struct { unsigned alarm0_irq_en : 1; unsigned unused0 : 31; } b; unsigned long w; } ALARM0_IRQ_EN 10) ALARM0_IRQ_STA_REG | 0x0030 typedef union alarm0_irq_sta_reg { struct { unsigned alarm0_irq_pend : 1; unsigned unused0 : 31; } b; unsigned long w; } ALARM0_IRQ_STA_REG 11) 32K_FANOUT_GATING_REG | 0x0060 typedef union 32k_fanout_gating_reg { struct { unsigned 32k_fanout_gating : 1; unsigned losc_out_src_sel : 2; unsigned unused0 : 13; unsigned hosc_32k_divider_enable : 1; unsigned unused1 : 15; } b; unsigned long w; } 32K_FANOUT_GATING_REG 12) GP_DATA_REGN | 0x0100 + N*0x04 typedef union gp_data_regn { struct { unsigned gp_data : 32; } b; unsigned long w; } GP_DATA_REGN 13) DCXO_CTRL_REG | 0x0160 typedef union dcxo_ctrl_reg { struct { unsigned clk16m_rc_en : 1; unsigned dcxo_en : 1; unsigned unused0 : 2; unsigned dcxo_rfclk_enhance : 2; unsigned xtal_mode : 1; unsigned dcxo_ldo_inrushb : 1; unsigned dcxo_bg : 5; unsigned unused1 : 3; unsigned dcxo_trim : 7; unsigned unused2 : 1; unsigned dcxo_ictrl : 4; unsigned unused3 : 3; unsigned dcxo_fanout_enb : 1; } b; unsigned long w; } DCXO_CTRL_REG 14) RTC_VIO_REG | 0x0190 typedef union rtc_vio_reg { struct { unsigned rtc_vio_regu : 3; unsigned unused0 : 1; unsigned v_sel : 1; unsigned unused1 : 27; } b; unsigned long w; } RTC_VIO_REG 15) IC_CHARA_REG | 0x01F0 typedef union ic_chara_reg { struct { unsigned id_data : 16; unsigned ic_chara : 16; } b; unsigned long w; } IC_CHARA_REG 16) VDDOFF_GATING_SOF_REG | 0x01F4 typedef union vddoff_gating_sof_reg { struct { unsigned dram_ch_pad_hold : 1; unsigned unused0 : 14; unsigned bit_15 : 1; unsigned key_field : 16; } b; unsigned long w; } VDDOFF_GATING_SOF_REG 17) SP_STDBY_FLAG_REG | 0x01F8 typedef union sp_stdby_flag_reg { struct { unsigned id. : 16; unsigned sp_stdby_flag : 16; } b; unsigned long w; } SP_STDBY_FLAG_REG 18) SP_STDBY_SOFT_ENTRY_REG | 0x01FC typedef union sp_stdby_soft_entry_reg { struct { unsigned super_standby : 32; } b; unsigned long w; } SP_STDBY_SOFT_ENTRY_REG 19) USB_STBY_CTRL_REG | 0x0200 typedef union usb_stby_ctrl_reg { struct { unsigned unused0 : 4; unsigned usb_stby_irq_output_gating : 1; unsigned system_standby_irq_output_gating : 1; unsigned unused1 : 2; unsigned usb_stby_irq_power_off_gating : 1; unsigned unused2 : 7; unsigned usb_power_off_gating : 1; unsigned unused3 : 7; unsigned rc_clk_sel_usb : 1; unsigned rc_clk_en_usb : 1; unsigned unused4 : 2; unsigned usb2_ldo : 3; unsigned vdd_usb : 1; } b; unsigned long w; } USB_STBY_CTRL_REG 20) EFUSE_HV_PWRSWT_CTRL_REG | 0x0204 typedef union efuse_hv_pwrswt_ctrl_reg { struct { unsigned efuse_1.8v_power_switch_control : 1; unsigned unused0 : 31; } b; unsigned long w; } EFUSE_HV_PWRSWT_CTRL_REG 21) CRY_CONFIG_REG | 0x0210 typedef union cry_config_reg { struct { unsigned key_field : 16; unsigned unused0 : 16; } b; unsigned long w; } CRY_CONFIG_REG 22) CRY_KEY_REG | 0x0214 typedef union cry_key_reg { struct { unsigned cry_key : 32; } b; unsigned long w; } CRY_KEY_REG 23) CRY_EN_REG | 0x0218 typedef union cry_en_reg { struct { unsigned cry_en : 1; unsigned unused0 : 31; } b; unsigned long w; } CRY_EN_REG 24) CALI_CTRL_REG | 0x0164 typedef union cali_ctrl_reg { struct { unsigned wait_dcxo_sel : 4; unsigned wakeup_cnt_for_sleep : 4; unsigned wakeup_cnt_for_ready_sleep : 4; unsigned timer_for_ready_sleep : 4; unsigned wakeup_ready_sleep_mode : 1; unsigned unused0 : 14; unsigned wakeup_dcxo_en : 1; } b; unsigned long w; } CALI_CTRL_REG |