38 lines
876 B
C
38 lines
876 B
C
//
|
|
// This file is part of the µOS++ III distribution.
|
|
// Copyright (c) 2014 Liviu Ionescu.
|
|
//
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
#include "cmsis_device.h"
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
extern void
|
|
__attribute__((noreturn))
|
|
NVIC_SystemReset(void);
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// Forward declarations
|
|
|
|
void
|
|
__reset_hardware(void);
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
// This is the default hardware reset routine; it can be
|
|
// redefined in the application for more complex applications.
|
|
//
|
|
// Called from _exit().
|
|
|
|
void
|
|
__attribute__((weak,noreturn))
|
|
__reset_hardware()
|
|
{
|
|
NVIC_SystemReset();
|
|
}
|
|
|
|
// ----------------------------------------------------------------------------
|