summaryrefslogtreecommitdiff
path: root/components/drivers
diff options
context:
space:
mode:
authorBernardXiong <[email protected]>2021-09-11 18:09:22 +0800
committerBernardXiong <[email protected]>2021-09-11 18:09:22 +0800
commit0b13409c16326f142597570b50bdea8e138da606 (patch)
tree94b1a099edaf910a332dac3e988f22ed85613ba0 /components/drivers
parent3dc820b3717637c4b2a54f12ab09f64037e97e9f (diff)
[BSP] fix compiling issue with libc
Diffstat (limited to 'components/drivers')
-rw-r--r--components/drivers/include/drivers/pm.h1
-rw-r--r--components/drivers/phy/phy.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/components/drivers/include/drivers/pm.h b/components/drivers/include/drivers/pm.h
index 51bff54ebb..d38c0a4e2a 100644
--- a/components/drivers/include/drivers/pm.h
+++ b/components/drivers/include/drivers/pm.h
@@ -15,6 +15,7 @@
#ifndef __PM_H__
#define __PM_H__
+#include <stdint.h>
#include <rtthread.h>
#ifndef PM_HAS_CUSTOM_CONFIG
diff --git a/components/drivers/phy/phy.c b/components/drivers/phy/phy.c
index 6d408ce612..87152a306e 100644
--- a/components/drivers/phy/phy.c
+++ b/components/drivers/phy/phy.c
@@ -8,7 +8,7 @@
* Date Author Notes
* 2020-09-27 wangqiang first version
*/
-
+#include <stddef.h>
#include <rthw.h>
#include <rtthread.h>
#include <rtdevice.h>