ITE drivers/timer: fix tests/drivers/flash build error
There wasn't the build error in PR#44060, but now tool chain isn't happy about putting the arch_busy_wait() to __ram_code section, then it shows a build error: https://github.com/zephyrproject-rtos/zephyr/runs/5755633537?check_suite_focus=true#step:10:933 So I remove __ram_code of arch_busy_wait(), and this will need extra fetch code time when arch_busy_wait() code isn't in the dynamic cache. Verified by follow test pattern: west build -p auto -b it8xxx2_evb tests/drivers/flash Signed-off-by: Ruibin Chang <Ruibin.Chang@ite.com.tw>
This commit is contained in:
parent
736520a4fe
commit
78b027f765
1 changed files with 1 additions and 4 deletions
|
@ -15,9 +15,6 @@
|
||||||
#include <logging/log.h>
|
#include <logging/log.h>
|
||||||
LOG_MODULE_REGISTER(timer, LOG_LEVEL_ERR);
|
LOG_MODULE_REGISTER(timer, LOG_LEVEL_ERR);
|
||||||
|
|
||||||
/* RAM code section */
|
|
||||||
#define __timer_ram_code __attribute__((section(".__ram_code")))
|
|
||||||
|
|
||||||
/* Event timer configurations */
|
/* Event timer configurations */
|
||||||
#define EVENT_TIMER EXT_TIMER_3
|
#define EVENT_TIMER EXT_TIMER_3
|
||||||
#define EVENT_TIMER_IRQ DT_INST_IRQ_BY_IDX(0, 0, irq)
|
#define EVENT_TIMER_IRQ DT_INST_IRQ_BY_IDX(0, 0, irq)
|
||||||
|
@ -138,7 +135,7 @@ void timer_5ms_one_shot(void)
|
||||||
#endif /* CONFIG_SOC_IT8XXX2_PLL_FLASH_48M */
|
#endif /* CONFIG_SOC_IT8XXX2_PLL_FLASH_48M */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_HAS_CUSTOM_BUSY_WAIT
|
#ifdef CONFIG_ARCH_HAS_CUSTOM_BUSY_WAIT
|
||||||
__timer_ram_code void arch_busy_wait(uint32_t usec_to_wait)
|
void arch_busy_wait(uint32_t usec_to_wait)
|
||||||
{
|
{
|
||||||
if (!usec_to_wait) {
|
if (!usec_to_wait) {
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue