/hal_rpi_pico-3.4.0/src/rp2_common/hardware_base/include/hardware/ |
D | address_mapped.h | 84 #define hw_alias_check_addr(addr) ((uintptr_t)(addr)) argument 93 __force_inline static uint32_t xip_alias_check_addr(const void *addr) { in xip_alias_check_addr() argument 94 uint32_t rc = (uintptr_t)addr; in xip_alias_check_addr() 100 #define hw_set_alias_untyped(addr) ((void *)(REG_ALIAS_SET_BITS | hw_alias_check_addr(addr))) argument 101 #define hw_clear_alias_untyped(addr) ((void *)(REG_ALIAS_CLR_BITS | hw_alias_check_addr(addr))) argument 102 #define hw_xor_alias_untyped(addr) ((void *)(REG_ALIAS_XOR_BITS | hw_alias_check_addr(addr))) argument 103 #define xip_noalloc_alias_untyped(addr) ((void *)(XIP_NOALLOC_BASE | xip_alias_check_addr(addr))) argument 104 #define xip_nocache_alias_untyped(addr) ((void *)(XIP_NOCACHE_BASE | xip_alias_check_addr(addr))) argument 105 #define xip_nocache_noalloc_alias_untyped(addr) ((void *)(XIP_NOCACHE_NOALLOC_BASE | xip_alias_chec… argument 121 __force_inline static void hw_set_bits(io_rw_32 *addr, uint32_t mask) { in hw_set_bits() argument [all …]
|
/hal_rpi_pico-3.4.0/src/rp2_common/cmsis/stub/CMSIS/Core/Include/ |
D | cmsis_compiler.h | 106 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void*)(addr))->v… argument 110 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 114 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 118 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument 178 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 182 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 186 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 190 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument 249 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 253 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument [all …]
|
D | cmsis_armcc.h | 91 #define __UNALIGNED_UINT16_WRITE(addr, val) ((*((__packed uint16_t *)(addr))) = (val)) argument 94 #define __UNALIGNED_UINT16_READ(addr) (*((const __packed uint16_t *)(addr))) argument 97 #define __UNALIGNED_UINT32_WRITE(addr, val) ((*((__packed uint32_t *)(addr))) = (val)) argument 100 #define __UNALIGNED_UINT32_READ(addr) (*((const __packed uint32_t *)(addr))) argument
|
D | cmsis_gcc.h | 84 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 92 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 100 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 108 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument 1107 __STATIC_FORCEINLINE uint8_t __LDREXB(volatile uint8_t *addr) in __LDREXB() argument 1112 __ASM volatile ("ldrexb %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXB() 1117 __ASM volatile ("ldrexb %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXB() 1129 __STATIC_FORCEINLINE uint16_t __LDREXH(volatile uint16_t *addr) in __LDREXH() argument 1134 __ASM volatile ("ldrexh %0, %1" : "=r" (result) : "Q" (*addr) ); in __LDREXH() 1139 __ASM volatile ("ldrexh %0, [%1]" : "=r" (result) : "r" (addr) : "memory" ); in __LDREXH() [all …]
|
D | cmsis_iccarm.h | 837 __IAR_FT uint8_t __LDRBT(volatile uint8_t *addr) in __LDRBT() argument 840 __ASM volatile ("LDRBT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); in __LDRBT() 844 __IAR_FT uint16_t __LDRHT(volatile uint16_t *addr) in __LDRHT() argument 847 __ASM volatile ("LDRHT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); in __LDRHT() 851 __IAR_FT uint32_t __LDRT(volatile uint32_t *addr) in __LDRT() argument 854 __ASM volatile ("LDRT %0, [%1]" : "=r" (res) : "r" (addr) : "memory"); in __LDRT() 858 __IAR_FT void __STRBT(uint8_t value, volatile uint8_t *addr) in __STRBT() argument 860 __ASM volatile ("STRBT %1, [%0]" : : "r" (addr), "r" ((uint32_t)value) : "memory"); in __STRBT() 863 __IAR_FT void __STRHT(uint16_t value, volatile uint16_t *addr) in __STRHT() argument 865 __ASM volatile ("STRHT %1, [%0]" : : "r" (addr), "r" ((uint32_t)value) : "memory"); in __STRHT() [all …]
|
D | cmsis_armclang.h | 81 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 89 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 97 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 105 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument
|
D | cmsis_armclang_ltm.h | 81 …#define __UNALIGNED_UINT16_WRITE(addr, val) (void)((((struct T_UINT16_WRITE *)(void *)(addr))->… argument 89 …#define __UNALIGNED_UINT16_READ(addr) (((const struct T_UINT16_READ *)(const void *)(addr… argument 97 …#define __UNALIGNED_UINT32_WRITE(addr, val) (void)((((struct T_UINT32_WRITE *)(void *)(addr))->… argument 105 …#define __UNALIGNED_UINT32_READ(addr) (((const struct T_UINT32_READ *)(const void *)(addr… argument
|
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_i2c/ |
D | i2c.c | 30 static inline bool i2c_reserved_addr(uint8_t addr) { in i2c_reserved_addr() argument 31 return (addr & 0x78) == 0 || (addr & 0x78) == 0x78; in i2c_reserved_addr() 114 void i2c_set_slave_mode(i2c_inst_t *i2c, bool slave, uint8_t addr) { in i2c_set_slave_mode() argument 115 invalid_params_if(I2C, addr >= 0x80); // 7-bit addresses in i2c_set_slave_mode() 116 invalid_params_if(I2C, i2c_reserved_addr(addr)); in i2c_set_slave_mode() 125 i2c->hw->sar = addr; in i2c_set_slave_mode() 135 static int i2c_write_blocking_internal(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t le… in i2c_write_blocking_internal() argument 137 invalid_params_if(I2C, addr >= 0x80); // 7-bit addresses in i2c_write_blocking_internal() 138 invalid_params_if(I2C, i2c_reserved_addr(addr)); in i2c_write_blocking_internal() 145 i2c->hw->tar = addr; in i2c_write_blocking_internal() [all …]
|
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_pio/include/hardware/ |
D | pio_instructions.h | 161 static inline uint pio_encode_jmp(uint addr) { in pio_encode_jmp() argument 162 return _pio_encode_instr_and_args(pio_instr_bits_jmp, 0, addr); in pio_encode_jmp() 174 static inline uint pio_encode_jmp_not_x(uint addr) { in pio_encode_jmp_not_x() argument 175 return _pio_encode_instr_and_args(pio_instr_bits_jmp, 1, addr); in pio_encode_jmp_not_x() 187 static inline uint pio_encode_jmp_x_dec(uint addr) { in pio_encode_jmp_x_dec() argument 188 return _pio_encode_instr_and_args(pio_instr_bits_jmp, 2, addr); in pio_encode_jmp_x_dec() 200 static inline uint pio_encode_jmp_not_y(uint addr) { in pio_encode_jmp_not_y() argument 201 return _pio_encode_instr_and_args(pio_instr_bits_jmp, 3, addr); in pio_encode_jmp_not_y() 213 static inline uint pio_encode_jmp_y_dec(uint addr) { in pio_encode_jmp_y_dec() argument 214 return _pio_encode_instr_and_args(pio_instr_bits_jmp, 4, addr); in pio_encode_jmp_y_dec() [all …]
|
D | pio.h | 835 return (uint8_t) pio->sm[sm].addr; in pio_sm_get_pc()
|
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_i2c/include/hardware/ |
D | i2c.h | 130 void i2c_set_slave_mode(i2c_inst_t *i2c, bool slave, uint8_t addr); 177 int i2c_write_blocking_until(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool no… 191 int i2c_read_blocking_until(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nostop, a… 208 static inline int i2c_write_timeout_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t le… in i2c_write_timeout_us() argument 210 return i2c_write_blocking_until(i2c, addr, src, len, nostop, t); in i2c_write_timeout_us() 213 int i2c_write_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bo… 227 static inline int i2c_read_timeout_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool… in i2c_read_timeout_us() argument 229 return i2c_read_blocking_until(i2c, addr, dst, len, nostop, t); in i2c_read_timeout_us() 232 int i2c_read_timeout_per_char_us(i2c_inst_t *i2c, uint8_t addr, uint8_t *dst, size_t len, bool nost… 245 int i2c_write_blocking(i2c_inst_t *i2c, uint8_t addr, const uint8_t *src, size_t len, bool nostop); [all …]
|
/hal_rpi_pico-3.4.0/tools/elf2uf2/ |
D | main.cpp | 128 int check_address_range(const address_ranges& valid_ranges, uint32_t addr, uint32_t vaddr, uint32_t… in check_address_range() argument 130 if (range.from <= addr && range.to >= addr + size) { in check_address_range() 132 …rn fail(ERROR_INCOMPATIBLE, "ELF contains memory contents for uninitialized memory at 0x%p", addr); in check_address_range() 136 … printf("%s segment %08x->%08x (%08x->%08x)\n", uninitialized ? "Uninitialized" : "Mapped", addr, in check_address_range() 137 addr + size, vaddr, vaddr+size); in check_address_range() 142 …ATIBLE, "Memory segment %08x->%08x is outside of valid address range for device", addr, addr+size); in check_address_range() 175 uint addr = entry.paddr; in check_elf32_ph_entries() local 179 uint off = addr & (PAGE_SIZE - 1); in check_elf32_ph_entries() 181 auto &fragments = pages[addr - off]; // list of fragments in check_elf32_ph_entries() 193 addr += len; in check_elf32_ph_entries() [all …]
|
/hal_rpi_pico-3.4.0/src/rp2_common/pico_runtime/ |
D | runtime.c | 52 uintptr_t addr = (uintptr_t) stack_bottom; in runtime_install_stack_guard() local 55 addr = (addr + 31u) & ~31u; in runtime_install_stack_guard() 58 uint32_t subregion_select = 0xffu ^ (1u << ((addr >> 5u) & 7u)); in runtime_install_stack_guard() 60 mpu_hw->rbar = (addr & (uint)~0xff) | M0PLUS_MPU_RBAR_VALID_BITS | 0; in runtime_install_stack_guard()
|
/hal_rpi_pico-3.4.0/src/rp2_common/pico_cyw43_driver/cybt_shared_bus/ |
D | cybt_shared_bus_driver.c | 201 uint16_t num_bytes, addr, data_pos, type, idx, octet; in cybt_fw_get_data() local 221 addr = (uint16_t)addr32; in cybt_fw_get_data() 245 hfd->dest_addr = addr; in cybt_fw_get_data() 269 uint16_t addr = *(p_btfw_cb->p_next_line_start)++ << 8; in cybt_fw_get_data() local 270 addr |= *(p_btfw_cb->p_next_line_start)++; in cybt_fw_get_data() 292 hfd->dest_addr = addr; in cybt_fw_get_data() 623 uint32_t addr = 0; in cybt_get_addr() local 627 addr = H2B_BUF_ADDR; in cybt_get_addr() 630 addr = H2B_BUF_IN_ADDR; in cybt_get_addr() 633 addr = H2B_BUF_OUT_ADDR; in cybt_get_addr() [all …]
|
/hal_rpi_pico-3.4.0/src/rp2_common/pico_cyw43_driver/ |
D | cyw43_bus_pio_spi.c | 365 static inline uint32_t make_cmd(bool write, bool inc, uint32_t fn, uint32_t addr, uint32_t sz) { in make_cmd() argument 366 return write << 31 | inc << 30 | fn << 28 | (addr & 0x1ffff) << 11 | sz; in make_cmd() 485 int cyw43_read_bytes(cyw43_int_t *self, uint32_t fn, uint32_t addr, size_t len, uint8_t *buf) { in cyw43_read_bytes() argument 486 assert(fn != BACKPLANE_FUNCTION || (len <= 64 && (addr + len) <= 0x8000)); in cyw43_read_bytes() 491 self->spi_header[padding > 0 ? 0 : 1] = make_cmd(false, true, fn, addr, len + padding); in cyw43_read_bytes() 512 int cyw43_write_bytes(cyw43_int_t *self, uint32_t fn, uint32_t addr, size_t len, const uint8_t *src… in cyw43_write_bytes() argument 513 assert(fn != BACKPLANE_FUNCTION || (len <= 64 && (addr + len) <= 0x8000)); in cyw43_write_bytes() 534 self->spi_header[1] = make_cmd(true, true, fn, addr, len); in cyw43_write_bytes() 542 self->spi_header[1] = make_cmd(true, true, fn, addr, len); in cyw43_write_bytes()
|
/hal_rpi_pico-3.4.0/src/rp2_common/hardware_irq/ |
D | irq.c | 34 static inline void *add_thumb_bit(void *addr) { in add_thumb_bit() argument 35 return (void *) (((uintptr_t) addr) | 0x1); in add_thumb_bit() 38 static inline void *remove_thumb_bit(void *addr) { in remove_thumb_bit() argument 39 return (void *) (((uintptr_t) addr) & (uint)~0x1); in remove_thumb_bit()
|
/hal_rpi_pico-3.4.0/src/rp2040/hardware_structs/include/hardware/structs/ |
D | pio.h | 60 io_ro_32 addr;
|