em_dbg.h

Go to the documentation of this file.
00001 /***************************************************************************/
00034 #ifndef __EM_DBG_H
00035 #define __EM_DBG_H
00036 
00037 #include <stdbool.h>
00038 #include "em_device.h"
00039 
00040 #if defined ( CoreDebug_DHCSR_C_DEBUGEN_Msk )
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00046 /***************************************************************************/
00051 /***************************************************************************/
00056 /*******************************************************************************
00057  *****************************   PROTOTYPES   **********************************
00058  ******************************************************************************/
00059 
00060 /***************************************************************************/
00072 __STATIC_INLINE bool DBG_Connected(void)
00073 {
00074   if (CoreDebug->DHCSR & CoreDebug_DHCSR_C_DEBUGEN_Msk)
00075   {
00076     return true;
00077   }
00078 
00079   return false;
00080 }
00081 
00082 
00083 void DBG_SWOEnable(unsigned int location);
00084 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 
00092 #endif /* defined ( CoreDebug_DHCSR_C_DEBUGEN_Msk ) */
00093 
00094 #endif /* __EM_DBG_H */