You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by ut...@apache.org on 2020/06/04 12:37:40 UTC
[mynewt-mcumgr] branch master updated: zephyr: Convert from Zephyr
to C99 types
This is an automated email from the ASF dual-hosted git repository.
utzig pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-mcumgr.git
The following commit(s) were added to refs/heads/master by this push:
new 7658d09 zephyr: Convert from Zephyr to C99 types
7658d09 is described below
commit 7658d09f1c6ee2b778390854a9d90d74b39e9fca
Author: Kumar Gala <ku...@linaro.org>
AuthorDate: Wed May 27 12:56:33 2020 -0500
zephyr: Convert from Zephyr to C99 types
Convert to use C99 types as we intend to deprecate the zephyr
specific integer types.
Signed-off-by: Kumar Gala <ku...@linaro.org>
---
cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c | 6 +++---
samples/smp_svr/zephyr/src/main.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
index eb5647a..c14727b 100644
--- a/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
+++ b/cmd/img_mgmt/port/zephyr/src/zephyr_img_mgmt.c
@@ -40,7 +40,7 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME);
* Determines if the specified area of flash is completely unwritten.
*/
static int
-zephyr_img_mgmt_flash_check_empty(u8_t fa_id, bool *out_empty)
+zephyr_img_mgmt_flash_check_empty(uint8_t fa_id, bool *out_empty)
{
const struct flash_area *fa;
uint32_t data[16];
@@ -88,10 +88,10 @@ zephyr_img_mgmt_flash_check_empty(u8_t fa_id, bool *out_empty)
/**
* Get flash_area ID for a image slot number.
*/
-static u8_t
+static uint8_t
zephyr_img_mgmt_flash_area_id(int slot)
{
- u8_t fa_id;
+ uint8_t fa_id;
switch (slot) {
case 0:
diff --git a/samples/smp_svr/zephyr/src/main.c b/samples/smp_svr/zephyr/src/main.c
index 066ec9b..9198c25 100644
--- a/samples/smp_svr/zephyr/src/main.c
+++ b/samples/smp_svr/zephyr/src/main.c
@@ -95,7 +95,7 @@ static void advertise(struct k_work *work)
printk("Advertising successfully started\n");
}
-static void connected(struct bt_conn *conn, u8_t err)
+static void connected(struct bt_conn *conn, uint8_t err)
{
if (err) {
printk("Connection failed (err 0x%02x)\n", err);
@@ -104,7 +104,7 @@ static void connected(struct bt_conn *conn, u8_t err)
}
}
-static void disconnected(struct bt_conn *conn, u8_t reason)
+static void disconnected(struct bt_conn *conn, uint8_t reason)
{
printk("Disconnected (reason 0x%02x)\n", reason);
k_work_submit(&advertise_work);