From 7b0ff75f5c56845b23ad8a7852e5b789b7848560 Mon Sep 17 00:00:00 2001 From: Tony Wu Date: Tue, 17 Apr 2018 10:41:24 +0800 Subject: [PATCH] rtl8195am - fix pwmout_api.c warnings Fix the following warning: [Warning] pwmout_api.c@65,29: comparison between signed and unsigned integer expressions [-Wsign-compare] Signed-off-by: Tony Wu --- .../TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/pwmout_api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/pwmout_api.c b/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/pwmout_api.c index a73b3418ef..8494a40cd0 100644 --- a/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/pwmout_api.c +++ b/targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/pwmout_api.c @@ -53,7 +53,7 @@ static const PinMap PinMap_PWM[] = { void pwmout_init(pwmout_t* obj, PinName pin) { - uint32_t peripheral; + int peripheral; u32 pwm_idx; u32 pin_sel;