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.
Dependencies: MODSERIAL USBDevice_for_Rev_C_HW mbed
Fork of mbed_sv_firmware_with_init by
Diff: main.cpp
- Revision:
- 8:3313aa7f9082
- Parent:
- 6:2941452a0e6d
- Child:
- 9:046247707ffb
--- a/main.cpp Thu Jan 22 01:46:17 2015 +0000 +++ b/main.cpp Thu Jan 22 19:14:46 2015 +0000 @@ -156,7 +156,7 @@ /* -I2C-prox messages = 0xCC, r/w, number of data bytes, index (2 bytes), data bytes, 0x7E, 0xXX, 0xXX - last two are fillers where CRC goes for RFID +I2C-prox messages = 0xCC, r/w#, number of data bytes, index (2 bytes), data bytes, 0x7E, 0xXX, 0xXX - last two are fillers where CRC goes for RFID Multiple registers can be read or written with single prox_msg_rd() or prox_msg_wr(). Location address increments for each byte. */ @@ -176,7 +176,7 @@ return i2c_err; // 0 = ACK received, 1 = NAK/failure } -// GPIO messages = 0xDD, r/w, value, 0x7E, 0xXX, 0xXX - last two are fillers where CRC goes for RFID +// GPIO messages = 0xDD, r/w#, value, 0x7E, 0xXX, 0xXX - last two are fillers where CRC goes for RFID int gpio_rd() { led_err.write(LEDON); @@ -194,7 +194,7 @@ int gpio_wr() { - cdc.printf("debug"); + cdc.putc(gpio_buffer[2]); cdc.putc(gpio_buffer[2] && 0x01); cdc.putc(gpio_buffer[2] && 0x02); cdc.putc(gpio_buffer[2] && 0x04);