File tree Expand file tree Collapse file tree 4 files changed +34
-0
lines changed
hal/targets/cmsis/TARGET_RENESAS Expand file tree Collapse file tree 4 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ void FPUEnable(void);
51
51
52
52
uint32_t IRQNestLevel ;
53
53
unsigned char seen_id0_active = 0 ; // single byte to hold a flag used in the workaround for GIC errata 733075
54
+ uint32_t SystemCoreClock = CM0_RENESAS_RZ_A1_I_CLK ; /*!< System Clock Frequency (Core Clock) */
54
55
55
56
56
57
/**
@@ -198,6 +199,20 @@ uint32_t InterruptHandlerUnregister (IRQn_Type irq)
198
199
}
199
200
}
200
201
202
+ /**
203
+ * Update SystemCoreClock variable
204
+ *
205
+ * @param none
206
+ * @return none
207
+ *
208
+ * @brief Updates the SystemCoreClock with current core Clock.
209
+ */
210
+ void SystemCoreClockUpdate (void )
211
+ {
212
+ SystemCoreClock = CM0_RENESAS_RZ_A1_I_CLK ;
213
+ }
214
+
215
+
201
216
/**
202
217
* Initialize the system
203
218
*
Original file line number Diff line number Diff line change 43
43
extern "C" {
44
44
#endif
45
45
46
+ extern uint32_t SystemCoreClock ; /*!< System Clock Frequency (Core Clock) */
47
+
46
48
typedef void (* IRQHandler )();
47
49
uint32_t InterruptHandlerRegister (IRQn_Type , IRQHandler );
48
50
uint32_t InterruptHandlerUnregister (IRQn_Type );
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ void FPUEnable(void);
51
51
52
52
uint32_t IRQNestLevel ;
53
53
unsigned char seen_id0_active = 0 ; // single byte to hold a flag used in the workaround for GIC errata 733075
54
+ uint32_t SystemCoreClock = CM0_RENESAS_RZ_A1_I_CLK ; /*!< System Clock Frequency (Core Clock) */
54
55
55
56
56
57
/**
@@ -198,6 +199,20 @@ uint32_t InterruptHandlerUnregister (IRQn_Type irq)
198
199
}
199
200
}
200
201
202
+ /**
203
+ * Update SystemCoreClock variable
204
+ *
205
+ * @param none
206
+ * @return none
207
+ *
208
+ * @brief Updates the SystemCoreClock with current core Clock.
209
+ */
210
+ void SystemCoreClockUpdate (void )
211
+ {
212
+ SystemCoreClock = CM0_RENESAS_RZ_A1_I_CLK ;
213
+ }
214
+
215
+
201
216
/**
202
217
* Initialize the system
203
218
*
Original file line number Diff line number Diff line change 43
43
extern "C" {
44
44
#endif
45
45
46
+ extern uint32_t SystemCoreClock ; /*!< System Clock Frequency (Core Clock) */
47
+
46
48
typedef void (* IRQHandler )();
47
49
uint32_t InterruptHandlerRegister (IRQn_Type , IRQHandler );
48
50
uint32_t InterruptHandlerUnregister (IRQn_Type );
You can’t perform that action at this time.
0 commit comments