DMA issue to be tested
Dependencies: FreescaleIAP SimpleDMA mbed-rtos mbed
Fork of CDMS_CODE by
Diff: RESET_functions.h
- Revision:
- 282:74a04dec4b95
- Parent:
- 257:7d404e9dc9e2
diff -r d1c9ae3605a3 -r 74a04dec4b95 RESET_functions.h --- a/RESET_functions.h Wed Jul 27 12:14:58 2016 +0000 +++ b/RESET_functions.h Sat Jul 30 15:25:21 2016 +0000 @@ -4,6 +4,7 @@ void RESET_COMRX() { + gPC.printf("\r COM RX resetting\n"); COM_RX_CNTRL = 0; wait_ms(10); COM_RX_CNTRL =1; @@ -11,7 +12,7 @@ void RESET_RTC() { - SPI_mutex.lock(); + gPC.printf("Resetting RTC"); gCS_RTC=1; gCS_RTC=0; spi.write(0x81); //register address with write flag @@ -34,5 +35,4 @@ gCS_RTC=0; spi.write(0x8F); spi.write(0x00); - SPI_mutex.unlock(); } \ No newline at end of file