📄 bbu_help.s
字号:
DCB " /L= to specify data for the LEFT channel on the HIFI (I2S bus) input.",0xD,0xA
DCB " /R= to specify data for the RIGHT channel on the HIFI (I2S bus) input.",0xD,0xA
DCB " /P= to specify monaural data for the voice (PCM bus) input.",0xD,0xA
DCB " (if the /P switch is used, there is no 2nd argument for this command)",0xD,0xA,0xA
DCB " y= /R= or /L= to specify frequency for HIFI input on selected channel.",0xD,0xA,0xA
DCB " z= the frequency to be used for the tone. The valid frequencies (z) are:",0xD,0xA,0xA
DCB " 1 = 1.000 KHz tone (I2S mode, 333Hz PCM mode)",0xD,0xA
DCB " 2 = 2.000 KHz tone (I2S mode, 667Hz PCM mode)",0xD,0xA
DCB " 4 = 4.000 KHz tone (I2S mode, 1.3KHz PCM mode)",0xD,0xA,0xA
DCB " Entering TONE with no arguments stops tone data going to the codec.",0xD,0xA
DCB " Use the SPKR or EAR command to hear the tone through the selected speaker.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** SPKR ***** ADJUST SPEAKER VOLUME
;
400 cmp r2, #40 ; Help for SPKR command?
bne %F410 ; Nope
ldr r0, =BBU_HELP_SPKR ; Message address
b %F9000 ; Print it
BBU_HELP_SPKR DCB 0xA,0xD
DCB " SPKR - Adjust volume of audio data going to the speaker.",0xD,0xA,0xA
DCB " SPKR volume",0xD,0xA,0xA
DCB " volume = 0->63 for mute to full volume.",0xD,0xA,0xA
DCB " NOTE: HI-FI data from the LEFT and RIGHT channels are mixed together",0xD,0xA
DCB " and sent to the speaker. Two-tone audio may be heard by specifying",0xD,0xA
DCB " different frequencies for the LEFT and RIGHT channels using the",0xD,0xA
DCB " TONE command. Only a sigle tone is available in PCM mode.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** MIC ***** CONNECT MIC TO SPEAKER
;
410 cmp r2, #41 ; Help for MIC command?
bne %F420 ; Nope
ldr r0, =BBU_HELP_MIC ; Message address
b %F9000 ; Print it
BBU_HELP_MIC DCB 0xA,0xD
DCB " MIC - Connect (or disconnect) the microphone to/from the speaker.",0xD,0xA,0xA
DCB " MIC option",0xD,0xA,0xA
DCB " option = 1 to connect the mic to the speaker.",0xD,0xA
DCB " = 0 to disconnect the mic from the speaker.",0xD,0xA,0xA
DCB " NOTE: Use the SPKR command to adjust the volume level. Be aware",0xD,0xA
DCB " that high volume level settings are likely to cause feedback.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** FUEL ***** READ/WRITE THE FUEL GAUGE
;
420 cmp r2, #42 ; Help for FUEL command?
bne %F430 ; Nope
ldr r0, =BBU_HELP_FUEL ; Message address
b %F9000 ; Print it
BBU_HELP_FUEL DCB 0xA,0xD
DCB " FUEL - Display battery status or read/write fuel gauge registers.",0xD,0xA,0xA
DCB " FUEL [/x=y,z]",0xD,0xA,0xA
DCB " If no parameters are specified, the battery status is displayed.",0xD,0xA,0xA
DCB " /I (no parameters) download battery parameters to the fuel gauge registers.",0xD,0xA
DCB " /R=y will cause a read from the specified fuel gauge register.",0xD,0xA
DCB " /W=y,z will write data to the specified fuel gauge register.",0xD,0xA,0xA
DCB " y = The register to be read or written.",0xD,0xA
DCB " z = the data to be written to the specified register.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** VIBRATE ***** RUN VIBRATOR MOTOR
;
430 cmp r2, #43 ; Help for VIBRATE command?
bne %F440 ; Nope
ldr r0, =BBU_HELP_VIBE ; Message address
b %F9000 ; Print it
BBU_HELP_VIBE DCB 0xA,0xD
DCB " VIBRATE - Adjust power ro the vibrator motor.",0xD,0xA,0xA
DCB " VIBRATE level",0xD,0xA,0xA
DCB " level = 0->63 for OFF to full power level.",0xD,0xA
DCB " Usually a value around 25 is required to start the motor.",0xD,0xA,0xA,0
ALIGN 4
;
; ******************
; ** **
; ** LITERAL POOL ** LOCAL DATA STORAGE
; ** **
; ******************
;
LTORG
;
; ***** AI2C ***** SET/DISPLAY SLAVE ADDRESS FOR I2c BUS TRANSACTIONS
;
440 cmp r2, #44 ; Help for AI2C command?
bne %F450 ; Nope
ldr r0, =BBU_HELP_AI2C ; Message address
b %F9000 ; Print it
BBU_HELP_AI2C DCB 0xA,0xD
DCB " AI2C - Display/Set the slave address for I2C commands.",0xD,0xA,0xA
DCB " This commands displays/sets the salve address to be used with the",0xD,0xA
DCB " RI2C and WI2C commands. The address entered should always be the",0xD,0xA
DCB " even value for the slave address. Be aware that other commands",0xD,0xA
DCB " such as ICAM, CAMV, CORE_VOLTS, ISRAM_VOLTS will change the default",0xD,0xA
DCB " I2C slave address!",0xD,0xA,0xA
DCB " AI2C [address]",0xD,0xA,0xA
DCB " address = optional value that sets the I2C slave address to the entered",0xD,0xA
DCB " value. If no address is entered AI2C will display the current",0xD,0xA
DCB " slave address in use.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** ISRAM_VOLTS ***** DISPLAY/SET ISRAM VOLTAGE
;
450 cmp r2, #45 ; Help for ISRAM_VOLTS command?
bne %F460 ; Nope
ldr r0, =BBU_HELP_ISRV ; Message address
b %F9000 ; Print it
BBU_HELP_ISRV DCB 0xA,0xD
DCB " ISRAM_VOLTS - Display/Set the internal SRAM voltage level.",0xD,0xA,0xA
DCB " ISRAM_VOLTS [milivolts]",0xD,0xA,0xA
DCB " milivolts = optional value that sets the iSRAM voltage to any value",0xD,0xA
DCB " between 0.725 and 1.500 volts. The value must be entered",0xD,0xA
DCB " in millivolts (725 to 1500). BBU will round this value down",0xD,0xA
DCB " to the closest 25 milivolt increment. If no value is entered",0xD,0xA
DCB " the iSRAM voltage level is displayed.",0xD,0xA,0xA
DCB " NOTE: Typical working range is 1.100 to 1.500 volts.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** KPBL ***** KEYPAD BACKLIGHT INTENSITY
;
460 cmp r2, #46 ; Help for KPBL command?
bne %F470 ; Nope
ldr r0, =BBU_HELP_KPBL ; Message address
b %F9000 ; Print it
BBU_HELP_KPBL DCB 0xA,0xD
DCB " KPBL - Keypad backlight intensity level.",0xD,0xA,0xA
DCB " KPBL level",0xD,0xA,0xA
DCB " level = Backlight intensity 0x00 to 0x7F (0 to 127).",0xD,0xA
DCB " 0 = off, 0x7F (128) = full intensity.",0xD,0xA,0xA,0
ALIGN 4
;
; ******************
; ** **
; ** LITERAL POOL ** LOCAL DATA STORAGE
; ** **
; ******************
;
LTORG
;
; ***** BATT_VOLTS ***** READ BATTERY VOLTAGE USING THE PMIC
;
470 cmp r2, #47 ; Help for BATT_VOLTS command?
bne %F480 ; Nope
ldr r0, =BBU_HELP_BATTV ; Message address
b %F9000 ; Print it
BBU_HELP_BATTV DCB 0xA,0xD
DCB " BATT_VOLTS - Read the battery voltage.",0xD,0xA,0xA
DCB " This command reads the battery voltage using the Power Management IC",0xD,0xA
DCB " (PMIC). The battery voltage may also be read using the FUEL command to",0xD,0xA
DCB " read the battery voltage using the fuel gage IC.",0xD,0xA,0xA
DCB " NOTE: The PMIC voltage battery voltage reading will be slightly",0xD,0xA
DCB " lower than the FUEL gage reading due to voltage drops in",0xD,0xA
DCB " traces between the battery and the PMIC. The fuel gage IC is",0xD,0xA
DCB " is located right at the battery connector and therefore reads",0xD,0xA
DCB " a slightly higher voltage.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** LCDBL ***** LCD BACKLIGHT INTENSITY
;
480 cmp r2, #48 ; Help for LCDBL command?
bne %F490 ; Nope
ldr r0, =BBU_HELP_LBKL ; Message address
b %F9000 ; Print it
BBU_HELP_LBKL DCB 0xA,0xD
DCB " LCDBL - LCD backlight intensity level.",0xD,0xA,0xA
DCB " LCDBL level",0xD,0xA,0xA
DCB " level = Backlight intensity 0x00 to 0x7F (0 to 127).",0xD,0xA
DCB " 0 = off, 0x7F (128) = full intensity.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** MFPR ***** READ/WRITE MFPR for the indicated GPIO
;
490 cmp r2, #49 ; Help for MFPR command?
bne %F500 ; Nope
ldr r0, =BBU_HELP_MFPR ; Message address
b %F9000 ; Print it
BBU_HELP_MFPR DCB 0xA,0xD
DCB " MFPR - Read/Write MFPR register.",0xD,0xA,0xA
DCB " RMFP [/W=]gpio[,data]",0xD,0xA,0xA
DCB " /W= = Optional switch to indicate MFPR is to be written.",0xD,0xA
DCB " gpio = GPIO number of the MultiFunction Pin Register.",0xD,0xA
DCB " data = data to be deposited in the MFPR if the /W= switch is used.",0xD,0xA,0xA,0
ALIGN 4;
; ***** MMC_READ ***** READ A SECTOR FROM THE MMC/SD CARD INTERFACE
;
500 cmp r2, #50 ; Help for MMC_READ command?
bne %F510 ; Nope
ldr r0, =BBU_HELP_RMMC ; Message address
b %F9000 ; Print it
BBU_HELP_RMMC DCB 0xA,0xD
DCB " MMC_READ - Read a sector's worth of data from the MMC/SD card.",0xD,0xA,0xA
DCB " MMC_READ sector,destination_address",0xD,0xA,0xA
DCB " sector = Sector number to read from.",0xD,0xA
DCB " destination_address = Address where the data is to be copied to.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** EAR ***** ADJUST EAR SPEAKER VOLUME
;
510 cmp r2, #51 ; Help for EAR command?
bne %F520 ; Nope
ldr r0, =BBU_HELP_EAR ; Message address
b %F9000 ; Print it
BBU_HELP_EAR DCB 0xA,0xD
DCB " EAR - Adjust volume of audio data going to the ear speaker.",0xD,0xA,0xA
DCB " EAR volume",0xD,0xA,0xA
DCB " volume = 0->63 for mute to full volume.",0xD,0xA,0xA
DCB " NOTE: HI-FI data from the LEFT and RIGHT channels are mixed together",0xD,0xA
DCB " and sent to the ear speaker. Two-tone audio may be heard by specifying",0xD,0xA
DCB " different frequencies for the LEFT and RIGHT channels using the",0xD,0xA
DCB " TONE command. Only a sigle tone is available in PCM mode.",0xD,0xA,0xA,0
ALIGN 4
;
; ***** FMEM ***** FILL MEMORY COMMAND
;
520 cmp r2, #52 ; Help for FMEM command?
bne %F530 ; Nope
ldr r0, =BBU_HELP_FMEM ; Message address
b %F9000 ; Print it
BBU_HELP_FMEM DCB 0xA,0xD
DCB " FMEM - FILL SELECTED MEMORY WITH DATA.",0xD,0xA,0xA
DCB " FMEM address,data,length",0xD,0xA,0xA
DCB " address = Starting address where data is to be written.",0xD,0xA
DCB " data = Data to be written to the selected memory area.",0xD,0xA
DCB " length = The number of bytes to be written.",0xD,0xA,0xA,0
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -