added prescaler for 16 bit pwm in LPC1347 target
Fork of mbed-dev by
Diff: targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c
- Revision:
- 66:fdb3f9f9a72f
- Parent:
- 0:9b334a45a8ff
- Child:
- 144:ef7eb2e8f9f7
--- a/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c Tue Feb 16 16:00:10 2016 +0000 +++ b/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c Thu Feb 18 09:45:10 2016 +0000 @@ -85,7 +85,11 @@ uint64_t us_val64; int check_irq_masked; +#if defined ( __ICCARM__) + check_irq_masked = __disable_irq_iar(); +#else check_irq_masked = __disable_irq(); +#endif /* __ICCARM__ */ cnt_val64 = ticker_read_counter64(); us_val64 = (cnt_val64 / count_clock);