60 if( RTCC_Config == NULL )
72 | RTCC_CR_HS24_SET( pRtccCfg->
rtccHS24 )
102 RTCC->CR = u32rtccSet;
116 RTCC->CR |= RTCC_RTEN;
120 RTCC->CR &= ~RTCC_RTEN;
132 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
133 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
134 RTCC->YEAR = u32rtccReWt;
135 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
136 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
147 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
148 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
149 RTCC->MONTH = u32rtccReWt;
150 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
151 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
162 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
163 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
164 RTCC->WEEK = u32rtccReWt;
165 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
166 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
177 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
178 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
179 RTCC->DAY = u32rtccReWt;
180 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
181 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
192 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
193 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
194 RTCC->HOUR = u32rtccReWt;
195 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
196 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
207 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
208 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
209 RTCC->MIN = u32rtccReWt;
210 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
211 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
222 RTCC->CR |= ( 1 << RTCC_CR_RTWAIT_Pos );
223 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 0 ) {}
224 RTCC->SEC = u32rtccReWt;
225 RTCC->CR &= ~RTCC_CR_RTWAIT_Msk;
226 while( ( RTCC->CR & ( 1 << RTCC_CR_RTWST_Pos ) ) == 1 ) {}
void HAL_RTCC_RewriteYEAR(uint32_t u32rtccReWt)
Rewrite to RTCC YEAR Register.
void HAL_RTCC_RewriteSEC(uint32_t u32rtccReWt)
Rewrite to RTCC SEC Register.
void HAL_SCU_Peripheral_EnableClock2(uint32_t u32PeriClk2, uint32_t u32Ind)
Set Each Peripheral Clock.
void HAL_RTCC_DeInit(void)
Close RTCC.
void HAL_RTCC_RewriteHOUR(uint32_t u32rtccReWt)
Rewrite to RTCC HOUR Register.
void HAL_RTCC_RewriteMONTH(uint32_t u32rtccReWt)
Rewrite to RTCC MONTH Register.
void HAL_RTCC_RewriteWEEK(uint32_t u32rtccReWt)
Rewrite to RTCC WEEK Register.
Contains all macro definitions and function prototypes support for rtcc firmware library on A31L12x.
void HAL_RTCC_SetRegister(uint32_t u32rtccSet)
Set RTC_CR Registers.
void HAL_RTCC_RewriteDAY(uint32_t u32rtccReWt)
Rewrite to RTCC DAY Register.
HAL_Status_Type HAL_RTCC_Init(void *RTCC_Config)
Initialize the RTCC peripheral with the specified parameters.
void HAL_SCU_Peripheral_SetReset2(uint32_t u32EachPeri2)
Set/Reset Each Peripheral Block Reset of PPRST2 Register.
Contains all macro definitions and function prototypes support for scu firmware library on A31L12x.
void HAL_RTCC_Cmd(FunctionalState NewState)
Enable/Disable RTCC Operation.
void HAL_RTCC_RewriteMIN(uint32_t u32rtccReWt)
Rewrite to RTCC MIN Register.