openocd: fix doxygen parameters of functions
Add to doxygen comment the missing parameters. Remove from doxygen comment any non-existing parameter. Fix the parameter names in doxygen comment to match the one in the function prototype. Where the parameter name in the doxygen description seems better than the one in the code, change the code. Escape the character '<' to prevent doxygen to interpret it as an xml tag. Change-Id: I22da723339ac7d7a7a64ac4c1cc4336e2416c2cc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/6002 Tested-by: jenkins
This commit is contained in:
@@ -924,6 +924,7 @@ exit:
|
||||
* Finds an actionpoint that triggered last actionpoint event, as specified by
|
||||
* DEBUG.ASR.
|
||||
*
|
||||
* @param target
|
||||
* @param actionpoint Pointer to be set to last active actionpoint. Pointer
|
||||
* will be set to NULL if DEBUG.AH is 0.
|
||||
*/
|
||||
|
||||
@@ -237,7 +237,7 @@ static void arc_jtag_enque_register_rw(struct arc_jtag *jtag_info, uint32_t *add
|
||||
* @param type Type of registers to write: core or aux.
|
||||
* @param addr Array of registers numbers.
|
||||
* @param count Amount of registers in arrays.
|
||||
* @param values Array of register values.
|
||||
* @param buffer Array of register values.
|
||||
*/
|
||||
static int arc_jtag_write_registers(struct arc_jtag *jtag_info, uint32_t type,
|
||||
uint32_t *addr, uint32_t count, const uint32_t *buffer)
|
||||
@@ -272,7 +272,7 @@ static int arc_jtag_write_registers(struct arc_jtag *jtag_info, uint32_t type,
|
||||
* @param type Type of registers to read: core or aux.
|
||||
* @param addr Array of registers numbers.
|
||||
* @param count Amount of registers in arrays.
|
||||
* @param values Array of register values.
|
||||
* @param buffer Array of register values.
|
||||
*/
|
||||
static int arc_jtag_read_registers(struct arc_jtag *jtag_info, uint32_t type,
|
||||
uint32_t *addr, uint32_t count, uint32_t *buffer)
|
||||
@@ -337,7 +337,7 @@ int arc_jtag_write_core_reg_one(struct arc_jtag *jtag_info, uint32_t addr,
|
||||
* @param jtag_info
|
||||
* @param addr Array of registers numbers.
|
||||
* @param count Amount of registers in arrays.
|
||||
* @param values Array of register values.
|
||||
* @param buffer Array of register values.
|
||||
*/
|
||||
int arc_jtag_write_core_reg(struct arc_jtag *jtag_info, uint32_t *addr,
|
||||
uint32_t count, const uint32_t *buffer)
|
||||
@@ -361,7 +361,7 @@ int arc_jtag_read_core_reg_one(struct arc_jtag *jtag_info, uint32_t addr,
|
||||
* @param jtag_info
|
||||
* @param addr Array of core register numbers.
|
||||
* @param count Amount of registers in arrays.
|
||||
* @param values Array of register values.
|
||||
* @param buffer Array of register values.
|
||||
*/
|
||||
int arc_jtag_read_core_reg(struct arc_jtag *jtag_info, uint32_t *addr,
|
||||
uint32_t count, uint32_t *buffer)
|
||||
@@ -385,7 +385,7 @@ int arc_jtag_write_aux_reg_one(struct arc_jtag *jtag_info, uint32_t addr,
|
||||
* @param jtag_info
|
||||
* @param addr Array of registers numbers.
|
||||
* @param count Amount of registers in arrays.
|
||||
* @param values Array of register values.
|
||||
* @param buffer Array of register values.
|
||||
*/
|
||||
int arc_jtag_write_aux_reg(struct arc_jtag *jtag_info, uint32_t *addr,
|
||||
uint32_t count, const uint32_t *buffer)
|
||||
@@ -409,7 +409,7 @@ int arc_jtag_read_aux_reg_one(struct arc_jtag *jtag_info, uint32_t addr,
|
||||
* @param jtag_info
|
||||
* @param addr Array of AUX register numbers.
|
||||
* @param count Amount of registers in arrays.
|
||||
* @param values Array of register values.
|
||||
* @param buffer Array of register values.
|
||||
*/
|
||||
int arc_jtag_read_aux_reg(struct arc_jtag *jtag_info, uint32_t *addr,
|
||||
uint32_t count, uint32_t *buffer)
|
||||
|
||||
@@ -450,7 +450,7 @@ static int mem_ap_write(struct adiv5_ap *ap, const uint8_t *buffer, uint32_t siz
|
||||
* @param buffer The data buffer to receive the data. No particular alignment is assumed.
|
||||
* @param size Which access size to use, in bytes. 1, 2 or 4.
|
||||
* @param count The number of reads to do (in size units, not bytes).
|
||||
* @param address Address to be read; it must be readable by the currently selected MEM-AP.
|
||||
* @param adr Address to be read; it must be readable by the currently selected MEM-AP.
|
||||
* @param addrinc Whether the target address should be increased after each read or not. This
|
||||
* should normally be true, except when reading from e.g. a FIFO.
|
||||
* @return ERROR_OK on success, otherwise an error code.
|
||||
|
||||
@@ -1410,27 +1410,21 @@ static int dsp5680xx_write_32(struct target *t, uint32_t a, uint32_t c,
|
||||
* P: (program) memory or X: (dat) memory.
|
||||
*
|
||||
* @param target
|
||||
* @param address
|
||||
* @param a address
|
||||
* @param size Bytes (1), Half words (2), Words (4).
|
||||
* @param count In bytes.
|
||||
* @param buffer
|
||||
* @param b buffer
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
static int dsp5680xx_write(struct target *t, target_addr_t a, uint32_t s, uint32_t c,
|
||||
static int dsp5680xx_write(struct target *target, target_addr_t a, uint32_t size, uint32_t count,
|
||||
const uint8_t *b)
|
||||
{
|
||||
/* TODO Cannot write 32bit to odd address, will write 0x12345678 as 0x5678 0x0012 */
|
||||
struct target *target = t;
|
||||
|
||||
uint32_t address = a;
|
||||
|
||||
uint32_t count = c;
|
||||
|
||||
uint8_t const *buffer = b;
|
||||
|
||||
uint32_t size = s;
|
||||
|
||||
check_halt_and_debug(target);
|
||||
|
||||
int retval = 0;
|
||||
@@ -1479,12 +1473,12 @@ static int dsp5680xx_write_buffer(struct target *t, target_addr_t a, uint32_t si
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
static int dsp5680xx_read_buffer(struct target *t, target_addr_t a, uint32_t size,
|
||||
uint8_t *buf)
|
||||
static int dsp5680xx_read_buffer(struct target *target, target_addr_t address, uint32_t size,
|
||||
uint8_t *buffer)
|
||||
{
|
||||
check_halt_and_debug(t);
|
||||
check_halt_and_debug(target);
|
||||
/* The "/2" solves the byte/word addressing issue.*/
|
||||
return dsp5680xx_read(t, a, 2, size / 2, buf);
|
||||
return dsp5680xx_read(target, address, 2, size / 2, buffer);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1499,19 +1493,19 @@ static int dsp5680xx_read_buffer(struct target *t, target_addr_t a, uint32_t siz
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
static int dsp5680xx_checksum_memory(struct target *t, target_addr_t a, uint32_t s,
|
||||
static int dsp5680xx_checksum_memory(struct target *target, target_addr_t address, uint32_t size,
|
||||
uint32_t *checksum)
|
||||
{
|
||||
return ERROR_FAIL;
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates a signature over @a word_count words in the data from @a buff16.
|
||||
* Calculates a signature over @a word_count words in the data from @a buff8.
|
||||
* The algorithm used is the same the FM uses, so the @a return may be used to compare
|
||||
* with the one generated by the FM module, and check if flashing was successful.
|
||||
* This algorithm is based on the perl script available from the Freescale website at FAQ 25630.
|
||||
*
|
||||
* @param buff16
|
||||
* @param buff8
|
||||
* @param word_count
|
||||
*
|
||||
* @return
|
||||
@@ -1609,7 +1603,7 @@ int dsp5680xx_f_protect_check(struct target *target, uint16_t *protected)
|
||||
* Some commands use the parameters @a address and @a data, others ignore them.
|
||||
*
|
||||
* @param target
|
||||
* @param command Command to execute.
|
||||
* @param c Command to execute.
|
||||
* @param address Command parameter.
|
||||
* @param data Command parameter.
|
||||
* @param hfm_ustat FM status register.
|
||||
@@ -1617,21 +1611,10 @@ int dsp5680xx_f_protect_check(struct target *target, uint16_t *protected)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
static int dsp5680xx_f_ex(struct target *t, uint16_t c, uint32_t a, uint32_t d,
|
||||
uint16_t *h, int p)
|
||||
static int dsp5680xx_f_ex(struct target *target, uint16_t c, uint32_t address, uint32_t data,
|
||||
uint16_t *hfm_ustat, int pmem)
|
||||
{
|
||||
struct target *target = t;
|
||||
|
||||
uint32_t command = c;
|
||||
|
||||
uint32_t address = a;
|
||||
|
||||
uint32_t data = d;
|
||||
|
||||
uint16_t *hfm_ustat = h;
|
||||
|
||||
int pmem = p;
|
||||
|
||||
int retval;
|
||||
|
||||
retval = core_load_TX_RX_high_addr_to_r0(target);
|
||||
@@ -1799,13 +1782,9 @@ static int set_fm_ck_div(struct target *target)
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
static int dsp5680xx_f_signature(struct target *t, uint32_t a, uint32_t words,
|
||||
static int dsp5680xx_f_signature(struct target *target, uint32_t address, uint32_t words,
|
||||
uint16_t *signature)
|
||||
{
|
||||
struct target *target = t;
|
||||
|
||||
uint32_t address = a;
|
||||
|
||||
int retval;
|
||||
|
||||
uint16_t hfm_ustat;
|
||||
|
||||
@@ -547,13 +547,15 @@ static dmi_status_t dmi_scan(struct target *target, uint32_t *address_in,
|
||||
}
|
||||
|
||||
/**
|
||||
* @param target
|
||||
* @param data_in The data we received from the target.
|
||||
* @param dmi_op The operation to perform (read/write/nop).
|
||||
* @param dmi_busy_encountered
|
||||
* If non-NULL, will be updated to reflect whether DMI busy was
|
||||
* encountered while executing this operation or not.
|
||||
* @param dmi_op The operation to perform (read/write/nop).
|
||||
* @param address The address argument to that operation.
|
||||
* @param data_out The data to send to the target.
|
||||
* @param timeout_sec
|
||||
* @param exec When true, this scan will execute something, so extra RTI
|
||||
* cycles may be added.
|
||||
* @param ensure_success
|
||||
|
||||
@@ -89,6 +89,8 @@ extern int gdb_actual_connections;
|
||||
* Initialize common semihosting support.
|
||||
*
|
||||
* @param target Pointer to the target to initialize.
|
||||
* @param setup
|
||||
* @param post_result
|
||||
* @return An error status if there is a problem during initialization.
|
||||
*/
|
||||
int semihosting_common_init(struct target *target, void *setup,
|
||||
|
||||
@@ -803,6 +803,13 @@ static int target_soft_reset_halt(struct target *target)
|
||||
* algorithm.
|
||||
*
|
||||
* @param target used to run the algorithm
|
||||
* @param num_mem_params
|
||||
* @param mem_params
|
||||
* @param num_reg_params
|
||||
* @param reg_param
|
||||
* @param entry_point
|
||||
* @param exit_point
|
||||
* @param timeout_ms
|
||||
* @param arch_info target-specific description of the algorithm.
|
||||
*/
|
||||
int target_run_algorithm(struct target *target,
|
||||
@@ -838,6 +845,12 @@ done:
|
||||
* Executes a target-specific native code algorithm and leaves it running.
|
||||
*
|
||||
* @param target used to run the algorithm
|
||||
* @param num_mem_params
|
||||
* @param mem_params
|
||||
* @param num_reg_params
|
||||
* @param reg_params
|
||||
* @param entry_point
|
||||
* @param exit_point
|
||||
* @param arch_info target-specific description of the algorithm.
|
||||
*/
|
||||
int target_start_algorithm(struct target *target,
|
||||
@@ -876,6 +889,12 @@ done:
|
||||
* Waits for an algorithm started with target_start_algorithm() to complete.
|
||||
*
|
||||
* @param target used to run the algorithm
|
||||
* @param num_mem_params
|
||||
* @param mem_params
|
||||
* @param num_reg_params
|
||||
* @param reg_params
|
||||
* @param exit_point
|
||||
* @param timeout_ms
|
||||
* @param arch_info target-specific description of the algorithm.
|
||||
*/
|
||||
int target_wait_algorithm(struct target *target,
|
||||
@@ -947,6 +966,7 @@ done:
|
||||
* @param entry_point address on the target to execute to start the algorithm
|
||||
* @param exit_point address at which to set a breakpoint to catch the
|
||||
* end of the algorithm; can be 0 if target triggers a breakpoint itself
|
||||
* @param arch_info
|
||||
*/
|
||||
|
||||
int target_run_flash_async_algorithm(struct target *target,
|
||||
|
||||
Reference in New Issue
Block a user