Home
last modified time | relevance | path

Searched refs:rtc_tamper (Results 1 – 6 of 6) sorted by relevance

/hal_gigadevice-latest/gd32f3x0/standard_peripheral/source/
Dgd32f3x0_rtc.c584 void rtc_tamper_enable(rtc_tamper_struct* rtc_tamper) in rtc_tamper_enable() argument
587 RTC_TAMP &= (uint32_t)~(rtc_tamper->rtc_tamper_source); in rtc_tamper_enable()
593 if(rtc_tamper->rtc_tamper_filter != RTC_FLT_EDGE ){ in rtc_tamper_enable()
597 if(DISABLE == rtc_tamper->rtc_tamper_precharge_enable){ in rtc_tamper_enable()
600 RTC_TAMP |= (uint32_t)(rtc_tamper->rtc_tamper_precharge_time); in rtc_tamper_enable()
603 RTC_TAMP |= (uint32_t)(rtc_tamper->rtc_tamper_sample_frequency); in rtc_tamper_enable()
604 RTC_TAMP |= (uint32_t)(rtc_tamper->rtc_tamper_filter); in rtc_tamper_enable()
609 if(DISABLE != rtc_tamper->rtc_tamper_with_timestamp){ in rtc_tamper_enable()
615 RTC_TAMP &= ((uint32_t)~((rtc_tamper->rtc_tamper_source) << RTC_TAMPER_TRIGGER_POS)); in rtc_tamper_enable()
616 if(RTC_TAMPER_TRIGGER_EDGE_RISING != rtc_tamper->rtc_tamper_trigger){ in rtc_tamper_enable()
[all …]
/hal_gigadevice-latest/gd32l23x/standard_peripheral/source/
Dgd32l23x_rtc.c683 void rtc_tamper_enable(rtc_tamper_struct *rtc_tamper) in rtc_tamper_enable() argument
686 RTC_TAMP &= (uint32_t)~(rtc_tamper->tamper_source); in rtc_tamper_enable()
692 if((uint32_t)(rtc_tamper->tamper_filter) != RTC_FLT_EDGE) { in rtc_tamper_enable()
696 if(DISABLE == rtc_tamper->tamper_precharge_enable) { in rtc_tamper_enable()
699 RTC_TAMP |= (uint32_t)(rtc_tamper->tamper_precharge_time); in rtc_tamper_enable()
702 RTC_TAMP |= (uint32_t)(rtc_tamper->tamper_sample_frequency); in rtc_tamper_enable()
703 RTC_TAMP |= (uint32_t)(rtc_tamper->tamper_filter); in rtc_tamper_enable()
706 RTC_TAMP &= ((uint32_t)~((rtc_tamper->tamper_source) << RTC_TAMPER_TRIGGER_POS)); in rtc_tamper_enable()
707 if(RTC_TAMPER_TRIGGER_LEVEL_LOW != rtc_tamper->tamper_trigger) { in rtc_tamper_enable()
708 RTC_TAMP |= (uint32_t)((rtc_tamper->tamper_source) << RTC_TAMPER_TRIGGER_POS); in rtc_tamper_enable()
[all …]
/hal_gigadevice-latest/gd32f4xx/standard_peripheral/source/
Dgd32f4xx_rtc.c649 void rtc_tamper_enable(rtc_tamper_struct *rtc_tamper) in rtc_tamper_enable() argument
652 RTC_TAMP &= (uint32_t)~(rtc_tamper->tamper_source); in rtc_tamper_enable()
658 if((uint32_t)(rtc_tamper->tamper_filter) != RTC_FLT_EDGE) { in rtc_tamper_enable()
662 if(DISABLE == rtc_tamper->tamper_precharge_enable) { in rtc_tamper_enable()
665 RTC_TAMP |= (uint32_t)(rtc_tamper->tamper_precharge_time); in rtc_tamper_enable()
668 RTC_TAMP |= (uint32_t)(rtc_tamper->tamper_sample_frequency); in rtc_tamper_enable()
669 RTC_TAMP |= (uint32_t)(rtc_tamper->tamper_filter); in rtc_tamper_enable()
672 RTC_TAMP &= ((uint32_t)~((rtc_tamper->tamper_source) << RTC_TAMPER_TRIGGER_POS)); in rtc_tamper_enable()
673 if(RTC_TAMPER_TRIGGER_LEVEL_LOW != rtc_tamper->tamper_trigger) { in rtc_tamper_enable()
674 RTC_TAMP |= (uint32_t)((rtc_tamper->tamper_source) << RTC_TAMPER_TRIGGER_POS); in rtc_tamper_enable()
[all …]
/hal_gigadevice-latest/gd32f3x0/standard_peripheral/include/
Dgd32f3x0_rtc.h531 void rtc_tamper_enable(rtc_tamper_struct* rtc_tamper);
/hal_gigadevice-latest/gd32f4xx/standard_peripheral/include/
Dgd32f4xx_rtc.h586 void rtc_tamper_enable(rtc_tamper_struct* rtc_tamper);
/hal_gigadevice-latest/gd32l23x/standard_peripheral/include/
Dgd32l23x_rtc.h603 void rtc_tamper_enable(rtc_tamper_struct *rtc_tamper);