samples: drivers: mbox: Add support for stm32h747i_disco board
With the addition of the STM32 hardware semaphore MBOX driver, this sample is now supported by the board. Signed-off-by: Celina Sophie Kalus <hello@celinakalus.de>
This commit is contained in:
parent
3290da8f1d
commit
59bfe591ef
7 changed files with 54 additions and 2 deletions
|
@ -17,7 +17,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUAPP OR
|
|||
CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM7 OR
|
||||
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM7 OR
|
||||
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU0 OR
|
||||
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP)
|
||||
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUAPP OR
|
||||
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M7)
|
||||
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as Main in this sample")
|
||||
else()
|
||||
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
|
||||
|
|
|
@ -15,3 +15,4 @@ string
|
|||
default "mimxrt1160_evk/mimxrt1166/cm4" if $(BOARD) = "mimxrt1160_evk"
|
||||
default "lpcxpresso55s69/lpc55s69/cpu1" if $(BOARD) = "lpcxpresso55s69"
|
||||
default "nrf54h20dk/nrf54h20/cpuppr" if $(BOARD) = "nrf54h20dk"
|
||||
default "stm32h747i_disco/stm32h747xx/m4" if $(BOARD) = "stm32h747i_disco"
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
CONFIG_MBOX_STM32_HSEM=y
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Celina Sophie Kalus <hello@celinakalus.de>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
mbox-consumer {
|
||||
compatible = "vnd,mbox-consumer";
|
||||
mboxes = <&mailbox 11>, <&mailbox 10>;
|
||||
mbox-names = "tx", "rx";
|
||||
};
|
||||
};
|
||||
|
||||
&mailbox {
|
||||
status = "okay";
|
||||
};
|
|
@ -15,7 +15,8 @@ if(CONFIG_BOARD_NRF5340DK_NRF5340_CPUNET OR
|
|||
CONFIG_BOARD_MIMXRT1170_EVK_MIMXRT1176_CM4 OR
|
||||
CONFIG_BOARD_MIMXRT1160_EVK_MIMXRT1166_CM4 OR
|
||||
CONFIG_BOARD_LPCXPRESSO55S69_LPC55S69_CPU1 OR
|
||||
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR)
|
||||
CONFIG_BOARD_NRF54H20DK_NRF54H20_CPUPPR OR
|
||||
CONFIG_BOARD_STM32H747I_DISCO_STM32H747XX_M4)
|
||||
message(STATUS "${BOARD}${BOARD_QUALIFIERS} compile as remote in this sample")
|
||||
else()
|
||||
message(FATAL_ERROR "${BOARD}${BOARD_QUALIFIERS} is not supported for this sample")
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
CONFIG_CONSOLE=y
|
||||
CONFIG_UART_CONSOLE=y
|
||||
CONFIG_LOG_BACKEND_UART=y
|
||||
|
||||
CONFIG_MBOX_STM32_HSEM=y
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* Copyright (c) 2024 Celina Sophie Kalus <hello@celinakalus.de>
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
zephyr,console = &uart8;
|
||||
zephyr,shell-uart = &uart8;
|
||||
};
|
||||
|
||||
mbox-consumer {
|
||||
compatible = "vnd,mbox-consumer";
|
||||
mboxes = <&mailbox 10>, <&mailbox 11>;
|
||||
mbox-names = "tx", "rx";
|
||||
};
|
||||
};
|
||||
|
||||
&uart8 {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&mailbox {
|
||||
status = "okay";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue