summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaureen Helm <maureen.helm@nxp.com>2020-09-12 14:46:05 -0500
committerDamien George <damien@micropython.org>2020-09-30 23:21:53 +1000
commitce49be43b1ac7582edcfec20c56928781a512a7d (patch)
treec64bfde00028d3a3f9658463a4fbe1e3abbbdf22
parent319437d4bd7c97ab18275d3eaf1bc190554f9df7 (diff)
zephyr: Replace zephyr integer types with C99 types.
Zephyr v2.4.0 stopped using custom integer types in favor of C99 types instead. Signed-off-by: Maureen Helm <maureen.helm@nxp.com>
-rw-r--r--ports/zephyr/machine_i2c.c2
-rw-r--r--ports/zephyr/zephyr_storage.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/zephyr/machine_i2c.c b/ports/zephyr/machine_i2c.c
index 4b29f41d1..576cb1977 100644
--- a/ports/zephyr/machine_i2c.c
+++ b/ports/zephyr/machine_i2c.c
@@ -97,7 +97,7 @@ STATIC int machine_hard_i2c_transfer_single(mp_obj_base_t *self_in, uint16_t add
struct i2c_msg msg;
int ret;
- msg.buf = (u8_t *)buf;
+ msg.buf = (uint8_t *)buf;
msg.len = len;
msg.flags = 0;
diff --git a/ports/zephyr/zephyr_storage.c b/ports/zephyr/zephyr_storage.c
index 83f19a8fe..1c25b3277 100644
--- a/ports/zephyr/zephyr_storage.c
+++ b/ports/zephyr/zephyr_storage.c
@@ -146,7 +146,7 @@ typedef struct _zephyr_flash_area_obj_t {
const struct flash_area *area;
int block_size;
int block_count;
- u8_t id;
+ uint8_t id;
} zephyr_flash_area_obj_t;
STATIC void zephyr_flash_area_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind) {