跳到主要内容

Hardware APIs

本章包含以下 API 分组:

  • hardware_adc(hardware-adc.mdx): Analog to Digital Converter (ADC) API.
  • hardware_base(hardware-base.mdx): Low-level types and (atomic) accessors for memory-mapped hardware registers.
  • hardware_boot_lock(hardware-boot-lock.mdx)
  • hardware_claim(hardware-claim.mdx): Lightweight hardware resource management API.
  • hardware_clocks(hardware-clocks.mdx): Clock Management API.
  • hardware_divider(hardware-divider.mdx): RP2040 Low Low-level hardware-divider API. Non-RP2040 platforms provide software versions of all the functions.
  • hardware_dcp(hardware-dcp.mdx) RP2350: Assembly macros for the Double Coprocessor.
  • hardware_dma(hardware-dma.mdx): DMA Controller API.
  • hardware_exception(hardware-exception.mdx): Methods for setting processor exception handlers.
  • hardware_flash(hardware-flash.mdx): Low level flash programming and erase API.
  • hardware_gpio(hardware-gpio.mdx): General Purpose Input/Output (GPIO) API.
  • hardware_hazard3(hardware-hazard3.mdx) RP2350: Accessors for Hazard3-specific RISC-V CSRs, and intrinsics for Hazard3 custom instructions.
  • hardware_i2c(hardware-i2c.mdx): I2C Controller API.
  • hardware_interp(hardware-interp.mdx): Hardware Interpolator API.
  • hardware_irq(hardware-irq.mdx): Hardware interrupt handling API.
  • hardware_pio(hardware-pio.mdx): Programmable I/O (PIO) API.
  • hardware_pll(hardware-pll.mdx): Phase Locked Loop control APIs.
  • hardware_powman(hardware-powman.mdx) RP2350: Power Management API.
  • hardware_pwm(hardware-pwm.mdx): Hardware Pulse Width Modulation (PWM) API.
  • hardware_resets(hardware-resets.mdx): Hardware Reset API.
  • hardware_riscv(hardware-riscv.mdx) RP2350: Accessors for standard RISC-V hardware (mainly CSRs)
  • hardware_riscv_platform_timer(hardware-riscv-platform-timer.mdx) RP2350: Accessors for standard RISC-V platform timer (mtime/mtimecmp), available on Raspberry Pi microcontrollers with RISC-V pr
  • hardware_rtc(hardware-rtc.mdx) RP2040: Hardware Real Time Clock API.
  • hardware_rcp(hardware-rcp.mdx) RP2350: Inline functions and assembly macros for the Redundancy Coprocessor.
  • hardware_spi(hardware-spi.mdx): Hardware SPI API.
  • hardware_sha256(hardware-sha256.mdx) RP2350: Hardware SHA-256 Accelerator API.
  • hardware_sync(hardware-sync.mdx): Low level hardware spin locks, barrier and processor event APIs.
  • hardware_ticks(hardware-ticks.mdx): Hardware Tick API.
  • hardware_timer(hardware-timer.mdx): Low-level hardware timer API.
  • hardware_uart(hardware-uart.mdx): Hardware UART API.
  • hardware_vreg(hardware-vreg.mdx): Voltage Regulation API.
  • hardware_watchdog(hardware-watchdog.mdx): Hardware Watchdog Timer API.
  • hardware_xip_cache(hardware-xip-cache.mdx): Low-level cache maintenance operations for the XIP cache.
  • hardware_xosc(hardware-xosc.mdx): Crystal Oscillator (XOSC) API.

中文翻译版以英文版相同知识授权方式共享:CC-BY-SA 4.0。交流 Q群:498908352