Component: TestByteEEPROMC
This program is a simple test of ByteEEPROM, a component which
provides a byte-level abstraction to the EEPROM. This application was used
to debug ByteEEPROM, and is a good example on how to wire and use it.
Requests are made for different memory regions, and a write followed by a read
is made from the same region. If the data in the write buffer is the same
as the data in the read buffer, the red led should remain on when execution
of the application ends.
Currently GenericComm is wired to this application so that buffers read and written
could be written over the UART. The full functionality of this debugging
mechanism has not been implemented fully. It currently supports the output of one packet
over the UART, which can be observed using the java tool "ListenRaw"
- uint8_t blah[300]
- char wee[64]
- enum TestByteEEPROMC.__nesc_unnamed4242 {
TestByteEEPROMC.READ1, TestByteEEPROMC.READ2
} state
- task void dotest(void)
StdControl.init
command result_t StdControl.init
(void)
StdControl.start
command result_t StdControl.start
(void)
AllocationReq1.requestProcessed
event result_t AllocationReq1.requestProcessed
(result_t success)
WriteData1.writeDone
event result_t WriteData1.writeDone
(uint8_t *data, uint32_t numBytesWrite, result_t success)
ReadData1.readDone
event result_t ReadData1.readDone
(uint8_t *buffer, uint32_t numBytesRead, result_t success)
SendMsg.sendDone
event result_t SendMsg.sendDone
(TOS_MsgPtr msg, result_t success)