20#ifndef __TZ_TARGET_CFG_H__
21#define __TZ_TARGET_CFG_H__
40 TFM_PLAT_ERR_SUCCESS = 0,
41 TFM_PLAT_ERR_SYSTEM_ERR = 0x3A5C,
42 TFM_PLAT_ERR_MAX_VALUE = 0x55A3,
43 TFM_PLAT_ERR_INVALID_INPUT = 0xA3C5,
44 TFM_PLAT_ERR_UNSUPPORTED = 0xC35A,
49#define TFM_DRIVER_STDIO Driver_USART1
50#define NS_DRIVER_STDIO Driver_USART0
62 uint32_t reserved : 30;
75 uint32_t non_secure_code_start;
76 uint32_t non_secure_partition_base;
77 uint32_t non_secure_partition_limit;
79 uint32_t veneer_limit;
81 uint32_t secondary_partition_base;
82 uint32_t secondary_partition_limit;
90 uint32_t periph_start;
91 uint32_t periph_limit;
Store the addresses of memory regions.
A convenient struct to include all required Non-Secure state configuration.
enum tfm_plat_err_t enable_fault_handlers(void)
Enables the fault handlers and sets priorities.
uint32_t tfm_spm_hal_get_ns_MSP(void)
Get non-secure MSP location.
void spu_periph_configure_to_secure(uint32_t periph_num)
Restrict access to peripheral to secure.
enum tfm_plat_err_t spu_init_cfg(void)
Configures memory permissions via the System Protection Unit.
enum tfm_plat_err_t nvic_interrupt_target_state_cfg(void)
Configures all external interrupts to target the NS state, apart for the ones associated to secure pe...
void spu_periph_config_uarte(void)
Configures the NRF_UARTE0 non-secure.
enum tfm_plat_err_t spu_periph_init_cfg(void)
Configures peripheral permissions via the System Protection Unit.
void spu_clear_irq(void)
Clears SPU interrupt.
void tz_nonsecure_state_setup(const tz_nonsecure_setup_conf_t *p_ns_conf)
Setup nonsecure state.
void spu_periph_configure_to_non_secure(uint32_t periph_num)
Allow non-secure access to peripheral.
void sau_and_idau_cfg(void)
Configures SAU and IDAU.
enum tfm_plat_err_t init_debug(void)
Configures the system debug properties.
enum tfm_plat_err_t system_reset_cfg(void)
Configures the system reset request properties.
void configure_nonsecure_vtor_offset(uint32_t vtor_ns)
Configure nonsecure vtor offset.
uint32_t tfm_spm_hal_get_ns_entry_point(void)
Get entry point location.
void non_secure_configuration(void)
Configure rom, ram and peripherials non-secure.
struct tz_nonsecure_setup_conf tz_nonsecure_setup_conf_t
A convenient struct to include all required Non-Secure state configuration.
tfm_plat_err_t
TFM error codes.
uint32_t tfm_spm_hal_get_ns_VTOR(void)
Get non-secure vector table.
enum tfm_plat_err_t nvic_interrupt_enable(void)
This function enable the interrupts associated to the secure peripherals (plus the isolation boundary...