28#ifndef APPLICATION_NAME_HASH
29#error APPLICATION_NAME_HASH was undefined. Make sure you define this\
76static inline bool initialise_common_regions(
78 uint32_t *infinite_run, uint32_t *time, uint32_t *recording_flags,
79 prov_callback_t store_provenance_function, callback_t timer_callback,
93 data_specification_get_region(regions.system, *ds_regions),
95 infinite_run, time, priorities.
sdp, priorities.
dma)) {
99 store_provenance_function,
100 data_specification_get_region(regions.provenance, *ds_regions));
103 profiler_init(data_specification_get_region(regions.profiler, *ds_regions));
106 void *rec_addr = data_specification_get_region(regions.recording, *ds_regions);
111 if (timer_callback) {
122static inline void common_pause(uint32_t recording_flags) {
125 if (recording_flags > 0) {
data_specification_metadata_t * data_specification_get_data_address(void)
bool data_specification_read_header(data_specification_metadata_t *ds_regions)
static uint32_t timer_period
Used for configuring the timer hardware.
void profiler_init(uint32_t *data_region)
void profiler_finalise(void)
bool recording_initialize(void **recording_data_address, uint32_t *recording_flags)
void recording_finalise(void)
void simulation_set_provenance_function(prov_callback_t provenance_function, address_t provenance_data_address)
bool simulation_initialise(address_t address, uint32_t expected_application_magic_number, uint32_t *timer_period, uint32_t *simulation_ticks_pointer, uint32_t *infinite_run_pointer, uint32_t *time_pointer, int sdp_packet_callback_priority, int dma_transfer_complete_priority)
void spin1_callback_on(uint event_id, callback_t cback, int priority)
The callback priorities used by all simulation cores.
uint32_t sdp
The SDP callback priority.
uint32_t dma
The DMA callback priority.
uint32_t timer
The timer callback priority.
The identifiers of the regions used by all simulation cores.
uint32_t provenance
Where provenance data will be stored.
uint32_t recording
Where recording metadata will be read and stored.
uint32_t profiler
Where profile data will be read and stored.
uint32_t system
Data for general simulation setup.