Fix a unreadable comments.

There were some Japanese comments in I2C source code.
Fixed those comments to be readable.
pull/747/head
Masao Hamanaka 2014-11-28 16:18:40 +09:00
parent 1c4831a243
commit 7290768dc6
1 changed files with 3 additions and 3 deletions

View File

@ -217,10 +217,10 @@ void i2c_frequency(i2c_t *obj, int hz) {
}
for (count = 0; count < 7; count++) {
// IICφ = P0φ / rate
// IIC phi = P0 phi / rate
pclk = 33333333 / (2 << count);
// In case of "CLE = 1、NFE = 1、CKS != 000( IICφ < P0φ )、nf = 1"
// freq = 1 / {[( BRH + 2 + 1 ) ( BRL + 2 + 1 )] / pclk }
// In case of "CLE = 1, NFE = 1, CKS != 000( IIC phi < P0 phi ), nf = 1"
// freq = 1 / {[( BRH + 2 + 1 ) + ( BRL + 2 + 1 )] / pclk }
// BRH is regarded as same value with BRL
// 2( BRH + 3 ) / pclk = 1 / freq
tmp_width = ((pclk / freq) / 2) - 3;