Driver for the Microchip MCP432x series of ADCs.
Fork of MCP342x by
Revision 10:9e1bb1e16e68, committed 2018-08-10
- Comitter:
- tkstreet
- Date:
- Fri Aug 10 17:32:01 2018 +0000
- Parent:
- 9:9e70e215d39a
- Commit message:
- Removed calls to Debug library.
Changed in this revision
mcp342x.cpp | Show annotated file Show diff for this revision Revisions of this file |
mcp342x.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 9e70e215d39a -r 9e1bb1e16e68 mcp342x.cpp --- a/mcp342x.cpp Thu Aug 09 23:38:12 2018 +0000 +++ b/mcp342x.cpp Fri Aug 10 17:32:01 2018 +0000 @@ -4,7 +4,6 @@ #define LEN_ONE_BYTE 1 MCP342X::MCP342X(I2C *conn, SlaveAddress addr) { - DBG_L3("#ADC object created\r\n"); slaveAddress = addr; connection = conn; @@ -39,7 +38,7 @@ } MCP342X::Status MCP342X::readData(int16_t *val, Config *config) { - DBG_L3("#ADC: Reading data\r\n"); + char buf[LEN_DATA_REGISTER]; // Reads data registers.
diff -r 9e70e215d39a -r 9e1bb1e16e68 mcp342x.h --- a/mcp342x.h Thu Aug 09 23:38:12 2018 +0000 +++ b/mcp342x.h Fri Aug 10 17:32:01 2018 +0000 @@ -2,7 +2,6 @@ #define __MCP342X_H__ #include "mbed.h" -#include "akdp_debug.h" /** * Device driver for MCP3426, MCP3427, and MCP3428.