Steven Cooreman
476dc6e46a
Fix for PWM output found by testing against FPGA shield
...
Two issues:
* Downcasting too early
* Potential for a uint32_t overflow in an intermediate calculation
Passing test requires #11005 to be merged.
2019-07-09 22:38:53 +01:00
Russ Butler
be492fe07a
Add HAL API for pwmout pinmap
...
Add the function pwm_pinmap to all targets.
2019-02-08 09:10:19 -06:00
Michael Kaplan
dd2e93fbd3
Fix EFM32 pwmout hal function pwmout_period
...
In pwmout_period() is a check for changed values, which is not working because of a wrongly used bitmask. This is fixed now.
2018-09-05 11:17:28 +02:00
Bartek Szatkowski
4cb47df40a
Add system_reset() function to Mbed OS
2018-02-28 16:42:34 +00:00
Steven Cooreman
813216306c
Remove custom Silicon Labs sleep management
...
Standardize on the mbed sleep manager by removing the sleepmodes API, and statically redirecting hal_sleep to EM1 and hal_deepsleep to EM2.
2017-12-01 12:13:06 +01:00
Steven Cooreman
e900d5a04d
Squash warnings by defining 'NC' as unsigned type
2017-11-24 16:14:56 +01:00
Seppe Stas
d396306a10
EFM32: Fixed `pwmout_all_inactive` being inversed
...
If one of the CC channel pins is enabled, `pwmout_all_inactive` it
means a channel is active so it should return `true`.
This commit also contains some cleanup in `pwm_init`.
2017-04-10 11:59:44 +02:00
Steven Cooreman
1f3003fb22
[EFM32] Small fixes
...
* Use mbed_error
* Include cmsis headers by default when grabbing device.h
* Get rid of enum to uint casting in pinmap
2016-10-24 18:24:59 +02:00
Christopher Haster
0bad622a16
restructure - Moved targets out to top level
...
hal/targets -> targets
hal/targets.json -> targets/targets.json
2016-09-30 19:18:09 -05:00