Doesn\'t work, I just want SVN access
Embed:
(wiki syntax)
Show/hide line numbers
main.cpp
00001 ////////////////////////////////////////////////////////////////////////////// 00002 // Model: Network.qm 00003 // File: ./main.cpp 00004 // 00005 // This file has been generated automatically by QP Modeler (QM). 00006 // DO NOT EDIT THIS FILE MANUALLY. 00007 // 00008 // Please visit www.state-machine.com/qm for more information. 00009 ////////////////////////////////////////////////////////////////////////////// 00010 #include "qp_port.h" 00011 #include "network.h" 00012 #include "bsp.h" 00013 00014 // Local-scope objects ------------------------------------------------------- 00015 static QEvent const *l_pelicanQueueSto[5]; 00016 static QEvent const *l_pollQueueSto[5]; 00017 static QEvent const *l_sense1_N1_Sto[5]; 00018 00019 static QSubscrList l_subscrSto[MAX_PUB_SIG]; 00020 static union { 00021 void *m0; 00022 QEvent m1; 00023 } l_smlPoolSto[10]; // storage for the small event pool 00024 00025 //............................................................................ 00026 int main(void) { 00027 BSP_init(); // initialize the BSP 00028 QF::init(); // initialize the framework and the underlying RT kernel 00029 // object dictionaries... 00030 QS_OBJ_DICTIONARY(l_smlPoolSto); 00031 QS_OBJ_DICTIONARY(l_pelicanQueueSto); 00032 QS_OBJ_DICTIONARY(l_pollQueueSto); 00033 QS_OBJ_DICTIONARY(l_sense1_N1_Sto); 00034 00035 QF::psInit(l_subscrSto, Q_DIM(l_subscrSto)); // init publish-subscribe 00036 // initialize event pools... 00037 QF::poolInit(l_smlPoolSto, sizeof(l_smlPoolSto), sizeof(l_smlPoolSto[0])); 00038 00039 // start the active objects... 00040 //AO_Pelican ->start(3, l_pelicanQueueSto, Q_DIM(l_pelicanQueueSto)); 00041 AO_Poll ->start(1, l_pollQueueSto, Q_DIM(l_pollQueueSto)); 00042 AO_Sense1_N1->start(2, l_sense1_N1_Sto, Q_DIM(l_sense1_N1_Sto));//1st param is priority 00043 00044 QF::run(); // run the QF application 00045 00046 return 0; 00047 }
Generated on Tue Aug 2 2022 11:35:56 by
1.7.2