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.
Revision 2:2b886cea4fcb, committed 2014-10-14
- Comitter:
- wbeaumont
- Date:
- Tue Oct 14 17:10:50 2014 +0000
- Parent:
- 1:1b9f706b8abc
- Child:
- 3:49638acbc5d4
- Commit message:
- format changes
Changed in this revision
| adt7320.cpp | Show annotated file Show diff for this revision Revisions of this file |
| adt7320.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/adt7320.cpp Sun Oct 05 17:12:21 2014 +0000
+++ b/adt7320.cpp Tue Oct 14 17:10:50 2014 +0000
@@ -82,6 +82,17 @@
+void adt7320::serial_line_rst() {
+ set_spi_mode(32);
+ u32 data=0xFFFFFFFF;
+ cs->write(CS_ACTIVE); // needed ?
+ data= spi->write(data);
+ cs->write(CS_DEACTIVE);
+ set_spi_mode(24);
+}
+
+
+
u8 adt7320::getId(){
return getR08(0x03);
}
--- a/adt7320.h Sun Oct 05 17:12:21 2014 +0000
+++ b/adt7320.h Tue Oct 14 17:10:50 2014 +0000
@@ -10,7 +10,7 @@
#include "getVersion.h"
#include "SWSPI.h"
-#define ADT7320_HDR_VER "1.13"
+#define ADT7320_HDR_VER "1.14"
class adt7320 : public getVersion{
@@ -38,7 +38,7 @@
u16 get_src_ver();// returns the src version nr
void init1();
void init2();
-
+ void serial_line_rst();
};