hw: remove use of float in exynos timer (fix #713)

This commit is contained in:
Stefan Kalkowski 2014-02-19 12:06:53 +01:00 committed by Christian Helmuth
parent 83266db30b
commit 28bb1f8fd7
1 changed files with 2 additions and 2 deletions

View File

@ -91,7 +91,7 @@ namespace Exynos_mct
write<Ack>(1);
}
float const _tics_per_ms;
unsigned long const _tics_per_ms;
/**
* Start and stop counting
@ -108,7 +108,7 @@ namespace Exynos_mct
* Constructor
*/
Timer(addr_t const base, unsigned const clk)
: Mmio(base), _tics_per_ms((float)clk / (PRESCALER + 1) / (1 << DIV_MUX) / 1000)
: Mmio(base), _tics_per_ms(clk / (PRESCALER + 1) / (1 << DIV_MUX) / 1000)
{
Mct_cfg::access_t mct_cfg = 0;
Mct_cfg::Prescaler::set(mct_cfg, PRESCALER);