Renamed rtc_shutdown() and toneGen_shutdown() to rtc_terminate() and toneGen_terminate()
This commit is contained in:
parent
142d6e90b9
commit
8b6f4e3056
|
|
@ -50,7 +50,7 @@ void rtc_init();
|
|||
/**
|
||||
* Shutdown RTC.
|
||||
*/
|
||||
void rtc_shutdown();
|
||||
void rtc_terminate();
|
||||
|
||||
/**
|
||||
* Set RTC time and calendar registers to a given value.
|
||||
|
|
|
|||
|
|
@ -125,7 +125,7 @@ void toneGen_init()
|
|||
NVIC_EnableIRQ(TIM3_IRQn);
|
||||
}
|
||||
|
||||
void toneGen_shutdown()
|
||||
void toneGen_terminate()
|
||||
{
|
||||
RCC->APB1ENR &= ~RCC_APB1ENR_TIM3EN;
|
||||
__DSB();
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ void toneGen_init();
|
|||
/**
|
||||
* Terminate tone generator.
|
||||
*/
|
||||
void toneGen_shutdown();
|
||||
void toneGen_terminate();
|
||||
|
||||
/**
|
||||
* Set frequency for CTCSS tone generation.
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@
|
|||
|
||||
void rtc_init() { }
|
||||
|
||||
void rtc_shutdown() { }
|
||||
void rtc_terminate() { }
|
||||
|
||||
void rtc_setTime(curTime_t t)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ void rtc_init()
|
|||
while((RCC->BDCR & RCC_BDCR_LSERDY) == 0) ;
|
||||
}
|
||||
|
||||
void rtc_shutdown()
|
||||
void rtc_terminate()
|
||||
{
|
||||
RCC->BDCR &= ~ RCC_BDCR_RTCEN | RCC_BDCR_LSEON;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ void rtc_init()
|
|||
printf("rtc_init()\n");
|
||||
}
|
||||
|
||||
void rtc_shutdown()
|
||||
void rtc_terminate()
|
||||
{
|
||||
printf("rtc_shutdown()\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue