Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: i2c_mbed_fpga.cpp
- Revision:
- 8:2554218db1e6
- Parent:
- 7:5fb0ad55b339
- Child:
- 9:76a0b9f29a2d
--- a/i2c_mbed_fpga.cpp Mon Jan 25 13:28:58 2021 +0000
+++ b/i2c_mbed_fpga.cpp Tue Jan 26 11:13:25 2021 +0000
@@ -125,7 +125,7 @@
*/
int i2c_mbed_fpga::i2c_set_start_up_pulse_width(unsigned int mantisaa_3b, unsigned int exponent_3b){
nv_start_up_val &= ~NV_START_UP_TIME_MASK;
- nv_start_up_val |= ((exponent_3b << 2) | mantisaa_3b) << NV_START_UP_TIME_OFFSET;
+ nv_start_up_val |= ((exponent_3b << 3) | mantisaa_3b) << NV_START_UP_TIME_OFFSET;
char i2cMessage[4];
*(i2cMessage+0) = (char)(NV_START_UP >> 8)& 0xff;
*(i2cMessage+1) = (char)(NV_START_UP >> 0)& 0xff;
