Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/host.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ include (${CMAKE_DIR}/no_hardware.cmake)
pico_add_subdirectory(${COMMON_DIR}/boot_picobin_headers)
pico_add_subdirectory(${COMMON_DIR}/boot_picoboot_headers)
pico_add_subdirectory(${COMMON_DIR}/boot_uf2_headers)
pico_add_subdirectory(${COMMON_DIR}/hardware_claim)
pico_add_subdirectory(${COMMON_DIR}/pico_base_headers)
pico_add_subdirectory(${COMMON_DIR}/pico_usb_reset_interface_headers)
pico_add_subdirectory(${COMMON_DIR}/pico_bit_ops_headers)
Expand All @@ -22,6 +23,7 @@ include (${CMAKE_DIR}/no_hardware.cmake)
# host-specific
pico_add_subdirectory(${HOST_DIR}/hardware_divider)
pico_add_subdirectory(${HOST_DIR}/hardware_gpio)
pico_add_subdirectory(${HOST_DIR}/hardware_irq)
pico_add_subdirectory(${HOST_DIR}/hardware_sync)
pico_add_subdirectory(${HOST_DIR}/hardware_timer)
pico_add_subdirectory(${HOST_DIR}/hardware_uart)
Expand Down
3 changes: 2 additions & 1 deletion src/host/hardware_irq/include/hardware/irq.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#endif

#include "pico.h"
#include "hardware/regs/intctrl.h"
// TODO: No hardware/regs/intctrl.h for host yet.
// #include "hardware/regs/intctrl.h"

/** \file irq.h
* \defgroup hardware_irq hardware_irq
Expand Down
3 changes: 3 additions & 0 deletions src/host/pico_platform/include/hardware/platform_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
#define NUM_ALARMS 4u

#define NUM_IRQS 32u
#define NUM_USER_IRQS 6u
#define FIRST_USER_IRQ (NUM_IRQS - NUM_USER_IRQS)
#define VTABLE_FIRST_IRQ 16

#define NUM_SPIN_LOCKS 32u

Expand Down
Loading