#include "ble_assert.h"

/**
@file		ble_assert.c
@brief	redirect printf() to debug port
@date		13th Feb 2016
@note		Programmer John Leung @ TechToys Co.
*/
#include <stdio.h>
#include <stm32f4xx.h>

/**
@brief	Retarget printf to debugger via ITM stimulus port(0). 
This allows debug messages to display in 
MDK-ARM: View>Serial Windows Debug (printf) Viewer
http://stm32f4-discovery.com/2014/12/library-46-debug-stm32f4-device-swo-feature/
IAR: https://www.youtube.com/watch?v=lUPSqfO4ISk
*/

void __ble_assert(const char *file, uint16_t line)
{
	/*
	* Serial.print("ERROR ");
	* Serial.print(file);
	* Serial.print(": ");
	* Serial.print(line);
	* Serial.print("\n");
	* while(1);
	*/
}
