source: rtems/bsps/arm/lpc32xx/start/bspstart.c @ 9964895

5
Last change on this file since 9964895 was 9964895, checked in by Sebastian Huber <sebastian.huber@…>, on 04/20/18 at 08:35:35

bsps: Move startup files to bsps

Adjust build support files to new directory layout.

This patch is a part of the BSP source reorganization.

Update #3285.

  • Property mode set to 100644
File size: 710 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup arm_lpc32xx
5 *
6 * @brief Startup code.
7 */
8
9/*
10 * Copyright (c) 2009-2014 embedded brains GmbH.  All rights reserved.
11 *
12 *  embedded brains GmbH
13 *  Obere Lagerstr. 30
14 *  82178 Puchheim
15 *  Germany
16 *  <rtems@embedded-brains.de>
17 *
18 * The license and distribution terms for this file may be
19 * found in the file LICENSE in this distribution or at
20 * http://www.rtems.org/license/LICENSE.
21 */
22
23#include <rtems/counter.h>
24
25#include <bsp.h>
26#include <bsp/bootcard.h>
27#include <bsp/irq-generic.h>
28
29CPU_Counter_ticks _CPU_Counter_read(void)
30{
31  return lpc32xx_timer();
32}
33
34void bsp_start(void)
35{
36  rtems_counter_initialize_converter(LPC32XX_PERIPH_CLK);
37  bsp_interrupt_initialize();
38}
Note: See TracBrowser for help on using the repository browser.