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:
Kumar Gala 2017-04-21 10:55:34 -05:00
commit cc334c7273
132 changed files with 1420 additions and 1429 deletions

View file

@ -20,7 +20,7 @@ extern "C" {
* @param data the ASCII text to display
* @param size the length of the text in bytes
*/
void glcd_print(struct device *port, char *data, uint32_t size);
void glcd_print(struct device *port, char *data, u32_t size);
/**
@ -30,7 +30,7 @@ void glcd_print(struct device *port, char *data, uint32_t size);
* @param col the column for the cursor to be moved to (0-15)
* @param row the row it should be moved to (0 or 1)
*/
void glcd_cursor_pos_set(struct device *port, uint8_t col, uint8_t row);
void glcd_cursor_pos_set(struct device *port, u8_t col, u8_t row);
/**
* @brief Clear the current display
@ -57,7 +57,7 @@ void glcd_clear(struct device *port);
* @param opt An 8bit bitmask of GLCD_DS_* options.
*
*/
void glcd_display_state_set(struct device *port, uint8_t opt);
void glcd_display_state_set(struct device *port, u8_t opt);
/**
* @brief return the display feature set associated with the device
@ -66,7 +66,7 @@ void glcd_display_state_set(struct device *port, uint8_t opt);
*
* @return the display feature set associated with the device.
*/
uint8_t glcd_display_state_get(struct device *port);
u8_t glcd_display_state_get(struct device *port);
/* Defines for the GLCD_CMD_INPUT_SET to change text direction */
#define GLCD_IS_SHIFT_INCREMENT (1 << 1)
@ -83,7 +83,7 @@ uint8_t glcd_display_state_get(struct device *port);
* @param opt A bitmask of GLCD_IS_* options
*
*/
void glcd_input_state_set(struct device *port, uint8_t opt);
void glcd_input_state_set(struct device *port, u8_t opt);
/**
* @brief return the input set associated with the device
@ -92,7 +92,7 @@ void glcd_input_state_set(struct device *port, uint8_t opt);
*
* @return the input set associated with the device.
*/
uint8_t glcd_input_state_get(struct device *port);
u8_t glcd_input_state_get(struct device *port);
/* Defines for the LCD_FUNCTION_SET */
#define GLCD_FS_8BIT_MODE (1 << 4)
@ -111,7 +111,7 @@ uint8_t glcd_input_state_get(struct device *port);
* of the display as per needed. Controlling things like the number of rows,
* dot size, and text display quality.
*/
void glcd_function_set(struct device *port, uint8_t opt);
void glcd_function_set(struct device *port, u8_t opt);
/**
* @brief return the function set associated with the device
@ -120,7 +120,7 @@ void glcd_function_set(struct device *port, uint8_t opt);
*
* @return the function features set associated with the device.
*/
uint8_t glcd_function_get(struct device *port);
u8_t glcd_function_get(struct device *port);
/* Available color selections */
@ -133,7 +133,7 @@ uint8_t glcd_function_get(struct device *port);
* @param port Pointer to device structure for driver instance.
* @param color One of the pre-defined color options
*/
void glcd_color_select(struct device *port, uint8_t color);
void glcd_color_select(struct device *port, u8_t color);
/**
@ -144,7 +144,7 @@ void glcd_color_select(struct device *port, uint8_t color);
* @param g A numeric value for the green color (max is 255)
* @param b A numeric value for the blue color (max is 255)
*/
void glcd_color_set(struct device *port, uint8_t r, uint8_t g, uint8_t b);
void glcd_color_set(struct device *port, u8_t r, u8_t g, u8_t b);
/**

View file

@ -36,13 +36,13 @@ extern "C" {
struct mb_image {
union {
struct {
uint8_t c1:1,
u8_t c1:1,
c2:1,
c3:1,
c4:1,
c5:1;
} r[5];
uint8_t row[5];
u8_t row[5];
};
};
@ -127,8 +127,8 @@ struct mb_display *mb_display_get(void);
* @param img Array of image bitmaps (struct mb_image objects).
* @param img_count Number of images in 'img' array.
*/
void mb_display_image(struct mb_display *disp, uint32_t mode, int32_t duration,
const struct mb_image *img, uint8_t img_count);
void mb_display_image(struct mb_display *disp, u32_t mode, s32_t duration,
const struct mb_image *img, u8_t img_count);
/**
* @brief Print a string of characters on the BBC micro:bit LED display.
@ -147,7 +147,7 @@ void mb_display_image(struct mb_display *disp, uint32_t mode, int32_t duration,
* @param ... Optional list of format arguments.
*/
__printf_like(4, 5) void mb_display_print(struct mb_display *disp,
uint32_t mode, int32_t duration,
u32_t mode, s32_t duration,
const char *fmt, ...);
/**