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: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: RESET_functions.h
- Revision:
- 248:407ab7e337cd
- Parent:
- 235:c127b15409b2
--- a/RESET_functions.h Wed Jul 06 08:09:22 2016 +0000
+++ b/RESET_functions.h Fri Jul 08 12:53:24 2016 +0000
@@ -11,6 +11,7 @@
void RESET_RTC()
{
+ SPI_mutex.lock();
gCS_RTC=1;
gCS_RTC=0;
spi.write(0x81); //register address with write flag
@@ -33,6 +34,7 @@
gCS_RTC=0;
spi.write(0x8F);
spi.write(0x00);
+ SPI_mutex.unlock();
}
