Chris BAYLEY
/
SPI-2-USB
Dump SPI from input to pc.serial
MySPI/MySPI.c@0:1ca47c273d0f, 2012-01-30 (annotated)
- Committer:
- cbayley
- Date:
- Mon Jan 30 23:08:52 2012 +0000
- Revision:
- 0:1ca47c273d0f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
cbayley | 0:1ca47c273d0f | 1 | #include "mbed.h" |
cbayley | 0:1ca47c273d0f | 2 | #include "MySPI.h" |
cbayley | 0:1ca47c273d0f | 3 | |
cbayley | 0:1ca47c273d0f | 4 | void MySPI::puts(char *s) |
cbayley | 0:1ca47c273d0f | 5 | { |
cbayley | 0:1ca47c273d0f | 6 | while (*s) |
cbayley | 0:1ca47c273d0f | 7 | this->write(*s++); |
cbayley | 0:1ca47c273d0f | 8 | } |