Changeset 200 for soft/giet_vm/libs/srl.h
- Timestamp:
- Aug 12, 2012, 1:35:34 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/libs/srl.h
r189 r200 7 7 @short SRL Api main header 8 8 */ 9 10 #include "mapping_info.h" 11 #include "stdio.h" 12 #include "utils.h" 9 13 10 14 #include "libsrl/srl_public_types.h" … … 19 23 #include "libsrl/srl_hw_helpers.h" 20 24 25 #include "libsrl/srl_args.h" 26 21 27 //kernel use! 22 28 //#include "libsrl/srl_mwmr_sys.h" 23 29 24 /* port, APP_NAME, TASK */25 # define GET_MWMR(port) \26 ({ \27 srl_mwmr_t _mwmr; \28 if( vobj_get_vbase( APP_NAME , #port, MWMR, (unsigned int*)&_mwmr ) ) \29 { \30 srl_log_printf( NONE, "\n[ERROR] in "TASK" task :\n"); \31 srl_log_printf( NONE, " undefined <"#port"> channel: %d\n", _mwmr); \32 srl_log_printf( TRACE, "*** &"#port" = %x\n\n", (unsigned int)_mwmr ); \33 exit();/*srl?*/ \34 }else \35 srl_log_printf( TRACE, "%s:%d: arg of %s for %s,from %s; &"#port" = %x\n\n", __FILE__, __LINE__, APP_NAME, TASK,#port, (unsigned int)_mwmr ); \36 _mwmr;\37 })38 30 39 31 #endif
Note: See TracChangeset
for help on using the changeset viewer.