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
|
@ -31,11 +31,11 @@ typedef void (*counter_callback_t)(struct device *dev, void *user_data);
|
|||
|
||||
typedef int (*counter_api_start)(struct device *dev);
|
||||
typedef int (*counter_api_stop)(struct device *dev);
|
||||
typedef uint32_t (*counter_api_read)(struct device *dev);
|
||||
typedef u32_t (*counter_api_read)(struct device *dev);
|
||||
typedef int (*counter_api_set_alarm)(struct device *dev,
|
||||
counter_callback_t callback,
|
||||
uint32_t count, void *user_data);
|
||||
typedef uint32_t (*counter_api_get_pending_int)(struct device *dev);
|
||||
u32_t count, void *user_data);
|
||||
typedef u32_t (*counter_api_get_pending_int)(struct device *dev);
|
||||
|
||||
struct counter_driver_api {
|
||||
counter_api_start start;
|
||||
|
@ -85,7 +85,7 @@ static inline int counter_stop(struct device *dev)
|
|||
*
|
||||
* @return 32-bit value
|
||||
*/
|
||||
static inline uint32_t counter_read(struct device *dev)
|
||||
static inline u32_t counter_read(struct device *dev)
|
||||
{
|
||||
const struct counter_driver_api *api = dev->driver_api;
|
||||
|
||||
|
@ -108,7 +108,7 @@ static inline uint32_t counter_read(struct device *dev)
|
|||
*/
|
||||
static inline int counter_set_alarm(struct device *dev,
|
||||
counter_callback_t callback,
|
||||
uint32_t count, void *user_data)
|
||||
u32_t count, void *user_data)
|
||||
{
|
||||
const struct counter_driver_api *api = dev->driver_api;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue