File tree Expand file tree Collapse file tree
cpu/rp2350_common/include Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+ */
95100static inline uint32_t * rp_get_vector_poiner (void )
96101{
97102#ifdef RP2350_USE_RISCV
Original file line number Diff line number Diff line change 2222extern "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/**
You can’t perform that action at this time.
0 commit comments