-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Regenerated code with EEs at system level. #1
- Loading branch information
Cortland Starrett
authored and
Cortland Starrett
committed
Dec 6, 2012
1 parent
dec160f
commit a85b0e4
Showing
12 changed files
with
235 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/*---------------------------------------------------------------------------- | ||
* File: ARCH_bridge.c | ||
* | ||
* Description: | ||
* Methods for bridging to an external entity. | ||
* | ||
* External Entity: Architecture (ARCH) | ||
* | ||
* (C) Copyright 1998-2012 Mentor Graphics Corporation. All rights reserved. | ||
*--------------------------------------------------------------------------*/ | ||
|
||
#include "ttt_sys_types.h" | ||
#include "ARCH_bridge.h" | ||
#include "LOG_bridge.h" | ||
#include "ARCH_bridge.h" | ||
#include "ttt_sys_types.h" | ||
extern bool Escher_run_flag; /* Turn this false to stop the event queues. */ | ||
|
||
/* | ||
* Bridge: shutdown | ||
*/ | ||
void | ||
ARCH_shutdown() | ||
{ | ||
Escher_run_flag = false; /* default automatic action for this bridge */ | ||
return; | ||
/* Replace/Insert your implementation code here... */ | ||
/* CONTROL */ | ||
ARCH_shutdown(); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/*---------------------------------------------------------------------------- | ||
* File: ARCH_bridge.h | ||
* | ||
* Description: | ||
* Methods for bridging to an external entity. | ||
* | ||
* External Entity: Architecture (ARCH) | ||
* | ||
* (C) Copyright 1998-2012 Mentor Graphics Corporation. All rights reserved. | ||
*--------------------------------------------------------------------------*/ | ||
|
||
#ifndef ARCH_BRIDGE_H | ||
#define ARCH_BRIDGE_H | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "ttt_sys_types.h" | ||
|
||
void ARCH_shutdown( void ); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* ARCH_BRIDGE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,87 @@ | ||
/*---------------------------------------------------------------------------- | ||
* File: LOG_bridge.c | ||
* | ||
* Description: | ||
* Methods for bridging to an external entity. | ||
* | ||
* External Entity: Logging (LOG) | ||
* | ||
* (C) Copyright 1998-2012 Mentor Graphics Corporation. All rights reserved. | ||
*--------------------------------------------------------------------------*/ | ||
|
||
#include "ttt_sys_types.h" | ||
#include "ARCH_bridge.h" | ||
#include "LOG_bridge.h" | ||
#include "LOG_bridge.h" | ||
#include "ttt_sys_types.h" | ||
|
||
/* | ||
* Bridge: LogSuccess | ||
*/ | ||
void | ||
LOG_LogSuccess( c_t p_message[ESCHER_SYS_MAX_STRING_LEN]) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
||
/* | ||
* Bridge: LogFailure | ||
*/ | ||
void | ||
LOG_LogFailure( c_t p_message[ESCHER_SYS_MAX_STRING_LEN]) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
||
/* | ||
* Bridge: LogInfo | ||
*/ | ||
void | ||
LOG_LogInfo( c_t p_message[ESCHER_SYS_MAX_STRING_LEN]) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
||
/* | ||
* Bridge: LogDate | ||
*/ | ||
void | ||
LOG_LogDate( Escher_Date_t p_d, c_t p_message[ESCHER_SYS_MAX_STRING_LEN]) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
||
/* | ||
* Bridge: LogTime | ||
*/ | ||
void | ||
LOG_LogTime( c_t p_message[ESCHER_SYS_MAX_STRING_LEN], Escher_TimeStamp_t p_t) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
||
/* | ||
* Bridge: LogReal | ||
*/ | ||
void | ||
LOG_LogReal( c_t p_message[ESCHER_SYS_MAX_STRING_LEN], r_t p_r) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
||
/* | ||
* Bridge: LogInteger | ||
*/ | ||
void | ||
LOG_LogInteger( i_t p_message) | ||
{ | ||
/* Replace/Insert your implementation code here... */ | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/*---------------------------------------------------------------------------- | ||
* File: LOG_bridge.h | ||
* | ||
* Description: | ||
* Methods for bridging to an external entity. | ||
* | ||
* External Entity: Logging (LOG) | ||
* | ||
* (C) Copyright 1998-2012 Mentor Graphics Corporation. All rights reserved. | ||
*--------------------------------------------------------------------------*/ | ||
|
||
#ifndef LOG_BRIDGE_H | ||
#define LOG_BRIDGE_H | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
#include "ttt_sys_types.h" | ||
|
||
void LOG_LogSuccess( c_t[ESCHER_SYS_MAX_STRING_LEN] ); | ||
void LOG_LogFailure( c_t[ESCHER_SYS_MAX_STRING_LEN] ); | ||
void LOG_LogInfo( c_t[ESCHER_SYS_MAX_STRING_LEN] ); | ||
void LOG_LogDate( Escher_Date_t, c_t[ESCHER_SYS_MAX_STRING_LEN] ); | ||
void LOG_LogTime( c_t[ESCHER_SYS_MAX_STRING_LEN], Escher_TimeStamp_t ); | ||
void LOG_LogReal( c_t[ESCHER_SYS_MAX_STRING_LEN], r_t ); | ||
void LOG_LogInteger( i_t ); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* LOG_BRIDGE_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.