zephyr: replace zephyr integer types with C99 types
git grep -l 'u\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/u\(8\|16\|32\|64\)_t/uint\1_t/g" git grep -l 's\(8\|16\|32\|64\)_t' | \ xargs sed -i "s/s\(8\|16\|32\|64\)_t/int\1_t/g" Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ee6fa31af6
commit
a1b77fd589
2364 changed files with 32505 additions and 32505 deletions
|
@ -50,10 +50,10 @@ enum cfb_font_caps {
|
|||
struct cfb_font {
|
||||
const void *data;
|
||||
enum cfb_font_caps caps;
|
||||
u8_t width;
|
||||
u8_t height;
|
||||
u8_t first_char;
|
||||
u8_t last_char;
|
||||
uint8_t width;
|
||||
uint8_t height;
|
||||
uint8_t first_char;
|
||||
uint8_t last_char;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -88,7 +88,7 @@ struct cfb_font {
|
|||
*
|
||||
* @return 0 on success, negative value otherwise
|
||||
*/
|
||||
int cfb_print(struct device *dev, char *str, u16_t x, u16_t y);
|
||||
int cfb_print(struct device *dev, char *str, uint16_t x, uint16_t y);
|
||||
|
||||
/**
|
||||
* @brief Clear framebuffer.
|
||||
|
@ -137,7 +137,7 @@ int cfb_get_display_parameter(struct device *dev, enum cfb_display_param);
|
|||
*
|
||||
* @return 0 on success, negative value otherwise
|
||||
*/
|
||||
int cfb_framebuffer_set_font(struct device *dev, u8_t idx);
|
||||
int cfb_framebuffer_set_font(struct device *dev, uint8_t idx);
|
||||
|
||||
/**
|
||||
* @brief Get font size.
|
||||
|
@ -149,7 +149,7 @@ int cfb_framebuffer_set_font(struct device *dev, u8_t idx);
|
|||
*
|
||||
* @return 0 on success, negative value otherwise
|
||||
*/
|
||||
int cfb_get_font_size(struct device *dev, u8_t idx, u8_t *width, u8_t *height);
|
||||
int cfb_get_font_size(struct device *dev, uint8_t idx, uint8_t *width, uint8_t *height);
|
||||
|
||||
/**
|
||||
* @brief Get number of fonts.
|
||||
|
|
|
@ -13,9 +13,9 @@ extern const struct display_driver_api framebuf_display_api;
|
|||
|
||||
struct framebuf_dev_data {
|
||||
void *buffer;
|
||||
u32_t pitch;
|
||||
u16_t width;
|
||||
u16_t height;
|
||||
uint32_t pitch;
|
||||
uint16_t width;
|
||||
uint16_t height;
|
||||
};
|
||||
|
||||
#define FRAMEBUF_DATA(dev) ((struct framebuf_dev_data *) ((dev)->driver_data))
|
||||
|
|
|
@ -34,7 +34,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, u32_t size);
|
||||
void glcd_print(struct device *port, char *data, uint32_t size);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -44,7 +44,7 @@ void glcd_print(struct device *port, char *data, u32_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, u8_t col, u8_t row);
|
||||
void glcd_cursor_pos_set(struct device *port, uint8_t col, uint8_t row);
|
||||
|
||||
/**
|
||||
* @brief Clear the current display
|
||||
|
@ -71,7 +71,7 @@ void glcd_clear(struct device *port);
|
|||
* @param opt An 8bit bitmask of GLCD_DS_* options.
|
||||
*
|
||||
*/
|
||||
void glcd_display_state_set(struct device *port, u8_t opt);
|
||||
void glcd_display_state_set(struct device *port, uint8_t opt);
|
||||
|
||||
/**
|
||||
* @brief return the display feature set associated with the device
|
||||
|
@ -80,7 +80,7 @@ void glcd_display_state_set(struct device *port, u8_t opt);
|
|||
*
|
||||
* @return the display feature set associated with the device.
|
||||
*/
|
||||
u8_t glcd_display_state_get(struct device *port);
|
||||
uint8_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)
|
||||
|
@ -97,7 +97,7 @@ u8_t glcd_display_state_get(struct device *port);
|
|||
* @param opt A bitmask of GLCD_IS_* options
|
||||
*
|
||||
*/
|
||||
void glcd_input_state_set(struct device *port, u8_t opt);
|
||||
void glcd_input_state_set(struct device *port, uint8_t opt);
|
||||
|
||||
/**
|
||||
* @brief return the input set associated with the device
|
||||
|
@ -106,7 +106,7 @@ void glcd_input_state_set(struct device *port, u8_t opt);
|
|||
*
|
||||
* @return the input set associated with the device.
|
||||
*/
|
||||
u8_t glcd_input_state_get(struct device *port);
|
||||
uint8_t glcd_input_state_get(struct device *port);
|
||||
|
||||
/* Defines for the LCD_FUNCTION_SET */
|
||||
#define GLCD_FS_8BIT_MODE (1 << 4)
|
||||
|
@ -125,7 +125,7 @@ u8_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, u8_t opt);
|
||||
void glcd_function_set(struct device *port, uint8_t opt);
|
||||
|
||||
/**
|
||||
* @brief return the function set associated with the device
|
||||
|
@ -134,7 +134,7 @@ void glcd_function_set(struct device *port, u8_t opt);
|
|||
*
|
||||
* @return the function features set associated with the device.
|
||||
*/
|
||||
u8_t glcd_function_get(struct device *port);
|
||||
uint8_t glcd_function_get(struct device *port);
|
||||
|
||||
|
||||
/* Available color selections */
|
||||
|
@ -147,7 +147,7 @@ u8_t glcd_function_get(struct device *port);
|
|||
* @param port Pointer to device structure for driver instance.
|
||||
* @param color One of the predefined color options
|
||||
*/
|
||||
void glcd_color_select(struct device *port, u8_t color);
|
||||
void glcd_color_select(struct device *port, uint8_t color);
|
||||
|
||||
|
||||
/**
|
||||
|
@ -158,7 +158,7 @@ void glcd_color_select(struct device *port, u8_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, u8_t r, u8_t g, u8_t b);
|
||||
void glcd_color_set(struct device *port, uint8_t r, uint8_t g, uint8_t b);
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
@ -37,13 +37,13 @@ extern "C" {
|
|||
struct mb_image {
|
||||
union {
|
||||
struct {
|
||||
u8_t c1:1,
|
||||
uint8_t c1:1,
|
||||
c2:1,
|
||||
c3:1,
|
||||
c4:1,
|
||||
c5:1;
|
||||
} r[5];
|
||||
u8_t row[5];
|
||||
uint8_t row[5];
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -129,8 +129,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, u32_t mode, s32_t duration,
|
||||
const struct mb_image *img, u8_t img_count);
|
||||
void mb_display_image(struct mb_display *disp, uint32_t mode, int32_t duration,
|
||||
const struct mb_image *img, uint8_t img_count);
|
||||
|
||||
/**
|
||||
* @brief Print a string of characters on the BBC micro:bit LED display.
|
||||
|
@ -150,7 +150,7 @@ void mb_display_image(struct mb_display *disp, u32_t mode, s32_t duration,
|
|||
* @param ... Optional list of format arguments.
|
||||
*/
|
||||
__printf_like(4, 5) void mb_display_print(struct mb_display *disp,
|
||||
u32_t mode, s32_t duration,
|
||||
uint32_t mode, int32_t duration,
|
||||
const char *fmt, ...);
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue