Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 1 | exports_files(["src/rp2_common/pico_standard_link/memmap_default.ld"]) |
| 2 | |
| 3 | cc_library( |
| 4 | name = "pico-sdk", |
| 5 | srcs = [ |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 6 | "lib/tinyusb/src/class/audio/audio_device.c", |
| 7 | "lib/tinyusb/src/class/cdc/cdc_device.c", |
| 8 | "lib/tinyusb/src/class/dfu/dfu_device.c", |
| 9 | "lib/tinyusb/src/class/dfu/dfu_rt_device.c", |
| 10 | "lib/tinyusb/src/class/hid/hid_device.c", |
| 11 | "lib/tinyusb/src/class/midi/midi_device.c", |
| 12 | "lib/tinyusb/src/class/msc/msc_device.c", |
| 13 | "lib/tinyusb/src/class/net/ecm_rndis_device.c", |
| 14 | "lib/tinyusb/src/class/net/ncm_device.c", |
| 15 | "lib/tinyusb/src/class/usbtmc/usbtmc_device.c", |
| 16 | "lib/tinyusb/src/class/vendor/vendor_device.c", |
| 17 | "lib/tinyusb/src/class/video/video_device.c", |
| 18 | "lib/tinyusb/src/common/tusb_fifo.c", |
| 19 | "lib/tinyusb/src/device/usbd.c", |
| 20 | "lib/tinyusb/src/device/usbd_control.c", |
| 21 | "lib/tinyusb/src/portable/raspberrypi/rp2040/dcd_rp2040.c", |
| 22 | "lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.c", |
| 23 | "lib/tinyusb/src/tusb.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 24 | "src/common/pico_sync/critical_section.c", |
| 25 | "src/common/pico_sync/lock_core.c", |
| 26 | "src/common/pico_sync/mutex.c", |
| 27 | "src/common/pico_sync/sem.c", |
| 28 | "src/common/pico_time/time.c", |
| 29 | "src/common/pico_time/timeout_helper.c", |
| 30 | "src/common/pico_util/datetime.c", |
| 31 | "src/common/pico_util/pheap.c", |
| 32 | "src/common/pico_util/queue.c", |
| 33 | "src/rp2_common/hardware_claim/claim.c", |
| 34 | "src/rp2_common/hardware_clocks/clocks.c", |
| 35 | "src/rp2_common/hardware_divider/divider.S", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 36 | "src/rp2_common/hardware_dma/dma.c", |
| 37 | "src/rp2_common/hardware_flash/flash.c", |
Ravago Jones | 9c10b2a | 2023-02-06 12:41:59 -0800 | [diff] [blame] | 38 | "src/rp2_common/hardware_i2c/i2c.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 39 | "src/rp2_common/hardware_gpio/gpio.c", |
| 40 | "src/rp2_common/hardware_irq/irq.c", |
| 41 | "src/rp2_common/hardware_irq/irq_handler_chain.S", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 42 | "src/rp2_common/hardware_pio/pio.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 43 | "src/rp2_common/hardware_pll/pll.c", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 44 | "src/rp2_common/hardware_spi/spi.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 45 | "src/rp2_common/hardware_sync/sync.c", |
| 46 | "src/rp2_common/hardware_timer/timer.c", |
| 47 | "src/rp2_common/hardware_uart/uart.c", |
| 48 | "src/rp2_common/hardware_vreg/vreg.c", |
| 49 | "src/rp2_common/hardware_watchdog/watchdog.c", |
| 50 | "src/rp2_common/hardware_xosc/xosc.c", |
| 51 | "src/rp2_common/pico_bit_ops/bit_ops_aeabi.S", |
| 52 | "src/rp2_common/pico_bootrom/bootrom.c", |
| 53 | "src/rp2_common/pico_divider/divider.S", |
| 54 | "src/rp2_common/pico_double/double_aeabi.S", |
| 55 | "src/rp2_common/pico_double/double_init_rom.c", |
| 56 | "src/rp2_common/pico_double/double_math.c", |
| 57 | "src/rp2_common/pico_double/double_v1_rom_shim.S", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 58 | "src/rp2_common/pico_fix/rp2040_usb_device_enumeration/rp2040_usb_device_enumeration.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 59 | "src/rp2_common/pico_float/float_aeabi.S", |
| 60 | "src/rp2_common/pico_float/float_init_rom.c", |
| 61 | "src/rp2_common/pico_float/float_math.c", |
| 62 | "src/rp2_common/pico_float/float_v1_rom_shim.S", |
| 63 | "src/rp2_common/pico_int64_ops/pico_int64_ops_aeabi.S", |
| 64 | "src/rp2_common/pico_malloc/pico_malloc.c", |
| 65 | "src/rp2_common/pico_mem_ops/mem_ops_aeabi.S", |
| 66 | "src/rp2_common/pico_platform/platform.c", |
| 67 | "src/rp2_common/pico_printf/printf.c", |
| 68 | "src/rp2_common/pico_runtime/runtime.c", |
| 69 | "src/rp2_common/pico_standard_link/binary_info.c", |
| 70 | "src/rp2_common/pico_standard_link/crt0.S", |
| 71 | "src/rp2_common/pico_standard_link/new_delete.cpp", |
| 72 | "src/rp2_common/pico_stdio/stdio.c", |
| 73 | "src/rp2_common/pico_stdio_uart/stdio_uart.c", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 74 | "src/rp2_common/pico_stdio_usb/reset_interface.c", |
| 75 | "src/rp2_common/pico_stdio_usb/stdio_usb.c", |
| 76 | "src/rp2_common/pico_stdio_usb/stdio_usb_descriptors.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 77 | "src/rp2_common/pico_stdlib/stdlib.c", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 78 | "src/rp2_common/pico_unique_id/unique_id.c", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 79 | #"src/common/pico_util/doc.h", |
| 80 | ], |
| 81 | hdrs = [ |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 82 | "lib/tinyusb/src/class/cdc/cdc.h", |
| 83 | "lib/tinyusb/src/class/cdc/cdc_device.h", |
| 84 | "lib/tinyusb/src/common/tusb_common.h", |
| 85 | "lib/tinyusb/src/common/tusb_compiler.h", |
| 86 | "lib/tinyusb/src/common/tusb_error.h", |
| 87 | "lib/tinyusb/src/common/tusb_fifo.h", |
| 88 | "lib/tinyusb/src/common/tusb_timeout.h", |
| 89 | "lib/tinyusb/src/common/tusb_types.h", |
| 90 | "lib/tinyusb/src/common/tusb_verify.h", |
| 91 | "lib/tinyusb/src/device/dcd.h", |
| 92 | "lib/tinyusb/src/device/dcd_attr.h", |
| 93 | "lib/tinyusb/src/device/usbd.h", |
| 94 | "lib/tinyusb/src/device/usbd_pvt.h", |
| 95 | "lib/tinyusb/src/osal/osal.h", |
| 96 | "lib/tinyusb/src/osal/osal_pico.h", |
| 97 | "lib/tinyusb/src/portable/raspberrypi/rp2040/rp2040_usb.h", |
| 98 | "lib/tinyusb/src/tusb.h", |
| 99 | "lib/tinyusb/src/tusb_option.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 100 | "src/boards/include/boards/pico.h", |
| 101 | "src/common/pico_base/include/pico.h", |
| 102 | "src/common/pico_base/include/pico/assert.h", |
| 103 | "src/common/pico_base/include/pico/config.h", |
| 104 | "src/common/pico_base/include/pico/config_autogen.h", |
| 105 | "src/common/pico_base/include/pico/error.h", |
| 106 | "src/common/pico_base/include/pico/types.h", |
| 107 | "src/common/pico_base/include/pico/version.h", |
| 108 | "src/common/pico_binary_info/include/pico/binary_info.h", |
| 109 | "src/common/pico_binary_info/include/pico/binary_info/code.h", |
| 110 | "src/common/pico_binary_info/include/pico/binary_info/defs.h", |
| 111 | "src/common/pico_binary_info/include/pico/binary_info/structure.h", |
| 112 | "src/common/pico_stdlib/include/pico/stdlib.h", |
| 113 | "src/common/pico_sync/include/pico/critical_section.h", |
| 114 | "src/common/pico_sync/include/pico/lock_core.h", |
| 115 | "src/common/pico_sync/include/pico/mutex.h", |
| 116 | "src/common/pico_sync/include/pico/sem.h", |
| 117 | "src/common/pico_sync/include/pico/sync.h", |
| 118 | "src/common/pico_time/include/pico/time.h", |
| 119 | "src/common/pico_time/include/pico/timeout_helper.h", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 120 | "src/common/pico_usb_reset_interface/include/pico/usb_reset_interface.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 121 | "src/common/pico_util/include/pico/util/datetime.h", |
| 122 | "src/common/pico_util/include/pico/util/pheap.h", |
| 123 | "src/common/pico_util/include/pico/util/queue.h", |
| 124 | "src/rp2040/hardware_regs/include/hardware/platform_defs.h", |
| 125 | "src/rp2040/hardware_regs/include/hardware/regs/adc.h", |
| 126 | "src/rp2040/hardware_regs/include/hardware/regs/addressmap.h", |
| 127 | "src/rp2040/hardware_regs/include/hardware/regs/busctrl.h", |
| 128 | "src/rp2040/hardware_regs/include/hardware/regs/clocks.h", |
| 129 | "src/rp2040/hardware_regs/include/hardware/regs/dma.h", |
| 130 | "src/rp2040/hardware_regs/include/hardware/regs/dreq.h", |
| 131 | "src/rp2040/hardware_regs/include/hardware/regs/i2c.h", |
| 132 | "src/rp2040/hardware_regs/include/hardware/regs/intctrl.h", |
| 133 | "src/rp2040/hardware_regs/include/hardware/regs/io_bank0.h", |
| 134 | "src/rp2040/hardware_regs/include/hardware/regs/io_qspi.h", |
| 135 | "src/rp2040/hardware_regs/include/hardware/regs/m0plus.h", |
| 136 | "src/rp2040/hardware_regs/include/hardware/regs/pads_bank0.h", |
| 137 | "src/rp2040/hardware_regs/include/hardware/regs/pads_qspi.h", |
| 138 | "src/rp2040/hardware_regs/include/hardware/regs/pio.h", |
| 139 | "src/rp2040/hardware_regs/include/hardware/regs/pll.h", |
| 140 | "src/rp2040/hardware_regs/include/hardware/regs/psm.h", |
| 141 | "src/rp2040/hardware_regs/include/hardware/regs/pwm.h", |
| 142 | "src/rp2040/hardware_regs/include/hardware/regs/resets.h", |
| 143 | "src/rp2040/hardware_regs/include/hardware/regs/rosc.h", |
| 144 | "src/rp2040/hardware_regs/include/hardware/regs/rtc.h", |
| 145 | "src/rp2040/hardware_regs/include/hardware/regs/sio.h", |
| 146 | "src/rp2040/hardware_regs/include/hardware/regs/spi.h", |
| 147 | "src/rp2040/hardware_regs/include/hardware/regs/ssi.h", |
| 148 | "src/rp2040/hardware_regs/include/hardware/regs/syscfg.h", |
| 149 | "src/rp2040/hardware_regs/include/hardware/regs/sysinfo.h", |
| 150 | "src/rp2040/hardware_regs/include/hardware/regs/tbman.h", |
| 151 | "src/rp2040/hardware_regs/include/hardware/regs/timer.h", |
| 152 | "src/rp2040/hardware_regs/include/hardware/regs/uart.h", |
| 153 | "src/rp2040/hardware_regs/include/hardware/regs/usb.h", |
| 154 | "src/rp2040/hardware_regs/include/hardware/regs/usb_device_dpram.h", |
| 155 | "src/rp2040/hardware_regs/include/hardware/regs/vreg_and_chip_reset.h", |
| 156 | "src/rp2040/hardware_regs/include/hardware/regs/watchdog.h", |
| 157 | "src/rp2040/hardware_regs/include/hardware/regs/xip.h", |
| 158 | "src/rp2040/hardware_regs/include/hardware/regs/xosc.h", |
| 159 | "src/rp2040/hardware_structs/include/hardware/structs/adc.h", |
| 160 | "src/rp2040/hardware_structs/include/hardware/structs/bus_ctrl.h", |
| 161 | "src/rp2040/hardware_structs/include/hardware/structs/clocks.h", |
| 162 | "src/rp2040/hardware_structs/include/hardware/structs/dma.h", |
| 163 | "src/rp2040/hardware_structs/include/hardware/structs/i2c.h", |
| 164 | "src/rp2040/hardware_structs/include/hardware/structs/interp.h", |
| 165 | "src/rp2040/hardware_structs/include/hardware/structs/iobank0.h", |
| 166 | "src/rp2040/hardware_structs/include/hardware/structs/ioqspi.h", |
| 167 | "src/rp2040/hardware_structs/include/hardware/structs/mpu.h", |
| 168 | "src/rp2040/hardware_structs/include/hardware/structs/pads_qspi.h", |
| 169 | "src/rp2040/hardware_structs/include/hardware/structs/padsbank0.h", |
| 170 | "src/rp2040/hardware_structs/include/hardware/structs/pio.h", |
| 171 | "src/rp2040/hardware_structs/include/hardware/structs/pll.h", |
| 172 | "src/rp2040/hardware_structs/include/hardware/structs/psm.h", |
| 173 | "src/rp2040/hardware_structs/include/hardware/structs/pwm.h", |
| 174 | "src/rp2040/hardware_structs/include/hardware/structs/resets.h", |
| 175 | "src/rp2040/hardware_structs/include/hardware/structs/rosc.h", |
| 176 | "src/rp2040/hardware_structs/include/hardware/structs/rtc.h", |
| 177 | "src/rp2040/hardware_structs/include/hardware/structs/scb.h", |
| 178 | "src/rp2040/hardware_structs/include/hardware/structs/sio.h", |
| 179 | "src/rp2040/hardware_structs/include/hardware/structs/spi.h", |
| 180 | "src/rp2040/hardware_structs/include/hardware/structs/ssi.h", |
| 181 | "src/rp2040/hardware_structs/include/hardware/structs/syscfg.h", |
| 182 | "src/rp2040/hardware_structs/include/hardware/structs/systick.h", |
| 183 | "src/rp2040/hardware_structs/include/hardware/structs/timer.h", |
| 184 | "src/rp2040/hardware_structs/include/hardware/structs/uart.h", |
| 185 | "src/rp2040/hardware_structs/include/hardware/structs/usb.h", |
| 186 | "src/rp2040/hardware_structs/include/hardware/structs/vreg_and_chip_reset.h", |
| 187 | "src/rp2040/hardware_structs/include/hardware/structs/watchdog.h", |
| 188 | "src/rp2040/hardware_structs/include/hardware/structs/xip_ctrl.h", |
| 189 | "src/rp2040/hardware_structs/include/hardware/structs/xosc.h", |
| 190 | "src/rp2_common/cmsis/include/cmsis/rename_exceptions.h", |
| 191 | "src/rp2_common/hardware_base/include/hardware/address_mapped.h", |
| 192 | "src/rp2_common/hardware_claim/include/hardware/claim.h", |
| 193 | "src/rp2_common/hardware_clocks/include/hardware/clocks.h", |
| 194 | "src/rp2_common/hardware_divider/include/hardware/divider.h", |
| 195 | "src/rp2_common/hardware_divider/include/hardware/divider_helper.S", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 196 | "src/rp2_common/hardware_dma/include/hardware/dma.h", |
| 197 | "src/rp2_common/hardware_flash/include/hardware/flash.h", |
Ravago Jones | 9c10b2a | 2023-02-06 12:41:59 -0800 | [diff] [blame] | 198 | "src/rp2_common/hardware_i2c/include/hardware/i2c.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 199 | "src/rp2_common/hardware_gpio/include/hardware/gpio.h", |
| 200 | "src/rp2_common/hardware_irq/include/hardware/irq.h", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 201 | "src/rp2_common/hardware_pio/include/hardware/pio.h", |
| 202 | "src/rp2_common/hardware_pio/include/hardware/pio_instructions.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 203 | "src/rp2_common/hardware_pll/include/hardware/pll.h", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 204 | "src/rp2_common/hardware_pwm/include/hardware/pwm.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 205 | "src/rp2_common/hardware_resets/include/hardware/resets.h", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 206 | "src/rp2_common/hardware_spi/include/hardware/spi.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 207 | "src/rp2_common/hardware_sync/include/hardware/sync.h", |
| 208 | "src/rp2_common/hardware_timer/include/hardware/timer.h", |
| 209 | "src/rp2_common/hardware_uart/include/hardware/uart.h", |
| 210 | "src/rp2_common/hardware_vreg/include/hardware/vreg.h", |
| 211 | "src/rp2_common/hardware_watchdog/include/hardware/watchdog.h", |
| 212 | "src/rp2_common/hardware_xosc/include/hardware/xosc.h", |
| 213 | "src/rp2_common/pico_bootrom/include/pico/bootrom.h", |
| 214 | "src/rp2_common/pico_bootrom/include/pico/bootrom/sf_table.h", |
| 215 | "src/rp2_common/pico_double/include/pico/double.h", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 216 | "src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include/pico/fix/rp2040_usb_device_enumeration.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 217 | "src/rp2_common/pico_float/include/pico/float.h", |
| 218 | "src/rp2_common/pico_int64_ops/include/pico/int64_ops.h", |
| 219 | "src/rp2_common/pico_malloc/include/pico/malloc.h", |
| 220 | "src/rp2_common/pico_mem_ops/include/pico/mem_ops.h", |
| 221 | "src/rp2_common/pico_platform/include/pico/asm_helper.S", |
| 222 | "src/rp2_common/pico_platform/include/pico/platform.h", |
| 223 | "src/rp2_common/pico_printf/include/pico/printf.h", |
| 224 | "src/rp2_common/pico_runtime/include/pico/runtime.h", |
| 225 | "src/rp2_common/pico_stdio/include/pico/stdio.h", |
| 226 | "src/rp2_common/pico_stdio/include/pico/stdio/driver.h", |
| 227 | "src/rp2_common/pico_stdio_uart/include/pico/stdio_uart.h", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 228 | "src/rp2_common/pico_stdio_usb/include/pico/stdio_usb.h", |
| 229 | "src/rp2_common/pico_stdio_usb/include/pico/stdio_usb/reset_interface.h", |
| 230 | "src/rp2_common/pico_stdio_usb/include/tusb_config.h", |
| 231 | "src/rp2_common/pico_unique_id/include/pico/unique_id.h", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 232 | ], |
| 233 | copts = [ |
| 234 | "-Wno-unused-function", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 235 | "-Wno-pointer-arith", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 236 | ], |
| 237 | defines = [ |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 238 | "CFG_TUSB_DEBUG=0", |
| 239 | "CFG_TUSB_MCU=OPT_MCU_RP2040", |
| 240 | "CFG_TUSB_OS=OPT_OS_PICO", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 241 | "LIB_PICO_BIT_OPS=1", |
| 242 | "LIB_PICO_BIT_OPS_PICO=1", |
| 243 | "LIB_PICO_DIVIDER=1", |
| 244 | "LIB_PICO_DIVIDER_HARDWARE=1", |
| 245 | "LIB_PICO_DOUBLE=1", |
| 246 | "LIB_PICO_DOUBLE_PICO=1", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 247 | "LIB_PICO_FIX_RP2040_USB_DEVICE_ENUMERATION=1", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 248 | "LIB_PICO_FLOAT=1", |
| 249 | "LIB_PICO_FLOAT_PICO=1", |
| 250 | "LIB_PICO_INT64_OPS=1", |
| 251 | "LIB_PICO_INT64_OPS_PICO=1", |
| 252 | "LIB_PICO_MALLOC=1", |
| 253 | "LIB_PICO_MEM_OPS=1", |
| 254 | "LIB_PICO_MEM_OPS_PICO=1", |
| 255 | "LIB_PICO_PLATFORM=1", |
| 256 | "LIB_PICO_PRINTF=1", |
| 257 | "LIB_PICO_PRINTF_PICO=1", |
| 258 | "LIB_PICO_RUNTIME=1", |
| 259 | "LIB_PICO_STANDARD_LINK=1", |
| 260 | "LIB_PICO_STDIO=1", |
| 261 | "LIB_PICO_STDIO_UART=1", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 262 | "LIB_PICO_STDIO_USB=1", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 263 | "LIB_PICO_STDLIB=1", |
| 264 | "LIB_PICO_SYNC=1", |
| 265 | "LIB_PICO_SYNC_CORE=1", |
| 266 | "LIB_PICO_SYNC_CRITICAL_SECTION=1", |
| 267 | "LIB_PICO_SYNC_MUTEX=1", |
| 268 | "LIB_PICO_SYNC_SEM=1", |
| 269 | "LIB_PICO_TIME=1", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 270 | "LIB_PICO_UNIQUE_ID=1", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 271 | "LIB_PICO_UTIL=1", |
| 272 | "PICO_COPY_TO_RAM=0", |
| 273 | "PICO_CXX_ENABLE_EXCEPTIONS=0", |
| 274 | "PICO_NO_FLASH=0", |
| 275 | "PICO_USE_BLOCKED_RAM=0", |
| 276 | ], |
| 277 | includes = [ |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 278 | "lib/tinyusb/hw", |
| 279 | "lib/tinyusb/src", |
| 280 | "lib/tinyusb/src/common", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 281 | "src/boards/include", |
| 282 | "src/common/pico_base/include", |
| 283 | "src/common/pico_binary_info/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 284 | "src/common/pico_bit_ops/include", |
| 285 | "src/common/pico_divider/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 286 | "src/common/pico_stdlib/include", |
| 287 | "src/common/pico_sync/include", |
| 288 | "src/common/pico_time/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 289 | "src/common/pico_usb_reset_interface/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 290 | "src/common/pico_util/include", |
| 291 | "src/rp2040/hardware_regs/include", |
| 292 | "src/rp2040/hardware_structs/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 293 | "src/rp2_common/boot_stage2/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 294 | "src/rp2_common/cmsis/include", |
| 295 | "src/rp2_common/hardware_base/include", |
| 296 | "src/rp2_common/hardware_claim/include", |
| 297 | "src/rp2_common/hardware_clocks/include", |
| 298 | "src/rp2_common/hardware_divider/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 299 | "src/rp2_common/hardware_dma/include", |
| 300 | "src/rp2_common/hardware_flash/include", |
Ravago Jones | 9c10b2a | 2023-02-06 12:41:59 -0800 | [diff] [blame] | 301 | "src/rp2_common/hardware_i2c/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 302 | "src/rp2_common/hardware_gpio/include", |
| 303 | "src/rp2_common/hardware_irq/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 304 | "src/rp2_common/hardware_pio/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 305 | "src/rp2_common/hardware_pll/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 306 | "src/rp2_common/hardware_pwm/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 307 | "src/rp2_common/hardware_resets/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 308 | "src/rp2_common/hardware_spi/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 309 | "src/rp2_common/hardware_sync/include", |
| 310 | "src/rp2_common/hardware_timer/include", |
| 311 | "src/rp2_common/hardware_uart/include", |
| 312 | "src/rp2_common/hardware_vreg/include", |
| 313 | "src/rp2_common/hardware_watchdog/include", |
| 314 | "src/rp2_common/hardware_xosc/include", |
| 315 | "src/rp2_common/pico_bootrom/include", |
| 316 | "src/rp2_common/pico_double/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 317 | "src/rp2_common/pico_fix/rp2040_usb_device_enumeration/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 318 | "src/rp2_common/pico_float/include", |
| 319 | "src/rp2_common/pico_int64_ops/include", |
| 320 | "src/rp2_common/pico_malloc/include", |
| 321 | "src/rp2_common/pico_mem_ops/include", |
| 322 | "src/rp2_common/pico_platform/include", |
| 323 | "src/rp2_common/pico_printf/include", |
| 324 | "src/rp2_common/pico_runtime/include", |
| 325 | "src/rp2_common/pico_stdio/include", |
| 326 | "src/rp2_common/pico_stdio_uart/include", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 327 | "src/rp2_common/pico_stdio_usb/include", |
| 328 | "src/rp2_common/pico_unique_id/include", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 329 | ], |
| 330 | linkopts = [ |
| 331 | "-Wl,--wrap=" + fn |
| 332 | for fn in [ |
| 333 | "sprintf", |
| 334 | "snprintf", |
| 335 | "vsnprintf", |
| 336 | "__clzsi2", |
| 337 | "__clzdi2", |
| 338 | "__ctzsi2", |
| 339 | "__ctzdi2", |
| 340 | "__popcountsi2", |
| 341 | "__popcountdi2", |
| 342 | "__clz", |
| 343 | "__clzl", |
| 344 | "__clzll", |
| 345 | "__aeabi_idiv", |
| 346 | "__aeabi_idivmod", |
| 347 | "__aeabi_ldivmod", |
| 348 | "__aeabi_uidiv", |
| 349 | "__aeabi_uidivmod", |
| 350 | "__aeabi_uldivmod", |
| 351 | "__aeabi_dadd", |
| 352 | "__aeabi_ddiv", |
| 353 | "__aeabi_dmul", |
| 354 | "__aeabi_drsub", |
| 355 | "__aeabi_dsub", |
| 356 | "__aeabi_cdcmpeq", |
| 357 | "__aeabi_cdrcmple", |
| 358 | "__aeabi_cdcmple", |
| 359 | "__aeabi_dcmpeq", |
| 360 | "__aeabi_dcmplt", |
| 361 | "__aeabi_dcmple", |
| 362 | "__aeabi_dcmpge", |
| 363 | "__aeabi_dcmpgt", |
| 364 | "__aeabi_dcmpun", |
| 365 | "__aeabi_i2d", |
| 366 | "__aeabi_l2d", |
| 367 | "__aeabi_ui2d", |
| 368 | "__aeabi_ul2d", |
| 369 | "__aeabi_d2iz", |
| 370 | "__aeabi_d2lz", |
| 371 | "__aeabi_d2uiz", |
| 372 | "__aeabi_d2ulz", |
| 373 | "__aeabi_d2f", |
| 374 | "sqrt", |
| 375 | "cos", |
| 376 | "sin", |
| 377 | "tan", |
| 378 | "atan2", |
| 379 | "exp", |
| 380 | "log", |
| 381 | "ldexp", |
| 382 | "copysign", |
| 383 | "trunc", |
| 384 | "floor", |
| 385 | "ceil", |
| 386 | "round", |
| 387 | "sincos", |
| 388 | "asin", |
| 389 | "acos", |
| 390 | "atan", |
| 391 | "sinh", |
| 392 | "cosh", |
| 393 | "tanh", |
| 394 | "asinh", |
| 395 | "acosh", |
| 396 | "atanh", |
| 397 | "exp2", |
| 398 | "log2", |
| 399 | "exp10", |
| 400 | "log10", |
| 401 | "pow", |
| 402 | "powint", |
| 403 | "hypot", |
| 404 | "cbrt", |
| 405 | "fmod", |
| 406 | "drem", |
| 407 | "remainder", |
| 408 | "remquo", |
| 409 | "expm1", |
| 410 | "log1p", |
| 411 | "fma", |
| 412 | "__aeabi_lmul", |
| 413 | "__aeabi_fadd", |
| 414 | "__aeabi_fdiv", |
| 415 | "__aeabi_fmul", |
| 416 | "__aeabi_frsub", |
| 417 | "__aeabi_fsub", |
| 418 | "__aeabi_cfcmpeq", |
| 419 | "__aeabi_cfrcmple", |
| 420 | "__aeabi_cfcmple", |
| 421 | "__aeabi_fcmpeq", |
| 422 | "__aeabi_fcmplt", |
| 423 | "__aeabi_fcmple", |
| 424 | "__aeabi_fcmpge", |
| 425 | "__aeabi_fcmpgt", |
| 426 | "__aeabi_fcmpun", |
| 427 | "__aeabi_i2f", |
| 428 | "__aeabi_l2f", |
| 429 | "__aeabi_ui2f", |
| 430 | "__aeabi_ul2f", |
| 431 | "__aeabi_f2iz", |
| 432 | "__aeabi_f2lz", |
| 433 | "__aeabi_f2uiz", |
| 434 | "__aeabi_f2ulz", |
| 435 | "__aeabi_f2d", |
| 436 | "sqrtf", |
| 437 | "cosf", |
| 438 | "sinf", |
| 439 | "tanf", |
| 440 | "atan2f", |
| 441 | "expf", |
| 442 | "logf", |
| 443 | "ldexpf", |
| 444 | "copysignf", |
| 445 | "truncf", |
| 446 | "floorf", |
| 447 | "ceilf", |
| 448 | "roundf", |
| 449 | "sincosf", |
| 450 | "asinf", |
| 451 | "acosf", |
| 452 | "atanf", |
| 453 | "sinhf", |
| 454 | "coshf", |
| 455 | "tanhf", |
| 456 | "asinhf", |
| 457 | "acoshf", |
| 458 | "atanhf", |
| 459 | "exp2f", |
| 460 | "log2f", |
| 461 | "exp10f", |
| 462 | "log10f", |
| 463 | "powf", |
| 464 | "powintf", |
| 465 | "hypotf", |
| 466 | "cbrtf", |
| 467 | "fmodf", |
| 468 | "dremf", |
| 469 | "remainderf", |
| 470 | "remquof", |
| 471 | "expm1f", |
| 472 | "log1pf", |
| 473 | "fmaf", |
| 474 | "malloc", |
| 475 | "calloc", |
| 476 | "free", |
| 477 | "memcpy", |
| 478 | "memset", |
Ravago Jones | 281800e | 2023-02-13 02:24:07 -0800 | [diff] [blame] | 479 | "realloc", |
Austin Schuh | 0a96ea3 | 2022-01-01 22:29:30 -0800 | [diff] [blame] | 480 | "__aeabi_memcpy", |
| 481 | "__aeabi_memset", |
| 482 | "__aeabi_memcpy4", |
| 483 | "__aeabi_memset4", |
| 484 | "__aeabi_memcpy8", |
| 485 | "__aeabi_memset8", |
| 486 | "printf", |
| 487 | "vprintf", |
| 488 | "puts", |
| 489 | "putchar", |
| 490 | "getchar", |
| 491 | ] |
| 492 | ] + [ |
| 493 | "-Wl,-z,max-page-size=4096", |
| 494 | ], |
| 495 | target_compatible_with = [ |
| 496 | "@platforms//os:none", |
| 497 | "//tools/platforms/hardware:cortex_m0plus", |
| 498 | ], |
| 499 | visibility = ["//visibility:public"], |
| 500 | deps = [ |
| 501 | "//third_party/pico-sdk/src/rp2_common/boot_stage2:boot_stage2_header", |
| 502 | ], |
| 503 | ) |