28 #if (HAL_USE_PAL == TRUE) || defined(__DOXYGEN__) 45 #define PAL_IOPORTS_WIDTH 16U 51 #define PAL_WHOLE_PORT ((ioportmask_t)0xFFFFU) 63 #define PAL_LINE(port, pad) \ 64 ((ioline_t)((uint32_t)(port)) | ((uint32_t)(pad))) 69 #define PAL_PORT(line) \ 70 ((stm32_gpio_t *)(((uint32_t)(line)) & 0xFFFFFFF0U)) 75 #define PAL_PAD(line) \ 76 ((uint32_t)((uint32_t)(line) & 0x0000000FU)) 148 #define pal_lld_init(config) _pal_lld_init(config) 158 #define pal_lld_readport(port) 0U 170 #define pal_lld_readlatch(port) 0U 180 #define pal_lld_writeport(port, bits) \ 198 #define pal_lld_setport(port, bits) \ 216 #define pal_lld_clearport(port, bits) \ 234 #define pal_lld_toggleport(port, bits) \ 254 #define pal_lld_readgroup(port, mask, offset) 0U 270 #define pal_lld_writegroup(port, mask, offset, bits) \ 291 #define pal_lld_setgroupmode(port, mask, offset, mode) \ 292 _pal_lld_setgroupmode(port, mask << offset, mode) 308 #define pal_lld_readpad(port, pad) PAL_LOW 325 #define pal_lld_writepad(port, pad, bit) \ 343 #define pal_lld_setpad(port, pad) \ 361 #define pal_lld_clearpad(port, pad) \ 379 #define pal_lld_togglepad(port, pad) \ 400 #define pal_lld_setpadmode(port, pad, mode) \ 415 #define pal_lld_get_pad_event(port, pad) \ 416 &_pal_events[0]; (void)(port); (void)pad 425 #define pal_lld_get_line_event(line) \ 426 &_pal_events[0]; (void)line 428 #if !defined(__DOXYGEN__) 429 extern const PALConfig pal_default_config;
Type of a PAL event record.
uint32_t ioportmask_t
Digital I/O port sized unsigned type.
uint32_t iopadid_t
Type of an pad identifier.
uint32_t ioline_t
Type of an I/O line.
void _pal_lld_init(const PALConfig *config)
STM32 I/O ports configuration.
uint32_t ioportid_t
Port Identifier.
void _pal_lld_setgroupmode(ioportid_t port, ioportmask_t mask, iomode_t mode)
Pads mode setup.
uint32_t iomode_t
Digital I/O modes.
Generic I/O ports static initializer.