blob: 454ba8e22568c778a8d2b26fb455495519be5c45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/*
* @file bspreset.c
*
* @author Miguel Masmano <mmasmano@fentiss.com>
*
* @copyright
* Copyright 2016 Fent Innovative Software Solutions (FENTISS).
* All rights reserved.
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.org/license/LICENSE.
*/
#include <bsp.h>
#include <bsp/bootcard.h>
#include <bsp/start.h>
#include <xm.h>
void bsp_reset(void)
{
/* A reset cannot be directly done since the
partition's code is not restored by the bootloader */
XM_halt_partition(XM_PARTITION_SELF);
}
|