Self test boot program for testing icarus sensors
Dependencies: BLE_API mbed nRF51822
Fork of BLE_UARTConsole by
Diff: RNGSensor.cpp
- Revision:
- 8:e9ae7a01d866
- Parent:
- 7:438b55fe8576
- Child:
- 9:ed3636e1873f
--- a/RNGSensor.cpp Mon Jan 26 13:57:26 2015 +0000 +++ b/RNGSensor.cpp Tue Jan 27 09:29:17 2015 +0000 @@ -1,21 +1,25 @@ #include "RNGSensor.h" #include "mbed.h" +#ifndef LOG +#define LOG(...) do printf(__VA_ARGS__); while (0) +#endif -RNGSensor::RNGSensor() : BaseSensor(NULL) { +RNGSensor::RNGSensor() : BaseSensor() { } -char* BaseSensor::getSimpleName() { +char* RNGSensor::getSimpleName() { return "RNGSensor"; } -int BaseSensor::verifyIntegrity(int* errorResult) { +int RNGSensor::verifyIntegrity(int* errorResult) { + LOG("Start verfication of Random Number Generator"); return 0; } -void BaseSensor::getSensorDetails(sensor_t* sensorDetails) { +void RNGSensor::getSensorDetails(sensor_t* sensorDetails) { } \ No newline at end of file