CAT1 (PSoC 6) Implementation Specific

group Group_hal_impl

This section provides details about the CAT1 (PSoC 6) implementation of the Cypress HAL.

All information within this section is platform specific and is provided for reference. Portable application code should depend only on the APIs and types which are documented in the HAL Drivers section.

HAL Resource Hardware Mapping

The following table shows a mapping of each HAL driver to the lower level firmware driver and the corresponding hardware resource. This is intended to help understand how the HAL is implemented for CAT1 and what features the underlying hardware supports.

HAL Resource

PDL Driver(s)

CAT1 Hardware

ADC

cy_adc

SAR ADC

Clock

cy_sysclk

All clocks (system & peripheral)

Comparator

cy_ctb or cy_lpcomp

CTBm or LPComp

CRC

cy_crypto_core_crc

Crypto

DAC

cy_ctdac

DAC

DMA

cy_dma, cy_dmac

DMA Controller

EZ-I2C

cy_scb_ezi2c

SCB

Flash

cy_flash

Flash

GPIO

cy_gpio

GPIO

Hardware Manager

NA

NA

I2C

cy_scb_i2c

SCB

I2S

cy_i2s

I2S

LPTimer

cy_mcwdt

MCWDT

Opamp

cy_ctb

CTBm

PDM/PCM

cy_pdm_pcm

PDM-PCM

PWM

cy_pwm

TCPWM

QSPI

cy_smif

QSPI (SMIF)

Quadrature Decoder

cy_tcpwm_quaddec

TCPWM

RTC

cy_rtc

RTC

SDHC

cy_sd_host

SD Host

SDIO

cy_sd_host, or NA

SD Host, or UDB

SPI

cy_scb_spi

SCB

SysPM

cy_syspm

System Power Resources

System

cy_syslib

System Resources

Timer

cy_tcpwm_counter

TCPWM

TRNG

cy_crypto_core_trng

Crypto

UART

cy_scb_uart

SCB

USB Device

cy_usbfs_dev_drv

USB-FS

WDT

cy_wdt

WDT

Device Specific Errors

Error codes generated by the low level level PDL driver all use module IDs starting with CY_RSLT_MODULE_DRIVERS_PDL_BASE. The exact errors are documented for each driver in the mtb-pdl-cat1 documentation.