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: mbed
Diff: src/boards.cpp
- Revision:
- 21:fe0ea1860c9f
- Parent:
- 20:5de24e4ae1c5
- Child:
- 22:2c37ac12746e
diff -r 5de24e4ae1c5 -r fe0ea1860c9f src/boards.cpp
--- a/src/boards.cpp Tue Jan 08 22:05:53 2019 +0000
+++ b/src/boards.cpp Fri Jan 11 21:45:55 2019 +0000
@@ -44,6 +44,10 @@
sendSerial(strbuf);
sprintf(strbuf, "\r\nV48_LO=%d\r\n", V48_LO);
sendSerial(strbuf);
+
+ en_out = 32;
+ setBoardEnables(8191);
+
}
/*******************************************************************************
@@ -61,7 +65,11 @@
unsigned int setBoardEnables(unsigned int tCode)
{
if(!all_on){
+ wr_out = tCode;
+ unsigned int en_out_save = en_out;
+ en_out = 0;
wr_out = ~tCode;
+ en_out = en_out_save;
}
return tCode;
}
@@ -130,7 +138,8 @@
void stopConverter(void)
{
if(running){
- wr_out_code = setBoardEnables(ALLOFF);
+ en_out = 32;
+ wr_out_code = setBoardEnables(ALLON);
running = FALSE;
sprintf(strbuf, "\r\nConverter stopped");
sendSerial(strbuf);