mirror of
https://github.com/oliverschmidt/contiki.git
synced 2025-01-21 23:31:11 +00:00
Merge pull request #1041 from uknoblic/cc2538_i2c
Fix CC2538 I2C clock computation bug
This commit is contained in:
commit
c2740fedb2
@ -50,7 +50,7 @@ get_sys_clock(void)
|
||||
{
|
||||
/* Get the clock status diviser */
|
||||
return SYS_CTRL_32MHZ /
|
||||
((REG(SYS_CTRL_CLOCK_STA) & SYS_CTRL_CLOCK_STA_SYS_DIV) + 1);
|
||||
(1 << (REG(SYS_CTRL_CLOCK_STA) & SYS_CTRL_CLOCK_STA_SYS_DIV));
|
||||
}
|
||||
/*---------------------------------------------------------------------------*/
|
||||
void
|
||||
|
Loading…
x
Reference in New Issue
Block a user