HeMPS  8.0
kernel_master.h
Go to the documentation of this file.
1 
14 #ifndef __KERNEL_MASTER_H__
15 #define __KERNEL_MASTER_H__
16 
17 #include "../../../include/kernel_pkg.h"
18 
19 #define TASK_DESCRIPTOR_SIZE 26
20 
21 /* Useful macros */
22 #define noc_interruption (MemoryRead(IRQ_STATUS) & IRQ_NOC)
23 #define app_req_reg (MemoryRead(REQ_APP) & 0x80000000)
24 #define external_app_reg (MemoryRead(REQ_APP) & 0x7fffffff)
25 #define get_cluster_proc(x) ( (cluster_info[x].master_x << 8) | cluster_info[x].master_y)
26 #define net_address ( (cluster_info[clusterID].master_x << 8) | cluster_info[clusterID].master_y)
27 
28 //These functions are externed only for remove warings into kernel_master.c code
29 void handle_new_app(int, volatile unsigned int *, unsigned int);
30 void initialize_slaves();
31 
32 #endif
void handle_new_app(int, volatile unsigned int *, unsigned int)
Definition: kernel_master.c:631
void initialize_slaves()
Definition: kernel_master.c:551