⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m41t81reg.h

📁 MIPS处理器的bootloader,龙芯就是用的修改过的PMON2
💻 H
字号:
/* $Id: m41t81reg.h,v 1.1 2003/08/30 15:00:33 pefo Exp $ *//*  *********************************************************************    *    *  Copyright 2000,2001    *  Broadcom Corporation. All rights reserved.    *    *  This software is furnished under license and may be used and    *  copied only in accordance with the following terms and    *  conditions.  Subject to these conditions, you may download,    *  copy, install, use, modify and distribute modified or unmodified    *  copies of this software in source and/or binary form.  No title    *  or ownership is transferred hereby.    *    *  1) Any source code used, modified or distributed must reproduce    *     and retain this copyright notice and list of conditions as    *     they appear in the source file.    *    *  2) No right is granted to use any trade name, trademark, or    *     logo of Broadcom Corporation. Neither the "Broadcom    *     Corporation" name nor any trademark or logo of Broadcom    *     Corporation may be used to endorse or promote products    *     derived from this software without the prior written    *     permission of Broadcom Corporation.    *    *  3) THIS SOFTWARE IS PROVIDED "AS-IS" AND ANY EXPRESS OR    *     IMPLIED WARRANTIES, INCLUDING BUT NOT LIMITED TO, ANY IMPLIED    *     WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR    *     PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED. IN NO EVENT    *     SHALL BROADCOM BE LIABLE FOR ANY DAMAGES WHATSOEVER, AND IN    *     PARTICULAR, BROADCOM SHALL NOT BE LIABLE FOR DIRECT, INDIRECT,    *     INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES    *     (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE    *     GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR    *     BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY    *     OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR    *     TORT (INCLUDING NEGLIGENCE OR OTHERWISE), EVEN IF ADVISED OF    *     THE POSSIBILITY OF SUCH DAMAGE.    ********************************************************************* *//* * Register numbers */#define M41T81REG_TSC   0x00            /* tenths/hundredths of second */#define M41T81REG_SC    0x01            /* seconds */#define M41T81REG_MN    0x02            /* minute */#define M41T81REG_HR    0x03            /* hour/century */#define M41T81REG_DY    0x04            /* day of week */#define M41T81REG_DT    0x05            /* date of month */#define M41T81REG_MO    0x06            /* month */#define M41T81REG_YR    0x07            /* year */#define M41T81REG_CTL   0x08            /* control */#define M41T81REG_WD    0x09            /* watchdog */#define M41T81REG_AMO   0x0A            /* alarm: month */#define M41T81REG_ADT   0x0B            /* alarm: date */#define M41T81REG_AHR   0x0C            /* alarm: hour */#define M41T81REG_AMN   0x0D            /* alarm: minute */#define M41T81REG_ASC   0x0E            /* alarm: second */#define M41T81REG_FLG   0x0F            /* flags */#define M41T81REG_SQW   0x13            /* square wave register *//* * Register bits */#define M41T81REG_SC_ST         0x80            /* stop bit */#define M41T81REG_HR_CB         0x40            /* century bit */#define M41T81REG_HR_CEB        0x80            /* century enable bit */#define M41T81REG_CTL_S         0x20            /* sign bit */#define M41T81REG_CTL_FT        0x40            /* frequency test bit */#define M41T81REG_CTL_OUT       0x80            /* output level */#define M41T81REG_WD_RB0        0x01            /* watchdog resolution bit 0 */#define M41T81REG_WD_RB1        0x02            /* watchdog resolution bit 1 */#define M41T81REG_WD_BMB0       0x04            /* watchdog multiplier bit 0 */#define M41T81REG_WD_BMB1       0x08            /* watchdog multiplier bit 1 */#define M41T81REG_WD_BMB2       0x10            /* watchdog multiplier bit 2 */#define M41T81REG_WD_BMB3       0x20            /* watchdog multiplier bit 3 */#define M41T81REG_WD_BMB4       0x40            /* watchdog multiplier bit 4 */#define M41T81REG_AMO_ABE       0x20            /* alarm in "battery back-up mode" enable bit */#define M41T81REG_AMO_SQWE      0x40            /* square wave enable */#define M41T81REG_AMO_AFE       0x80            /* alarm flag enable flag */#define M41T81REG_ADT_RPT5      0x40            /* alarm repeat mode bit 5 */#define M41T81REG_ADT_RPT4      0x80            /* alarm repeat mode bit 4 */#define M41T81REG_AHR_RPT3      0x80            /* alarm repeat mode bit 3 */#define M41T81REG_AHR_HT        0x40            /* halt update bit */#define M41T81REG_AMN_RPT2      0x80            /* alarm repeat mode bit 2 */#define M41T81REG_ASC_RPT1      0x80            /* alarm repeat mode bit 1 */#define M41T81REG_FLG_AF        0x40            /* alarm flag (read only) */#define M41T81REG_FLG_WDF       0x80            /* watchdog flag (read only) */#define M41T81REG_SQW_RS0       0x10            /* sqw frequency bit 0 */#define M41T81REG_SQW_RS1       0x20            /* sqw frequency bit 1 */#define M41T81REG_SQW_RS2       0x40            /* sqw frequency bit 2 */#define M41T81REG_SQW_RS3       0x80            /* sqw frequency bit 3 */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -