configAssert = hal_debugger_breakpoint

This commit is contained in:
hathach 2013-09-18 20:56:29 +07:00
parent 243f197509
commit 8738902495
3 changed files with 19 additions and 9 deletions

View File

@ -50,6 +50,16 @@
/***************************************************************************** /*****************************************************************************
* Public functions * Public functions
****************************************************************************/ ****************************************************************************/
// FIXME ethernet
#if 0
void msDelay(uint32_t ms)
{
portTickType xDelayTime;
xDelayTime = xTaskGetTickCount();
vTaskDelayUntil( &xDelayTime, ms );
}
#endif
/* Delay for the specified number of milliSeconds */ /* Delay for the specified number of milliSeconds */
void FreeRTOSDelay(uint32_t ms) void FreeRTOSDelay(uint32_t ms)

View File

@ -142,7 +142,7 @@ to all Cortex-M ports, and do not rely on any particular library functions. */
/* Normal assert() semantics without relying on the provision of an assert.h /* Normal assert() semantics without relying on the provision of an assert.h
header file. */ header file. */
#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); hal_debugger_breakpoint(); }
#define configUSE_CUSTOM_TICK 1 #define configUSE_CUSTOM_TICK 1

View File

@ -144,7 +144,7 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
/* Normal assert() semantics without relying on the provision of an assert.h /* Normal assert() semantics without relying on the provision of an assert.h
header file. */ header file. */
#define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); for( ;; ); } #define configASSERT( x ) if( ( x ) == 0 ) { taskDISABLE_INTERRUPTS(); hal_debugger_breakpoint(); }
/* FreeRTOS hooks to NVIC vectors */ /* FreeRTOS hooks to NVIC vectors */
#define xPortPendSVHandler PendSV_Handler #define xPortPendSVHandler PendSV_Handler