📄 bbu_help.s
字号:
ALIGN 4
;
; ***** LED ***** LED TEST
;
530 cmp r2, #53 ; Help for LED command?
bne %F570 ; Nope
ldr r0, =BBU_HELP_LED ; Message address
b %F9000 ; Print it
BBU_HELP_LED DCB 0xA,0xD
DCB " LED - Test the platform's LED indicator.",0xD,0xA,0xA
DCB " LED [/D=][value]",0xD,0xA,0xA
DCB " value = If zero, the LED drive is shut down.",0xD,0xA
DCB " Any 32-bit value may be entered by the user to set up a",0xD,0xA
DCB " blink pattern in the LED (0xFFFFFFFF would be on all the",0xD,0xA
DCB " time. If only 1 bit is set, the LED will be on 1/32 of a",0xD,0xA
DCB " second and so forth. If being entered with the /D= switch the",0xD,0xA
DCB " value is the number of seconds between displaying the bit",0xD,0xA
DCB " pattern (only the 3 LSBs are looked at). The LED command may",0xD,0xA
DCB " may be used to update either the delay or the pattern but can",0xD,0xA
DCB " not do both on the same command line.",0xD,0xA,0xA
DCB " The optional /D= switch will set the delay time between displaying",0xD,0xA
DCB " the pattern entered by the user. Values may range from 0 to 7 seconds.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** BAUD ***** SET BAUD RATE FOR BBU DEBUG PORT
;
570 cmp r2, #57 ; Help for BAUD command?
bne %F590 ; Nope
ldr r0, =BBU_HELP_BAUD ; Message address
b %F9000 ; Print it
BBU_HELP_BAUD DCB 0xA,0xD
DCB " BAUD - Set the baud rate for the BBU debug port.",0xD,0xA,0xA
DCB " The BAUD command allows the user to change the baud rate on the BBU debug",0xD,0xA
DCB " port. Once the user enters the command, the baud rate of the terminal",0xD,0xA
DCB " emulator needs to be set to match the baud rate selected by the user.",0xD,0xA,0xA
DCB " BAUD bit_rate",0xD,0xA,0xA
DCB " bit_rate = Valid baud rates are 9600, 19200, 38400, 57600 and 115200.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** RI2C ***** READ FROM REGULAR I2C BUS
;
590 cmp r2, #59 ; Help for RI2C command?
bne %F600 ; Nope
ldr r0, =BBU_HELP_RI2C ; Message address
b %F600 ; Print it
BBU_HELP_RI2C DCB 0xA,0xD
DCB " RI2C - Read a device register on the I2C bus.",0xD,0xA,0xA
DCB " The RI2C command is used to read data in the specified I2C bus register and",0xD,0xA
DCB " displays this data for the user. The user may set the device slave address",0xD,0xA
DCB " by using the AI2C command.",0xD,0xA,0xA
DCB " RI2C [/L=]register",0xD,0xA,0xA
DCB " register = register address to read from.",0xD,0xA
DCB " If the /L= switch is added, the code will read the register in a loop",0xD,0xA
DCB " until the user presses a key on the keyboard.",0xD,0xA,0xA,0
ALIGN 4
;
; ******************
; ** **
; ** LITERAL POOL ** LOCAL DATA STORAGE
; ** **
; ******************
;
LTORG
;
; ***** WI2C ***** WRITE TO THE REGULAR I2C BUS
;
600 cmp r2, #60 ; Help for WI2C command?
bne %F700 ; Nope
ldr r0, =BBU_HELP_WI2C ; Message address
b %F9000 ; Print it
BBU_HELP_WI2C DCB 0xA,0xD
DCB " WI2C - Write data to a device register on the I2C bus.",0xD,0xA,0xA
DCB " The WI2C command is used to write data to the specified I2C bus register in",0xD,0xA
DCB " the slave device. The user may set the device slave address by using the AI2C",0xD,0xA
DCB " command.",0xD,0xA,0xA
DCB " WI2C register,data",0xD,0xA,0xA
DCB " register = address of the register to be written.",0xD,0xA
DCB " data = The data to be written to the specified register.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** RECORD ***** RECORD AUDIO USING THE PCM INTERFACE
;
700 cmp r2, #70 ; Help for RECORD command?
bne %F710 ; Nope
ldr r0, =BBU_HELP_RECO ; Message address
b %F9000 ; Print it
BBU_HELP_RECO DCB 0xA,0xD
DCB " RECORD - Record audio from the main board microphone using the PCM bus.",0xD,0xA,0xA
DCB " RECORD seconds",0xD,0xA,0xA
DCB " seconds = the number of seconds the recording is to last (1-120).",0xD,0xA,0xA
DCB " The PCM interface to the codec must be initialized before the RECORD",0xD,0xA
DCB " command can be used. To do this, the BBU command I_CODEC /P should be",0xD,0xA
DCB " entered before the RECORD command. To play back the audio recording, set",0xD,0xA
DCB " the playback volume on either the loudspeaker using the SPKR command or",0xD,0xA
DCB " the ear speaker using the EAR command and then enter the PLAY command.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** PLAY ***** PLAYBACK AUDIO THAT WAS RECODED USING THE RECORD COMMAND
;
710 cmp r2, #71 ; Help for PLAY command?
bne %F830 ; Nope
ldr r0, =BBU_HELP_PLAY ; Message address
b %F9000 ; Print it
BBU_HELP_PLAY DCB 0xA,0xD
DCB " PLAY - Playback audio that was recorded using the RECORD command.",0xD,0xA,0xA
DCB " There are no parameters for this command. Enter RECORD /H to get help",0xD,0xA
DCB " on making a recording that can be used with the PLAY command.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** MEMT ***** STANDARD BBU MEMOY TEST
;
830 cmp r2, #83 ; Help for MEMT command?
bne %F840 ; Nope
ldr r0, =BBU_HELP_MEMT ; Message address
b %F9000 ; Print it
BBU_HELP_MEMT DCB 0xA,0xD
DCB " MEMT - Standard BBU memory test routine.",0xD,0xA,0xA
DCB " The MEMT command performs the standard BBU memoy test. This test starts",0xD,0xA
DCB " with the pattern 0x1111_11111 and adds this value to each succeding memory",0xD,0xA
DCB " location until the specified number of bytes has been written. The code",0xD,0xA
DCB " reads the data back then then does the test again using the complement",0xD,0xA
DCB " of the previous pattern. Be aware that BBU uses the first megabyte of",0xD,0xA
DCB " DDR memory so DDR memory tests should not start below address 0x8010_0000.",0xD,0xA,0xA
DCB " MEMT address,bytes",0xD,0xA,0xA
DCB " address = Starting address for the test.",0xD,0xA
DCB " bytes = Number of bytes to be tested.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** DIR ***** DIRECTORY COMMAND
;
840 cmp r2, #84 ; Help for DIR command?
bne %F850 ; Nope
ldr r0, =BBU_HELP_DIR ; Message address
b %F9000 ; Print it
BBU_HELP_DIR DCB 0xA,0xD
DCB " DIR - Display a directory listing of a mounted device.",0xD,0xA,0xA
DCB " Provides a directory listing of a mounted device that is formatted using",0xD,0xA
DCB " the FAT12/FAT16/FAT32 file structure.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** READ_FILE ***** READ A FILE FROM A MOUNTED DEVICE
;
850 cmp r2, #85 ; Help for READ_FILE command?
bne %F860 ; Nope
ldr r0, =BBU_HELP_RFIL ; Message address
b %F9000 ; Print it
BBU_HELP_RFIL DCB 0xA,0xD
DCB " READ_FILE - Copy a file from a FAT formatted device to memory.",0xD,0xA,0xA
DCB " READ_FILE /A=file.ext,address.",0xD,0xA,0xA
DCB " Enter the /A= command switch fillowed by the file name in 8.3 format and",0xD,0xA
DCB " the address to which the file is to be sent to.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** CD ***** CHANGE DIRECTORY COMMAND
;
860 cmp r2, #86 ; Help for CD command?
bne %F910 ; Nope
ldr r0, =BBU_HELP_CD ; Message address
b %F9000 ; Print it
BBU_HELP_CD DCB 0xA,0xD
DCB " CD - Change directories on a mounted, FAT formatted device.",0xD,0xA,0xA
DCB " CD /A=directory_name (or ..)",0xD,0xA,0xA
DCB " Enter the command with the /A= switch followed by the directory name to",0xD,0xA
DCB " switch to. Enter .. to move up a directory. BBU will inform you if you",0xD,0xA
DCB " move all the way up to the root directory.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** MTSP ***** MEMORY TEST SUBROUTINE PACKAGE
;
910 cmp r2, #91 ; Help for MTSP command?
bne %F970 ; Nope
ldr r0, =BBU_HELP_MTSP ; Message address
b %F9000 ; Print it
BBU_HELP_MTSP DCB 0xA,0xD
DCB " MTSP - Memory Test Subroutine Package",0xD,0xA,0xA
DCB " The MTSP command can run a suite of up to 30 different typs of",0xD,0xA
DCB " memory tests using this one command. For a list of the memory tests",0xD,0xA
DCB " refer to the BBU User's Guide. Keep in mind that BBU occupies the",0xD,0xA
DCB " 1MB of DDR memory so where running tests on DDR it is suggested that",0xD,0xA
DCB " the starting address be 0x8010_0000 or higher.",0xD,0xA,0xA
DCB " MTSP asddress,size,tests",0xD,0xA,0xA
DCB " address = Starting address of the memory area to be tested.",0xD,0xA
DCB " size = Size of memory to be tested, in bytes.",0xD,0xA
DCB " tests = Each bit set will select a specified memory test, Use the",0xD,0xA
DCB " value 0xFFFF_FFFF to run all memory tests.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** IMMC ***** INIT MMC/SD CARD
;
970 cmp r2, #97 ; Help for IMMC command?
bne %F1010 ; Nope
ldr r0, =BBU_HELP_IMMC ; Message address
b %F9000 ; Print it
BBU_HELP_IMMC DCB 0xA,0xD
DCB " IMMC - Initialize the MMC/SD card interface on the Platform.",0xD,0xA,0xA
DCB " This command must be run before any other SD/MMC command such as a read,",0xD,0xA
DCB " write or erase command will work. This command initializes the SD/MMC",0xD,0xA
DCB " interface, establishes a Relative Card Address(RCA), and reads the CSD",0xD,0xA
DCB " (Card Specific Data) to calculate the storage capacity of the device.",0xD,0xA,0xA,0
ALIGN 4
;
; ******************
; ** **
; ** LITERAL POOL ** LOCAL DATA STORAGE
; ** **
; ******************
;
LTORG
;
; ***** ILCD ***** INIT THE PRIMARY LCD
;
1010 cmp r2, #101 ; Help for ILCD command?
bne %F1030 ; Nope
ldr r0, =BBU_HELP_ILCD ; Message address
b %F9000 ; Print it
BBU_HELP_ILCD DCB 0xA,0xD
DCB " ILCD - Initialize the primary LCD interface.",0xD,0xA,0xA
DCB " The ILCD command sets up the LCD controller to supposrt the primary LCD in",0xD,0xA
DCB " highest resolution available. If BBU is running in iSRAM, QVGA mode is used.",0xD,0xA
DCB " To switch to VGA mode, set the core frequency to 208 MHz or higher (use",0xD,0xA
DCB " the FREQ command), Initalize memory using the IMEM 1 command, followed",0xD,0xA
DCB " by the ILCD command. Use the WELC command to repaint a welcome screen on",0xD,0xA
DCB " the LCD.",0xD,0xA,0xA
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -