Skip to content

Commit 95ea2fc

Browse files
PillarShiRbb666
authored andcommitted
[bsp][etherkit] fix bug and enable high optimization.
1 parent 37d9025 commit 95ea2fc

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

bsp/renesas/libraries/HAL_Drivers/config/rzt/timer_config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ extern "C"
1919
{
2020
#endif
2121

22-
#define PLCKD_PRESCALER_MAX_SELECT 8
22+
#define PLCKD_PRESCALER_MAX_SELECT 9
2323

2424
/* RSK-RZN2L: Frequency ratio: PCLKA:PCLKD = 1:N (N = 1/2/4/8/16/32/64) */
2525
#define PLCKD_PRESCALER_400M (BSP_PRV_PCLKGPTL_FREQ_400_MHZ)

bsp/renesas/libraries/HAL_Drivers/drv_hwtimer.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const rt_uint32_t PLCKD_FREQ_PRESCALER[PLCKD_PRESCALER_MAX_SELECT] =
3838
PLCKD_PRESCALER_3_75M,
3939
PLCKD_PRESCALER_1_875M,
4040
#elif defined(SOC_SERIES_R9A07G0)
41+
PLCKD_PRESCALER_400M,
42+
PLCKD_PRESCALER_200M,
4143
PLCKD_PRESCALER_100M,
4244
PLCKD_PRESCALER_50M,
4345
PLCKD_PRESCALER_25M,

bsp/renesas/rzn2l_etherkit/rzn/fsp/src/bsp/cmsis/Device/RENESAS/Source/system.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,7 @@ void bsp_loader_bss_init (void)
577577
void bsp_copy_multibyte (uintptr_t * src, uintptr_t * dst, uintptr_t bytesize)
578578
{
579579
uintptr_t i;
580-
uintptr_t cnt;
580+
volatile uintptr_t cnt;
581581

582582
uintptr_t src_mod;
583583
uint8_t * src_single_byte;
@@ -630,7 +630,7 @@ void bsp_copy_multibyte (uintptr_t * src, uintptr_t * dst, uintptr_t bytesize)
630630
void bsp_bss_init_multibyte (uintptr_t * src, uintptr_t bytesize)
631631
{
632632
uintptr_t i;
633-
uintptr_t cnt;
633+
volatile uintptr_t cnt;
634634
uintptr_t zero = 0;
635635

636636
uintptr_t src_mod;

0 commit comments

Comments
 (0)