projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dsp5680xx - error codes
[fw/openocd]
/
src
/
target
/
algorithm.c
diff --git
a/src/target/algorithm.c
b/src/target/algorithm.c
index c4450ac12cb7a1774bd5678ef74cd3e2e17cdbf3..57383aea74ec2448791ae7cc9689206291918190 100644
(file)
--- a/
src/target/algorithm.c
+++ b/
src/target/algorithm.c
@@
-22,15
+22,10
@@
#endif
#include "algorithm.h"
#endif
#include "algorithm.h"
+#include <helper/binarybuffer.h>
-#include "log.h"
-#include "configuration.h"
-#include "binarybuffer.h"
-#include <stdlib.h>
-
-
-void init_mem_param(mem_param_t *param, u32 address, u32 size, enum param_direction direction)
+void init_mem_param(struct mem_param *param, uint32_t address, uint32_t size, enum param_direction direction)
{
param->address = address;
param->size = size;
{
param->address = address;
param->size = size;
@@
-38,21
+33,21
@@
void init_mem_param(mem_param_t *param, u32 address, u32 size, enum param_direct
param->direction = direction;
}
param->direction = direction;
}
-void destroy_mem_param(
mem_param_t
*param)
+void destroy_mem_param(
struct mem_param
*param)
{
free(param->value);
param->value = NULL;
}
{
free(param->value);
param->value = NULL;
}
-void init_reg_param(
reg_param_t *param, char *reg_name, u32
size, enum param_direction direction)
+void init_reg_param(
struct reg_param *param, char *reg_name, uint32_t
size, enum param_direction direction)
{
param->reg_name = reg_name;
param->size = size;
{
param->reg_name = reg_name;
param->size = size;
- param->value = malloc(
CEIL
(size, 8));
+ param->value = malloc(
DIV_ROUND_UP
(size, 8));
param->direction = direction;
}
param->direction = direction;
}
-void destroy_reg_param(
reg_param_t
*param)
+void destroy_reg_param(
struct reg_param
*param)
{
free(param->value);
param->value = NULL;
{
free(param->value);
param->value = NULL;