Skip to content

Commit f1413d6

Browse files
committed
fixup! rp2350/riscv: multicore support
1 parent f5a48fc commit f1413d6

2 files changed

Lines changed: 14 additions & 8 deletions

File tree

cpu/rp2350_common/include/compat_layer.h

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@
2020
#include <stdint.h>
2121

2222
#ifdef RP2350_USE_RISCV
23-
# include "xh3irq.h"
24-
/* See 3.8.6.3.1 */
25-
# define __h3_block() __asm__("slt x0, x0, x0")
26-
/* See 3.8.6.3.2 */
27-
# define __h3_unblock() __asm__("slt x0, x0, x1")
23+
# include "xh3irq.h"
24+
/** See RP2350 Datasheet 3.8.6.3.1 */
25+
# define __h3_block() __asm__("slt x0, x0, x0")
26+
/** See RP2350 Datasheet 3.8.6.3.2 */
27+
# define __h3_unblock() __asm__("slt x0, x0, x1")
2828
#else
29-
extern uint32_t _isr_vectors; /* Defined in the linker script */
29+
/** Defined in the linker script */
30+
extern uint32_t _isr_vectors;
3031
#endif
3132

3233
#ifdef __cplusplus
@@ -92,6 +93,10 @@ static inline void rp_unblock_core(void)
9293
#endif
9394
}
9495

96+
/**
97+
* @brief Get a pointer to the CPU specific interrupt vector table
98+
* @return Pointer to the CPU specific interrupt vector table
99+
*/
95100
static inline uint32_t* rp_get_vector_poiner(void)
96101
{
97102
#ifdef RP2350_USE_RISCV

cpu/rp2350_common/include/multicore.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@
2222
extern "C" {
2323
#endif
2424

25-
/* Table 37 FIFO_ST, 1 if not empty*/
25+
/** Table 37 FIFO_ST, 1 if not empty*/
2626
#define SIO_FIFO_READ_VALID_BIT 0
27-
/* TABLE 37, 1 if not full */
27+
/** TABLE 37, 1 if not full */
2828
#define SIO_FIFO_SEND_READY_BIT 1
29+
/** PSM bit for core 1 */
2930
#define core1_psm_bit 24
3031

3132
/**

0 commit comments

Comments
 (0)