| # Always include these libraries through //src/rp2_common:*! |
| # This ensures that you'll get the right headers for the MCU you're targeting. |
| |
| package( |
| default_visibility = [ |
| "//src/rp2040:__subpackages__", |
| "//src/rp2_common:__pkg__", |
| ], |
| ) |
| |
| cc_library( |
| name = "hardware_structs", |
| hdrs = [ |
| "include/hardware/structs/adc.h", |
| "include/hardware/structs/bus_ctrl.h", |
| "include/hardware/structs/busctrl.h", |
| "include/hardware/structs/clocks.h", |
| "include/hardware/structs/dma.h", |
| "include/hardware/structs/dma_debug.h", |
| "include/hardware/structs/i2c.h", |
| "include/hardware/structs/interp.h", |
| "include/hardware/structs/io_bank0.h", |
| "include/hardware/structs/io_qspi.h", |
| "include/hardware/structs/iobank0.h", |
| "include/hardware/structs/ioqspi.h", |
| "include/hardware/structs/m0plus.h", |
| "include/hardware/structs/mpu.h", |
| "include/hardware/structs/nvic.h", |
| "include/hardware/structs/pads_bank0.h", |
| "include/hardware/structs/pads_qspi.h", |
| "include/hardware/structs/padsbank0.h", |
| "include/hardware/structs/pio.h", |
| "include/hardware/structs/pll.h", |
| "include/hardware/structs/psm.h", |
| "include/hardware/structs/pwm.h", |
| "include/hardware/structs/resets.h", |
| "include/hardware/structs/rosc.h", |
| "include/hardware/structs/rtc.h", |
| "include/hardware/structs/scb.h", |
| "include/hardware/structs/sio.h", |
| "include/hardware/structs/spi.h", |
| "include/hardware/structs/ssi.h", |
| "include/hardware/structs/syscfg.h", |
| "include/hardware/structs/sysinfo.h", |
| "include/hardware/structs/systick.h", |
| "include/hardware/structs/tbman.h", |
| "include/hardware/structs/timer.h", |
| "include/hardware/structs/uart.h", |
| "include/hardware/structs/usb.h", |
| "include/hardware/structs/usb_dpram.h", |
| "include/hardware/structs/vreg_and_chip_reset.h", |
| "include/hardware/structs/watchdog.h", |
| "include/hardware/structs/xip.h", |
| "include/hardware/structs/xip_ctrl.h", |
| "include/hardware/structs/xosc.h", |
| ], |
| includes = ["include"], |
| target_compatible_with = ["//bazel/constraint:rp2040"], |
| ) |