green rosh
/
i2c_master
I2C master
Fork of i2c_master by
Revision 2:899f7e7c61ed, committed 2014-12-04
- Comitter:
- greenroshks
- Date:
- Thu Dec 04 10:24:28 2014 +0000
- Parent:
- 1:14b369c0f314
- Commit message:
- i2c master
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed-rtos.lib | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Jul 15 10:06:29 2014 +0000 +++ b/main.cpp Thu Dec 04 10:24:28 2014 +0000 @@ -1,10 +1,20 @@ #include "master.h" +#include "rtos.h" + +void masterer(void const *args) +{ + FUNC_I2C_MASTER_MAIN(1,0x20,24); + + +} int main() { - while(true) + Thread::wait(3000); + RtosTimer timer(masterer,osTimerPeriodic); + timer.start(20000); + while(1) { - FUNC_I2C_MASTER_MAIN(1,0x20,24); - wait(23); + ; } } \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed-rtos.lib Thu Dec 04 10:24:28 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed-rtos/#ff95651f53c7