RTEMS  5.1
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>
31 
32 #include <rtems.h>
33 #include <s3c24xx.h>
34 
35 #ifdef __cplusplus
36 extern "C" {
37 #endif
38 
39 #define BSP_FEATURE_IRQ_EXTENSION
40 
46 uint32_t get_FCLK(void);
47 uint32_t get_HCLK(void);
48 uint32_t get_PCLK(void);
49 uint32_t get_UCLK(void);
50 
53 /* What is the input clock freq in hertz? */
55 #define BSP_OSC_FREQ 12000000
56 
57 #define M_MDIV 81
58 #define M_PDIV 2
59 #define M_SDIV 1
60 
61 #define M_CLKDIVN 2
62 
63 #define REFEN 0x1
64 
65 #define TREFMD 0x0
66 
67 #define Trp 0x0
68 
69 #define Trc 0x3
70 
71 #define Tchr 0x2
72 
79 void *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 Support.
void * bsp_idle_thread(uintptr_t ignored)
Optimized idle task.
Definition: bspidle.c:26
uint32_t get_FCLK(void)
functions to get the differents s3c2400 clks
Definition: support.c:16