projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
flash: add error message if image is too big for flash
[fw/openocd]
/
src
/
helper
/
types.h
diff --git
a/src/helper/types.h
b/src/helper/types.h
index 96a923b81fee6a0f858575a79b8d5e7b145bbe35..1010dcd967b6365f198ce9738ac431b6fcc11b8d 100644
(file)
--- a/
src/helper/types.h
+++ b/
src/helper/types.h
@@
-85,8
+85,8
@@
typedef bool _Bool;
/**
* Rounds @c m up to the nearest multiple of @c n using division.
/**
* Rounds @c m up to the nearest multiple of @c n using division.
- * @param
s
m The value to round up to @c n.
- * @param
s
n Round @c m up to a multiple of this number.
+ * @param m The value to round up to @c n.
+ * @param n Round @c m up to a multiple of this number.
* @returns The rounded integer value.
*/
#define DIV_ROUND_UP(m, n) (((m) + (n) - 1) / (n))
* @returns The rounded integer value.
*/
#define DIV_ROUND_UP(m, n) (((m) + (n) - 1) / (n))
@@
-172,6
+172,7
@@
static inline void h_u16_to_be(uint8_t* buf, int val)
#define SCNx32 "x"
#define PRIi32 "i"
#define PRIu32 "u"
#define SCNx32 "x"
#define PRIi32 "i"
#define PRIu32 "u"
+#define PRId8 PRId32
typedef CYG_ADDRWORD intptr_t;
typedef int64_t intmax_t;
typedef CYG_ADDRWORD intptr_t;
typedef int64_t intmax_t;