Skip to content

Commit 0466e90

Browse files
committed
Merge pull request #163 from bcostm/master
Add uvision exporters for NUCLEO_L152RE/F030R8/F401RE
2 parents b213992 + 156be94 commit 0466e90

File tree

9 files changed

+1353
-313
lines changed

9 files changed

+1353
-313
lines changed

libraries/mbed/targets/cmsis/TARGET_STM/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/lib_startup_stm32f030.s

Lines changed: 0 additions & 244 deletions
This file was deleted.

libraries/mbed/targets/hal/TARGET_STM/TARGET_NUCLEO_F401RE/pwmout_api.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ void pwmout_write(pwmout_t* obj, float value) {
7979

8080
TimHandle.Instance = (TIM_TypeDef *)(obj->pwm);
8181

82-
if (value < 0.0) {
82+
if (value < (float)0.0) {
8383
value = 0.0;
84-
} else if (value > 1.0) {
84+
} else if (value > (float)1.0) {
8585
value = 1.0;
8686
}
8787

@@ -108,7 +108,7 @@ float pwmout_read(pwmout_t* obj) {
108108
if (obj->period > 0) {
109109
value = (float)(obj->pulse) / (float)(obj->period);
110110
}
111-
return ((value > 1.0) ? (1.0) : (value));
111+
return ((value > (float)1.0) ? (float)(1.0) : (value));
112112
}
113113

114114
void pwmout_period(pwmout_t* obj, float seconds) {

0 commit comments

Comments
 (0)