typedef struct __Debug__ExitParams
{
int mStatus;
} __Debug__ExitParams;
void __exit(int status)
{
/* Signal that the program has been terminated. */
while (1)
{
__Debug__ExitParams p;
p.mStatus = status;
__DebugBreak(__Debug__Exit, &p);
}
}
以前重来没运行到这里过...调试中断了???
我的主程序超级简单:
#include "io430.h"
int main( void )
{
// Stop watchdog timer to prevent time out reset
WDTCTL = WDTPW + WDTHOLD;
return 0;
}