Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit47dd1fe

Browse files
committed
rp2: Add riscv variant for pico2_w.
make BOARD=RPI_PICO2_W BOARD_VARIANT=RISCV -j8Signed-off-by: Peter Harper <peter.harper@raspberrypi.com>
1 parent7582d7a commit47dd1fe

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

‎ports/rp2/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,6 @@ if (MICROPY_PY_NETWORK_CYW43)
407407

408408
target_link_libraries(${MICROPY_TARGET}
409409
cyw43_driver_picow
410-
cmsis_core
411410
)
412411
target_include_directories(${MICROPY_TARGET}PRIVATE
413412
${MICROPY_DIR}/lib/cyw43-driver/
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
set(PICO_PLATFORM"rp2350-riscv")

‎ports/rp2/mpnetworkport.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ static soft_timer_entry_t mp_network_soft_timer;
4444
#include"lib/cyw43-driver/src/cyw43_stats.h"
4545
#include"hardware/irq.h"
4646

47+
#if !defined(__riscv)
4748
#ifPICO_RP2040
4849
#include"RP2040.h"// cmsis, for NVIC_SetPriority and PendSV_IRQn
4950
#elifPICO_RP2350
5051
#include"RP2350.h"// cmsis, for NVIC_SetPriority and PendSV_IRQn
5152
#else
5253
#error Unknown processor
5354
#endif
55+
#endif
5456

5557
#defineCYW43_IRQ_LEVEL GPIO_IRQ_LEVEL_HIGH
5658
#defineCYW43_SHARED_IRQ_HANDLER_PRIORITY PICO_SHARED_IRQ_HANDLER_HIGHEST_ORDER_PRIORITY
@@ -74,7 +76,9 @@ static void gpio_irq_handler(void) {
7476
voidcyw43_irq_init(void) {
7577
gpio_add_raw_irq_handler_with_order_priority(CYW43_PIN_WL_HOST_WAKE,gpio_irq_handler,CYW43_SHARED_IRQ_HANDLER_PRIORITY);
7678
irq_set_enabled(IO_IRQ_BANK0, true);
79+
#if !defined(__riscv)
7780
NVIC_SetPriority(PendSV_IRQn,IRQ_PRI_PENDSV);
81+
#endif
7882
}
7983

8084
voidcyw43_post_poll_hook(void) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp