Convert remaining code to using newly introduced integer sized types
Convert code to use u{8,16,32,64}_t and s{8,16,32,64}_t instead of C99 integer types. This handles the remaining includes and kernel, plus touching up various points that we skipped because of include dependancies. We also convert the PRI printf formatters in the arch code over to normal formatters. Jira: ZEP-2051 Change-Id: Iecbb12601a3ee4ea936fd7ddea37788a645b08b0 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d9a1e367b2
commit
cc334c7273
132 changed files with 1420 additions and 1429 deletions
|
@ -68,7 +68,7 @@ extern int sys_clock_hw_cycles_per_tick;
|
|||
|
||||
/* SYS_CLOCK_HW_CYCLES_TO_NS64 converts CPU clock cycles to nanoseconds */
|
||||
#define SYS_CLOCK_HW_CYCLES_TO_NS64(X) \
|
||||
(((uint64_t)(X) * sys_clock_us_per_tick * NSEC_PER_USEC) / \
|
||||
(((u64_t)(X) * sys_clock_us_per_tick * NSEC_PER_USEC) / \
|
||||
sys_clock_hw_cycles_per_tick)
|
||||
|
||||
/*
|
||||
|
@ -76,7 +76,7 @@ extern int sys_clock_hw_cycles_per_tick;
|
|||
* and calculates the average cycle time
|
||||
*/
|
||||
#define SYS_CLOCK_HW_CYCLES_TO_NS_AVG(X, NCYCLES) \
|
||||
(uint32_t)(SYS_CLOCK_HW_CYCLES_TO_NS64(X) / NCYCLES)
|
||||
(u32_t)(SYS_CLOCK_HW_CYCLES_TO_NS64(X) / NCYCLES)
|
||||
|
||||
/**
|
||||
* @defgroup clock_apis Kernel Clock APIs
|
||||
|
@ -94,13 +94,13 @@ extern int sys_clock_hw_cycles_per_tick;
|
|||
*
|
||||
* @return Duration in nanoseconds.
|
||||
*/
|
||||
#define SYS_CLOCK_HW_CYCLES_TO_NS(X) (uint32_t)(SYS_CLOCK_HW_CYCLES_TO_NS64(X))
|
||||
#define SYS_CLOCK_HW_CYCLES_TO_NS(X) (u32_t)(SYS_CLOCK_HW_CYCLES_TO_NS64(X))
|
||||
|
||||
/**
|
||||
* @} end defgroup clock_apis
|
||||
*/
|
||||
|
||||
extern int64_t _sys_clock_tick_count;
|
||||
extern s64_t _sys_clock_tick_count;
|
||||
|
||||
/*
|
||||
* Number of ticks for x seconds. NOTE: With MSEC() or USEC(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue