Skip to content

Commit

Permalink
tfm: Add support for configurable baud rate
Browse files Browse the repository at this point in the history
Add support for configurable baud rate for TF-M secure log.

Signed-off-by: Vidar Lillebø <vidar.lillebo@nordicsemi.no>
  • Loading branch information
vili-nordic authored and nordicjm committed Oct 5, 2022
1 parent 7063c82 commit 6332cd4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions modules/tfm/tfm/boards/board/device_cfg.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*
* Copyright (c) 2022 Nordic Semiconductor ASA
*
* SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
*/

#ifndef DEVICE_CFG_H__
#define DEVICE_CFG_H__

/**
* \file device_cfg.h
* \brief
* This is the default device configuration file with all peripherals
* defined and configured to be use via the secure and/or non-secure base
* address.
*/
/* ARRAY_SIZE causes a conflict as it is defined both by TF-M and indirectly by devicetree.h */
#undef ARRAY_SIZE
#include <autoconf.h>
#include <zephyr/devicetree.h>

#define DEFAULT_UART_BAUDRATE DT_PROP(DT_NODELABEL(uart1), current_speed)

#endif /* DEVICE_CFG_H__ */
2 changes: 1 addition & 1 deletion west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ manifest:
- name: trusted-firmware-m
repo-path: sdk-trusted-firmware-m
path: modules/tee/tf-m/trusted-firmware-m
revision: ce077f50732f56dc277d829638ad6e033ab9f37b
revision: 11b5f0a978afff3893143a09b4f771938a3bba5e
- name: tfm-mcuboot # This is used by the trusted-firmware-m module.
repo-path: sdk-mcuboot
path: modules/tee/tfm-mcuboot
Expand Down

0 comments on commit 6332cd4

Please sign in to comment.