Commit cd34a40e authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

dev: little cleanup

parent 1ecc871b
......@@ -97,16 +97,3 @@ void mi2c_init(uint8_t i2cif)
M_SCL_OUT(i2cif, 1);
M_SDA_OUT(i2cif, 1);
}
//void mi2c_scan(uint8_t i2cif)
//{
// int i;
//
// for(i=0;i<0x80;i++)
// {
// mi2c_start(i2cif);
// if(!mi2c_put_byte(i2cif, i<<1)) mprintf("found : %x\n", i);
// mi2c_stop(i2cif);
//
// }
//}
......@@ -65,9 +65,8 @@ static uint32_t slot(uint32_t port, uint32_t bit)
return reg & CSR_DAT_MSK;
}
static uint32_t ow_read_bit(uint32_t port) { return slot(port, 0x1); }
static uint32_t ow_write_bit(uint32_t port, uint32_t bit) { return slot(port, bit); }
static inline uint32_t ow_read_bit(uint32_t port) { return slot(port, 0x1); }
static inline uint32_t ow_write_bit(uint32_t port, uint32_t bit) { return slot(port, bit); }
uint8_t ow_read_byte(uint32_t port)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment