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

📄 bbu_library.s

📁 关于PXA310的最小系统的程序,初级学习阶段会有所帮助,汇编语言编写的
💻 S
📖 第 1 页 / 共 5 页
字号:
;
BBU_PARSE_SYN   DCB     "BBU - Syntax error detected in command input at # on next line.",0xD,0xA,0
BBU_PARSE_BIG   DCB     "BBU - Input value too large on command line.",0xD,0xA,0
;
;       **************************************
;       **********                  **********
;       ********** BBU COMMAND LIST **********
;       **********                  **********
;       **************************************       
;
;       BBU commands are NULL terminated ASCII strings listed in command number order.
;       This new format removes the 3-4 character command format found in legacy
;       BBU code. Commands may be 1 to (about) 70 bytes and still leave room for a
;       numeric input from the user.
;
;       Multiple word commands must use something other than a space between
;       the words in the command (an underscore is sugested but almost anything
;       could be used). 
;
;       Command numbers #1 to #180 are resevered for use by BBU. Users who want
;       to add their own commands to BBU should start them at command #181. This
;       will make it easier for users to cut/paste their code into later versions
;       of BBU with little risk of having to rework their code.
;
;       The end of the BBU command list is indicated by a 0xFF byte.
;       NOTE: A command name may not start with a digit (0-9) 
;
;       All commands must be in UPPER CASE characters. Entries where commands
;       were removed have the command name replaced with "xxxx" (lower case x's)
;       which will guarantee a "no match" condition.
;
BBU_COMMANDS
        DCB     "HELP",0        ; Command #1  - Displays BBU help messages
        DCB     "PEEK",0        ; Command #2  - Display contents of a memory/register location
        DCB     "POKE",0        ; Command #3  - Loads data into a memory/register location
        DCB     "DUMP",0        ; Command #4  - Dump memory/register contents to display
        DCB     "GPIO",0        ; Command #5  - Set/Clear GPIO direction or Set/Clear Bit level
        DCB     "xxxx",0        ; Command #6  - 
        DCB     "GPIO_A",0      ; Command #7  - Modify GPIO Alternate function bits
        DCB     "xxxx",0        ; Command #8  - 
        DCB     "xxxx",0        ; Command #9  -  
        DCB     "xxxx",0        ; Command #10 -
        DCB     "GPIO_S",0      ; Command #11 - GPIO status (in user friendly format)
        DCB     "VERS",0        ; Command #12 - Display BBU version number
        DCB     "ACCR",0        ; Command #13 - Update ACCR register
        DCB     "IFCS",0        ; Command #14 - Initiate Frequency Change Sequence
        DCB     "INTR",0        ; Command #15 - Display contents of ICPR & ICPR2 registers
        DCB     "TURB",0        ; Command #16 - Set/Clear Turbo Bit
        DCB     "VTPA",0        ; Command #17 - Virtual To Physical Address conversion
        DCB     "SELFTEST",0    ; Command #18 - Platform selftest
        DCB     "FREQ",0        ; Command #19 - Display/Modify processor bus freqiencies
        DCB     "EICA",0        ; Command #20 - Enable I-Cache, D-Cache, Branch to Target Buffer
        DCB     "MEMC",0        ; Command #21 - Dump contents of memory controller
        DCB     "CLKM",0        ; Command #22 - Dump contents of clock registers
        DCB     "SMTD",0        ; Command #23 - Set Memory Test Defaults for MTSP command
        DCB     "RCOM",0        ; Command #24 - Update the Rcomp register
        DCB     "MEM_COPY",0    ; Command #25 - Copy data from one memory location to another
        DCB     "CONFIG",0      ; Command #26 - Display system configuration
        DCB     "IRDA",0        ; Command #27 - Enable/Disable the IrDA port
        DCB     "HEX_LEDS",0    ; Command #28 - Write to debug board hex LEDs
        DCB     "HEX_SWITCH",0  ; Command #29 - Read value in debug board hex switches
        DCB     "PID",0         ; Command #30 - Displays processor ID
        DCB     "RECP",0        ; Command #31 - Read data from co-processor
        DCB     "WRCP",0        ; Command #32 - Write data to co-processor
        DCB     "PADS",0        ; Command #33 - Update PADS registers
        DCB     "IMEM",0        ; Command #34 - Init SDRAM (DDR memory)
        DCB     "RALS",0        ; Command #35 - Read Ambient Light Sensor
        DCB     "CORE_VOLTS",0  ; Command #36 - Reads/Sets processor core voltage
        DCB     "MOUNT_MMC",0   ; Command #37 - Mount a MMC/SD card for file transfer
        DCB     "I_CODEC",0     ; Command #38 - Init Audio Codec
        DCB     "TONE",0        ; Command #39 - Send tone data to codec
        DCB     "SPKR",0        ; Command #40 - Speaker volume
        DCB     "MIC",0         ; Command #41 - Connect Microphone to speaker
        DCB     "FUEL",0        ; Command #42 - Fuel Gauge read/write commands
        DCB     "VIBRATE",0     ; Command #43 - Vibrator control
        DCB     "AI2C",0        ; Command #44 - Sets address for future reads/writes to I2C devices
        DCB     "ISRAM_VOLTS",0 ; Command #45 - Reads/Sets the iSRAM voltage
        DCB     "KPBL",0        ; Command #46 - KeyPad BackLight control
        DCB     "BATT_VOLTS",0  ; Command #47 - Read the battery voltage using the PMIC
        DCB     "LCDBL",0       ; Command #48 - LCD Backlight intensity setting
        DCB     "MFPR",0        ; Command #49 - Read/Write Multi-Function Pin register
        DCB     "MMC_READ",0    ; Command #50 - Read Data from MMC/SD card
        DCB     "EAR",0         ; Command #51 - Set ear speaker volume
        DCB     "FMEM",0        ; Command #52 - Fill memory (with user supplied data)
        DCB     "LED",0         ; Command #53 - Test the LED indicator
        DCB     "KEYP",0        ; Command #54 - Keypad test routine
        DCB     "RCUD",0        ; Command #55 - Resistive Compensation Update
        DCB     "xxxx",0        ; Command #56 - 
        DCB     "BAUD",0        ; Command #57 - Changes baud rate on active BBU port
        DCB     "WLAN",0        ; Command #58 - Wireless LAN card test
        DCB     "RI2C",0        ; Command #59 - Read from the regular I2C bus (not Power I2C)
        DCB     "WI2C",0        ; Command #60 - Write to the regular I2C bus (not Power I2C)
        DCB     "EMPI",0        ; Command #61 - EMPI Register Read/Write command
        DCB     "WELC",0        ; Command #62 - Set up BBU welcome screen on LCD
        DCB     "TPAN",0        ; Command #63 - Touch Panel Test (using DA9034)
        DCB     "C1_IDLE",0     ; Command #64 - Put Platform into C1 IDLE mode
        DCB     "CLKN_RED",0    ; Command #65 - Clock Enable Reduced (essential clocks only)
        DCB     "CLKN_NORM",0   ; Command #66 - Clock Enable Normal (normal power mode)
        DCB     "D0CS",0        ; Command #67 - Ring Osc Test (d0cs - not docs)
        DCB     "DEAD_IDLE",0   ; Command #68 - Put platform into C1 Idle with peripheral clocks stopped
        DCB     "PRBS",0        ; Command #69 - Pseudo Random Bit Sequence memory test
        DCB     "RECORD",0      ; Command #70 - Record data from platform microphone
        DCB     "PLAY",0        ; Command #71 - Play data recorded using RECORD command
        DCB     "xxxx",0        ; Command #72 - 
        DCB     "xxxx",0        ; Command #73 -
        DCB     "xxxx",0        ; Command #74 - 
        DCB     "xxxx",0        ; Command #75 - 
        DCB     "SEYE",0        ; Command #76 - Super Eye test
        DCB     "MT41",0        ; Command #77 - Memory Test #41 DMA test
        DCB     "WDMA",0        ; Command #78 - Write DMA memory test
        DCB     "RDMA",0        ; Command #79 - Read DMA memory test
        DCB     "WEYE",0        ; Command #80 - Write DMA with eye pattern
        DCB     "TDMA",0        ; Command #81 - Test DMA write/read
        DCB     "SMTS",0        ; Command #82 - Set memory time sequence
        DCB     "MEMT",0        ; Command #83 - BBU Memory test program
        DCB     "DIR",0         ; Command #84 - FAT Directory command
        DCB     "READ_FILE",0   ; Command #85 - Read a file from a FAT formatted device
        DCB     "CD",0          ; Command #86 - Change Directory command
        DCB     "LCDB",0        ; Command #87 - Fill LCD buffer with BLUE data
        DCB     "LCDC",0        ; Command #88 - Fill LCD buffer with user provided color 
        DCB     "LCDG",0        ; Command #89 - Fill LCD buffer with GREEN data
        DCB     "LCDR",0        ; Command #90 - Fill LCD buffer with RED data
        DCB     "MTSP",0        ; Command #91 - Memory Test Software Package
        DCB     "xxxx",0        ; Command #92 - 
        DCB     "xxxx",0        ; Command #93 - 
        DCB     "xxxx",0        ; Command #94 - 
        DCB     "xxxx",0        ; Command #95 - 
        DCB     "DFI_STR",0     ; Command #96 - Set DFI strength
        DCB     "IMMC",0        ; Command #97 - Init MultiMedia/SD Card Interface
        DCB     "xxxx",0        ; Command #98 - 
        DCB     "RI2C_16",0     ; Command #99 - Read from I2C device with 16-bit address
        DCB     "WI2C_16",0     ; Command #100 - Write to I2C device with 16_bit address
        DCB     "ILCD",0        ; Command #101 - Inits the LCD controller
        DCB     "GBOX",0        ; Command #102 - Get Box Test ** DEVELOPMENT CODE **
        DCB     "ICAM",0        ; Command #103 - Init Camera for use
        DCB     "CAMV",0        ; Command #104 - Controls DMA transfer of camera data to LCD buffer
        DCB     "BT_PASS",0     ; Command #105 - BlueTooth port pass-though command
        DCB     "NAND_READ",0   ; Command #106 - Read data from NAND flash
        DCB     "NAND_WRITE",0  ; Command #107 - Write data to NAND flash
        DCB     "NAND_ID",0     ; Command #108 - Fetch NAND ID information
        DCB     "TCAL",0        ; Command #109 - Touch Panel Calibration
        DCB     "CMD_FILE",0    ; Command #110 - Run a user's command file
        DCB     "ENET",0        ; Command #111 - Performs a register dump of the LAN91C111 E-net chip
        DCB     "NAND_ERASE",0  ; Command #112 - Erase NAND flash
        DCB     "NAND_UNLOCK",0 ; Command #113 - Unlock NAND flash (debug code)
        DCB     "TIME",0        ; Command #114 - BBU Real Time Clock
        DCB     "BMPI",0        ; Command #115 - Move BMP Image to LCD frame buffer
        DCB     "MMC_WRITE",0   ; Command #116 - Write data sector to a MMC or SD card
        DCB     "MMC_ERASE",0   ; Command #117 - Erase a block of data from a MMC or SD card
        DCB     "MACA",0        ; Command #118 - Writes a MAC address to the LAN91C111 E-net chip
        DCB     "SHOW_RCOMP",0  ; Command #119 - Show when Rcomp happens
        DCB     "HIDE_RCOMP",0  ; COmmand #120 - Hide when Rcomp happens
        DCB     "RCOMP_COUNT",0 ; Command #121 - Display/Reset Rcomp Count
        DCB     "SHOW_PNCODE",0 ; Command #122 - Display PCODE and NCODE on Rcomp interrupts
        DCB     "MCDMA_MT1",0   ; Command #123 - Multiple Channel DMA Memory Test DDR-DDR-DDR-DDR
        DCB     "MCDMA_MT2",0   ; Command #124 - Multiple Channel DMA Memory test DDR-iSRAM-DDR-iSRAM
        DCB     "xxxx",0        ; Command #125 - 
        DCB     "MVT_VOLTS",0   ; Command #126 - Adjust the voltage for the DDR logic
        DCB     "xxxx",0        ; Command #127 - 
        DCB     "MEMORY_MAP",0  ; Command #128 - Lists a memory map on the LCD
        DCB     "ST_PASS",0     ; Command #129 - FFUART to STUART pass through command
        DCB     "REYE",0        ; Command #130 - Read (data) Eye test for DDR memory
        DCB     "APTT",0        ; Command #131 - Address Page Turn Test for DDR memory
        DCB     "DOWNLOAD",0    ; Command #132 - Downloads files to Zylonite over FFUART
        DCB     "UPLOAD",0      ; Command #133 - Uploads data from Zylonite over FFUART
        DCB     "SCREEN_SHOT",0 ; Command #134 - Generates a 16-Bit BMP file of the LCD screen
        DCB     "LOAD_SLIDES",0 ; Command #135 - Load slide show into DDR from NAND
        DCB     "DHRYSTONE",0   ; Command #136 - Dhrystone test
        DCB     "D1_MINILCD",0  ; Command #137 - Put platform into D1 miniLCD mode
        DCB     "D2_STANDBY",0  ; Command #138 - Put platform into D2 standby mode
        DCB     "S2_SLEEP",0    ; Command #139 - Put platform into S2 sleep mode
        DCB     "S3_SLEEP",0    ; Command #140 - Put platform into S3 sleep mode
        DCB     "PIAL",0        ; Command #141 - Periodic Alarm Test
        DCB     "RPI2C",0       ; Command #142 - Read from Power I2C bus
        DCB     "WPI2C",0       ; Command #143 - Write to Power I2C bus
        DCB     "SLIDE_SHOW",0  ; Command #144 - Displays multiple downloaded images
        DCB     "xxxx",0        ; Command #145 - 
        DCB     "xxxx",0        ; Command #146
        DCB     "xxxx",0        ; Command #147
        DCB     "xxxx",0        ; Command #148
        DCB     "xxxx",0        ; Command #149
        DCB     "xxxx",0        ; Command #150
        DCB     "xxxx",0        ; Command #151
        DCB     "xxxx",0        ; Command #152
        DCB     "xxxx",0        ; Command #153
        DCB     "xxxx",0        ; Command #154
        DCB     "xxxx",0        ; Command #155
        DCB     "xxxx",0        ; Command #156
        DCB     "xxxx",0        ; Command #157
        DCB     "xxxx",0        ; Command #158
        DCB     "xxxx",0        ; Command #159
        DCB     "xxxx",0        ; Command #160
        DCB     "xxxx",0        ; Command #161
        DCB     "xxxx",0        ; Command #162
        DCB     "xxxx",0        ; Command #163
        DCB     "xxxx",0        ; Command #164
        DCB     "xxxx",0        ; Command #165
        DCB     "xxxx",0        ; Command #166
        DCB     "xxxx",0        ; Command #167
        DCB     "xxxx",0        ; Command #168
        DCB     "xxxx",0        ; Command #169
        DCB     "xxxx",0        ; Command #170
        DCB     "xxxx",0        ; Command #171
        DCB     "xxxx",0        ; Command #172
        DCB     "xxxx",0        ; Command #173
        DCB     "xxxx",0        ; Command #174
        DCB     "xxxx",0        ; Command #175
        DCB     "xxxx",0        ; Command #176
        DCB     "xxxx",0        ; Command #177
        DCB     "xxxx",0        ; Command #178
        DCB     "xxxx",0        ; Command #179
        DCB     "xxxx",0        ; Command #180
;
;       Users who want to add their own BBU commands should add them starting at
;       Command #181 to reduce the chances of a later version of BBU using a
;       command number previously defined by the user. This makes it easier for
;       the user to cut/paste their code into later versions of BBU.
;
        DCB     "xxxx",0        ; Command #181
        DCB     "xxxx",0        ; Command #182
        DCB     "xxxx",0        ; Command #183
        DCB     "xxxx",0        ; Command #184
        DCB     "xxxx",0        ; Command #185
        DCB     "xxxx",0        ; Command #186
        DCB     "xxxx",0        ; Command #187
        DCB     "xxxx",0        ; Command #188
        DCB     "xxxx",0        ; Command #189
        DCB     "xxxx",0        ; Command #190
        DCB     0xFF            ; Marks the end of the command list
        ALIGN   4

BBU_CMD_SW      SPACE   8       ; 8 Bytes for command switches
BBU_CMD_ARG     SPACE   8*4     ; Room for up to 8 32-bit command arguments
BBU_CMD_ASCII   SPACE   8*4     ; Up to 32 ASCII bytes saved here
BBU_CMD_NUMB    SPACE   4       ; Command number saved here
BBU_CMD_COUNT   SPACE   4       ; Command Parameter count

        ENDFUNC
;
;*********************************************************************************
;
;       **************
;       *            * 
;       * BBU_U32Div * Subroutine "BBU Unsigned 32 bit Divide"
;       *            *
;       **************
;
;       Last Update: 25-Feb-1004
;

⌨️ 快捷键说明

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