Skip to content

Commit c1a1334

Browse files
arnopokartben
authored andcommitted
driver: ipm: introduce IPM_MAX_DATA_SIZE build configuration
The ipm_send() allows transferring data through the IPM device. However, depending on the platform, the mailbox peripheral may either transmit a limited amount of data or not transfer data at all. Introducing this configuration allows exposing the IPM capability to the application. This commit defines a default value of 1024 bytes to avoid impacting existing IPM drivers and sets the value to 0 for the STM32 IPCC and STM32 HSEM devices. This allows, in a next step, other devices to use this configuration to expose their capabilities instead of using proprietary configuration or a static definition. Signed-off-by: Arnaud Pouliquen <arnaud.pouliquen@foss.st.com>
1 parent 1b84932 commit c1a1334

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/ipm/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,14 @@ menuconfig IPM
88

99
if IPM
1010

11+
config IPM_MAX_DATA_SIZE
12+
int "Max data size supported"
13+
default 0 if IPM_STM32_IPCC || IPM_STM32_HSEM
14+
default 1024
15+
help
16+
Define the max size (in bytes) of data that can be transmitted or
17+
received by the IPM device.
18+
1119
config IPM_MHU
1220
bool "IPM MHU driver"
1321
default y

0 commit comments

Comments
 (0)