update with notes
This commit is contained in:
parent
c5fc7461e7
commit
8161e5c857
11
README.md
11
README.md
|
@ -46,5 +46,16 @@ ctest
|
|||
- add functions to load saved configs
|
||||
|
||||
|
||||
###Mocking the TWI/I2C
|
||||
|
||||
The twi needs to be mocked or faked correctly to make the testing
|
||||
of the functions doable.
|
||||
|
||||
The best way I can find to handle this is with a buffer of twi data
|
||||
that simulate registers that the program reads/writes to.
|
||||
|
||||
This is handled by using function pointers for the tx and rx of i2c/twi data.
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue