diff options
Diffstat (limited to 'sys/arm/at91/at91_twireg.h')
-rw-r--r-- | sys/arm/at91/at91_twireg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/at91/at91_twireg.h b/sys/arm/at91/at91_twireg.h index 30f4874..5f59b22 100644 --- a/sys/arm/at91/at91_twireg.h +++ b/sys/arm/at91/at91_twireg.h @@ -64,7 +64,7 @@ #define TWI_CWGR_CHDIV(x) ((x) << 8) /* Clock High Divider */ #define TWI_CWGR_CLDIV(x) ((x) << 0) /* Clock Low Divider */ #define TWI_CWGR_DIV(rate) \ - (at91_is_sam9() ? \ + (at91_is_sam9() || at91_is_sam9xe() ? \ ((at91_master_clock / (4 * (rate))) - 3) : \ ((at91_master_clock / (4 * (rate))) - 2)) |