Kinetis_K60开源底层驱动开发包(20120328)

源代码在线查看: assert.c

软件大小: 3469 K
上传用户: test4
关键词: Kinetis_K 20120328 60 开源
下载地址: 免注册下载 普通下载 VIP

相关代码

				/*
				 * File:        assert.c
				 * Purpose:     Provide macro for software assertions
				 *
				 * Notes:       ASSERT macro defined in assert.h calls assert_failed()
				 */
				
				#include "common.h"
				
				const char ASSERT_FAILED_STR[] = "Assertion failed in %s at line %d\n";
				
				/********************************************************************/
				void
				assert_failed(char *file, int line)
				{
				    int i;
				    
				    printf(ASSERT_FAILED_STR, file, line);
				
				    while (1)
				    {
				//        platform_led_display(0xFF);
				        for (i = 100000; i; i--) ;
				//        platform_led_display(0x00);
				        for (i = 100000; i; i--) ;
				    }
				}
				/********************************************************************/
							

相关资源