Renamed rtc_shutdown() and toneGen_shutdown() to rtc_terminate() and toneGen_terminate()

This commit is contained in:
Silvano Seva 2020-12-31 18:31:00 +01:00
parent 142d6e90b9
commit 8b6f4e3056
6 changed files with 6 additions and 6 deletions

View File

@ -50,7 +50,7 @@ void rtc_init();
/** /**
* Shutdown RTC. * Shutdown RTC.
*/ */
void rtc_shutdown(); void rtc_terminate();
/** /**
* Set RTC time and calendar registers to a given value. * Set RTC time and calendar registers to a given value.

View File

@ -125,7 +125,7 @@ void toneGen_init()
NVIC_EnableIRQ(TIM3_IRQn); NVIC_EnableIRQ(TIM3_IRQn);
} }
void toneGen_shutdown() void toneGen_terminate()
{ {
RCC->APB1ENR &= ~RCC_APB1ENR_TIM3EN; RCC->APB1ENR &= ~RCC_APB1ENR_TIM3EN;
__DSB(); __DSB();

View File

@ -38,7 +38,7 @@ void toneGen_init();
/** /**
* Terminate tone generator. * Terminate tone generator.
*/ */
void toneGen_shutdown(); void toneGen_terminate();
/** /**
* Set frequency for CTCSS tone generation. * Set frequency for CTCSS tone generation.

View File

@ -31,7 +31,7 @@
void rtc_init() { } void rtc_init() { }
void rtc_shutdown() { } void rtc_terminate() { }
void rtc_setTime(curTime_t t) void rtc_setTime(curTime_t t)
{ {

View File

@ -39,7 +39,7 @@ void rtc_init()
while((RCC->BDCR & RCC_BDCR_LSERDY) == 0) ; while((RCC->BDCR & RCC_BDCR_LSERDY) == 0) ;
} }
void rtc_shutdown() void rtc_terminate()
{ {
RCC->BDCR &= ~ RCC_BDCR_RTCEN | RCC_BDCR_LSEON; RCC->BDCR &= ~ RCC_BDCR_RTCEN | RCC_BDCR_LSEON;
} }

View File

@ -26,7 +26,7 @@ void rtc_init()
printf("rtc_init()\n"); printf("rtc_init()\n");
} }
void rtc_shutdown() void rtc_terminate()
{ {
printf("rtc_shutdown()\n"); printf("rtc_shutdown()\n");
} }