How infineon/mtb-dsl-psc3m8 works
This is the ModusToolbox PSC3M8 Device Support Library: device-specific support for firmware development. Applications use HAL APIs for portable peripheral, system, and power-management operations; HAL wraps lower-level PDL APIs, which configure and operate the device hardware. Device utilities provide predefined SysPm callbacks for peripherals needing special DeepSleep handling. The README documents these layers and capabilities; sampled source confirms selected HAL-to-PDL and callback dependencies, but does not expose every driver call path.
Main entry points: drivers PDL drivers · mtb_hal_utils.h HAL utilities · syspm SysPm callbacks · cy_pdl.h PDL include interface
Components 17
Hardware Abstraction
- Peripheral HAL
hal - System and clocks
hal/include/mtb_hal_system.h - HAL power management
hal/source/mtb_hal_syspm.c - HAL hardware types
hal/include/mtb_hal_hw_types.h - HAL utilities
hal/include/mtb_hal_utils.h - I2C HAL
hal/source/mtb_hal_i2c.c - UART HAL
hal/source/mtb_hal_uart.c - SPI HAL
hal/source/mtb_hal_spi.c
Peripheral Drivers
- PDL drivers
pdl/drivers - Clock driver
pdl/drivers/source/cy_sysclk_v2.c - System library
pdl/drivers/include/cy_syslib.h - PDL power management
pdl/drivers/include/cy_syspm.h
Device Support
- Device definitions
pdl/devices/include/cy_device.h - PDL include interface
pdl/devices/include/cy_pdl.h
Power Utilities
- SysPm callbacks
device-utils/syspm - Callback resources
device-utils/syspm/include/mtb_syspm_callbacks_hw_resources.h
Other components
- Firmware application
Connections 19
- Firmware application → Peripheral HAL: uses APIs
- Firmware application → System and clocks: uses APIs
- Peripheral HAL → PDL drivers: wraps drivers
hal/source/mtb_hal_syspm.c - HAL hardware types → PDL drivers: maps resources
hal/include/mtb_hal_hw_types.h - PDL include interface → Device definitions: includes definitions
pdl/devices/include/cy_pdl.h - PDL include interface → PDL drivers: includes APIs
pdl/devices/include/cy_pdl.h - System and clocks → Clock driver: wraps clocks
- HAL power management → PDL power management: uses power APIs
hal/source/mtb_hal_syspm.c - Clock driver → System library: uses library
pdl/drivers/source/cy_sysclk_v2.c - I2C HAL → HAL utilities: uses utilities
hal/source/mtb_hal_i2c.c - SPI HAL → HAL utilities: uses utilities
hal/source/mtb_hal_spi.c - UART HAL → HAL utilities: uses utilities
hal/source/mtb_hal_uart.c - I2C HAL → PDL drivers: wraps drivers
- SPI HAL → PDL drivers: wraps drivers
- UART HAL → PDL drivers: wraps drivers
- SysPm callbacks → PDL include interface: uses PDL
device-utils/syspm/source/mtb_syspm_callbacks_dma.c - SysPm callbacks → Callback resources: uses resources
device-utils/syspm/include/mtb_syspm_callbacks_dma.h - SysPm callbacks → PDL power management: handles power transitions
- HAL power management → HAL utilities: uses utilities
hal/source/mtb_hal_syspm.c