20#ifndef __TZ_TARGET_CFG_H__
21#define __TZ_TARGET_CFG_H__
46 uint32_t reserved : 30;
59 uint32_t non_secure_code_start;
60 uint32_t non_secure_partition_base;
61 uint32_t non_secure_partition_limit;
63 uint32_t veneer_limit;
65 uint32_t secondary_partition_base;
66 uint32_t secondary_partition_limit;
74 uint32_t periph_start;
75 uint32_t periph_limit;
Store the addresses of memory regions.
A convenient struct to include all required Non-Secure state configuration.
void spu_periph_configure_to_secure(uint32_t periph_num)
Restrict access to peripheral to secure.
void spu_periph_init_cfg(void)
Configures peripheral permissions via the System Protection Unit.
void system_reset_cfg(void)
Configures the system reset request properties.
void spu_periph_config_uarte(void)
Configures the NRF_UARTE0 non-secure.
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.
void configure_nonsecure_vtor_offset(uint32_t vtor_ns)
Configure nonsecure vtor offset.
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.
void nvic_interrupt_target_state_cfg(void)
Configures all external interrupts to target the NS state, apart for the ones associated to secure pe...
void nvic_interrupt_enable(void)
This function enable the interrupts associated to the secure peripherals (plus the isolation boundary...
void enable_fault_handlers(void)
Enables the fault handlers and sets priorities.
void spu_report_violation(void)
Report and clear any SPU violation captured by the previous boot's SPU_IRQHandler.