Skip to content

Commit

Permalink
Merged applications example code version 3bfbf9c68b27380f590106802fba…
Browse files Browse the repository at this point in the history
…f2fdb33d3170.
  • Loading branch information
aakash-mchp committed Dec 19, 2023
2 parents 7495601 + 345201f commit 8b12ad7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ definitions. */
.extern uxTimerIncrementsForOneTick /* size_t type so 32-bit on 32-bit core and 64-bits on 64-bit core. */
.extern xISRStackTop
.extern portasmHANDLE_INTERRUPT
.extern freeRTOS_trap_jump

/*-----------------------------------------------------------*/

Expand Down Expand Up @@ -402,7 +401,7 @@ xPortStartFirstTask:
/* If there is a clint then interrupts can branch directly to the FreeRTOS
trap handler. Otherwise the interrupt controller will need to be configured
outside of this file. */
la t0, freeRTOS_trap_jump
la t0, freertos_risc_v_trap_handler
csrw mtvec, t0
#endif /* portasmHAS_CLILNT */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
.macro STORE_CONTEXT
addi sp, sp, -SP_SHIFT_OFFSET*REGBYTES
SREG x1, 0 * REGBYTES(sp)
SREG x1, 0 * REGBYTES(sp)
SREG x2, 1 * REGBYTES(sp)
SREG x3, 2 * REGBYTES(sp)
SREG x4, 3 * REGBYTES(sp)
Expand Down Expand Up @@ -241,10 +240,6 @@ MSYS_MIE31_trap_entry:
.2byte 0
#endif

.global freeRTOS_trap_jump
freeRTOS_trap_jump:
j freertos_risc_v_trap_handler

#endif /* MIV_RV32_V3_0 */
#endif /* MIV_LEGACY_RV32 */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ uint32_t MRV_systick_config(uint64_t ticks)
g_systick_increment++;
}

g_systick_cmp_value = g_systick_increment + MTIME;
g_systick_cmp_value = g_systick_increment + MRV_read_mtime();

if (g_systick_increment > 0U)
{
Expand All @@ -192,7 +192,7 @@ void handle_m_timer_interrupt(void)
{
clear_csr(mie, MIP_MTIP);

uint64_t mtime_at_irq = MTIME;
uint64_t mtime_at_irq = MRV_read_mtime();

#ifndef NDEBUG
static volatile uint32_t d_tick = 0u;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ extern "C" {
#endif

#define MIV_RV32_HAL_VERSION_MAJOR 4
#define MIV_RV32_HAL_VERSION_MINOR 1
#define MIV_RV32_HAL_VERSION_PATCH 114
#define MIV_RV32_HAL_VERSION_MINOR 2
#define MIV_RV32_HAL_VERSION_PATCH 101

#ifdef __cplusplus
}
Expand Down

0 comments on commit 8b12ad7

Please sign in to comment.