RTEMS: bsps/arm/smdk2410/include/bsp.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
bsp.h
Go to the documentation of this file.
1
7/*
8 * Copyright (c) Canon Research France SA.]
9 * Emmanuel Raguet, mailto:raguet@crf.canon.fr
10 *
11 * The license and distribution terms for this file may be
12 * found in the file LICENSE in this distribution or at
13 * http://www.rtems.org/license/LICENSE.
14 */
15
16#ifndef LIBBSP_ARM_SMDK2410_BSP_H
17#define LIBBSP_ARM_SMDK2410_BSP_H
18
29#include <bspopts.h>
30#include <bsp/default-initial-extension.h>
31
32#include <rtems.h>
33#include <s3c24xx.h>
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39#define BSP_FEATURE_IRQ_EXTENSION
40
46uint32_t get_FCLK(void);
47uint32_t get_HCLK(void);
48uint32_t get_PCLK(void);
49uint32_t get_UCLK(void);
50
53/* What is the input clock freq in hertz? */
55#define BSP_OSC_FREQ 12000000
57#define M_MDIV 81
58#define M_PDIV 2
59#define M_SDIV 1
61#define M_CLKDIVN 2
63#define REFEN 0x1
65#define TREFMD 0x0
67#define Trp 0x0
69#define Trc 0x3
71#define Tchr 0x2
72
79void *bsp_idle_thread(uintptr_t ignored);
80
83#define BSP_IDLE_TASK_BODY bsp_idle_thread
84
85#ifdef __cplusplus
86}
87#endif
88
91#endif /* _BSP_H */
92
default-initial-extension.h
DEFAULT_INITIAL_EXTENSION Support.
bsp_idle_thread
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:26
get_FCLK
uint32_t get_FCLK(void)
functions to get the differents s3c2400 clks
Definition: support.c:16
rtems.h