OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [CORTEX_EFMG890F128_IAR/] [bsp/] [dvk.c] - Blame information for rev 622

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 595 jeremybenn
/**************************************************************************//**
2
 * @file
3
 * @brief DVK board support package, initialization
4
 * @author Energy Micro AS
5
 * @version 1.0.1
6
 ******************************************************************************
7
 * @section License
8
 * <b>(C) Copyright 2009 Energy Micro AS, http://www.energymicro.com</b>
9
 ******************************************************************************
10
 *
11
 * This source code is the property of Energy Micro AS. The source and compiled
12
 * code may only be used on Energy Micro "EFM32" microcontrollers.
13
 *
14
 * This copyright notice may not be removed from the source code nor changed.
15
 *
16
 * DISCLAIMER OF WARRANTY/LIMITATION OF REMEDIES: Energy Micro AS has no
17
 * obligation to support this Software. Energy Micro AS is providing the
18
 * Software "AS IS", with no express or implied warranties of any kind,
19
 * including, but not limited to, any implied warranties of merchantability
20
 * or fitness for any particular purpose or warranties against infringement
21
 * of any proprietary rights of a third party.
22
 *
23
 * Energy Micro AS will not be liable for any consequential, incidental, or
24
 * special damages, or any other relief, or for any claim by any third party,
25
 * arising from your use of this Software.
26
 *
27
 *****************************************************************************/
28
 
29
#include "efm32.h"
30
#include "dvk.h"
31
 
32
/**************************************************************************//**
33
 * @brief  Initializes DVK, configures board control access
34
 *****************************************************************************/
35
void DVK_init(void)
36
{
37
#ifdef DVK_EBI_CONTROL
38
  DVK_EBI_init();
39
#endif
40
#ifdef DVK_SPI_CONTROL
41
  DVK_SPI_init();
42
#endif
43
  /* Inform AEM application that we are in Energy Mode 0 by default */
44
  DVK_setEnergyMode(0);
45
}
46
 
47
/**************************************************************************//**
48
 * @brief  Disables DVK, free up resources
49
 *****************************************************************************/
50
void DVK_disable(void)
51
{
52
#ifdef DVK_EBI_CONTROL
53
  /* Handover bus control */
54
  DVK_disableBus();
55
  /* Disable EBI interface */
56
  DVK_EBI_disable();
57
#endif
58
 
59
#ifdef DVK_SPI_CONTROL
60
  DVK_SPI_disable();
61
#endif
62
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.