source: soft/giet_vm/apps/numsplit/.desc.c @ 160

Last change on this file since 160 was 160, checked in by karaoui, 12 years ago

giet-vm new version

File size: 2.8 KB
RevLine 
[160]1
2/**
3 ** MARKER_BEGIN
4 ** Auto-generated file, dont modify directly
5 ** your changes will be lost !
6 **
7 ** Generated by DSX on 2012-04-16 07:01:50.179538
8 ** by karaoui@debussy
9 ** MARKER_END
10 **/
11
12#include "srl.h"
13#include "srl_private_types.h"
14
15#define SRL_INMAIN
16# include "consumer_proto.h"
17# include "producer_proto.h"
18#undef SRL_INMAIN
19#define CONFIG_HEXO_STACK_ALIGN 8
20static srl_barrier_s _start_barrier __attribute__((section(".uram1"))) = SRL_BARRIER_INITIALIZER(2);
21static unsigned char cons0_stack[2048] __attribute__((section(".cram0"))) __attribute__((aligned(CONFIG_HEXO_STACK_ALIGN))) ;
22static unsigned char fifo0_buf[320] __attribute__((section(".uram1"))) ;
23static unsigned char prod0_stack[2048] __attribute__((section(".cram0"))) __attribute__((aligned(CONFIG_HEXO_STACK_ALIGN))) ;
24
25//__attribute__((section(".uram1")))static srl_mwmr_status_s fifo0_status  = SRL_MWMR_STATUS_INITIALIZER(  32,   10);
26__attribute__((section(".cram1")))static srl_mwmr_status_s fifo0_status  = SRL_MWMR_STATUS_INITIALIZER(  32,   10);
27#ifdef SRL_MWMR_USE_SEPARATE_LOCKS // ;
28__attribute__((section(".ram_lock"))) __attribute__((aligned(CONFIG_HEXO_STACK_ALIGN)))static srl_mwmr_lock_t fifo0_lock     = SRL_MWMR_LOCK_INITIALIZER;
29#endif // ;
30
31//__attribute__((section(".uram1.fifo")))const srl_mwmr_s fifo0         = SRL_MWMR_INITIALIZER(  32,   10,            fifo0_buf, &fifo0_status, "fifo0", &fifo0_lock);
32const srl_mwmr_s fifo0         = SRL_MWMR_INITIALIZER(  32,   10,            fifo0_buf, &fifo0_status, "fifo0", &fifo0_lock);
33static const struct _consumer_args_t cons0_args = {
34        .input = (const srl_mwmr_t)&fifo0,
35};
36static const struct _producer_args_t prod0_args = {
37        .output = (const srl_mwmr_t)&fifo0,
38};
39static srl_task_s cons0 __attribute__((section(".cram0"))) = SRL_TASK_INITIALIZER(0, consumer_FUNC_NAME(cons_func), 2048, cons0_stack, &cons0_args, "cons0", 0x90400000L, 1);
40static srl_task_s prod0 __attribute__((section(".cram0"))) = SRL_TASK_INITIALIZER(0, producer_FUNC_NAME(prod_func), 2048, prod0_stack, &prod0_args, "prod0", 0x90400000L, 0);
41static srl_task_s * const cpu0_task_list[1] = {&prod0, };
42static srl_task_s * const cpu1_task_list[1] = {&cons0, };
43static const srl_cpudesc_s cpu0_cpu_desc = SRL_CPUDESC_INITIALIZER(   1, cpu0_task_list, 0x0, 0);
44static const srl_cpudesc_s cpu1_cpu_desc = SRL_CPUDESC_INITIALIZER(   1, cpu1_task_list, 0x0, 0);
45static const srl_mwmr_s const * const all_mwmr[2] = {&fifo0, NULL };
46static srl_task_s* const all_task[3]  = {&cons0, &prod0, NULL };
47static const srl_cpudesc_s *cpu_desc_list[] = {&cpu0_cpu_desc, &cpu1_cpu_desc, NULL};
48__attribute__((section(".srl_appdesc"))) __attribute__((aligned(CONFIG_HEXO_STACK_ALIGN))) const srl_appdesc_s app_desc   = SRL_APPDESC_INITIALIZER(   2, cpu_desc_list, all_mwmr, all_task, &_start_barrier, 0x0, 0);
Note: See TracBrowser for help on using the repository browser.