source: ssp_qb_r5f100le_cs/trunk/target/cq_frk_fm3_gcc/cq_frm_fm3.h@ 93

Last change on this file since 93 was 93, checked in by nmir-saito, 8 years ago

add Combined package of SSP kernel for QB-R5F100LE-TB(RL78 processor)

File size: 2.7 KB
RevLine 
[93]1/*
2 * TOPPERS/SSP Kernel
3 * Smallest Set Profile Kernel
4 *
5 * Copyright (C) 2012 Meika Sugimoto
6 *
7 * ã‹L’˜ìŒ ŽÒ‚́CFree Software Foundation ‚É‚æ‚Á‚ÄŒö•\‚³‚ê‚Ä‚¢‚é
8 * GNU General Public License ‚Ì Version 2 ‚É‹Lq‚³‚ê‚Ä‚¢‚éðŒ‚©CˆÈ
9 * ‰º‚Ì(1)`(4)‚ÌðŒ‚ð–ž‚½‚·ê‡‚ÉŒÀ‚èC–{ƒ\ƒtƒgƒEƒFƒAi–{ƒ\ƒtƒgƒEƒF
10 * ƒA‚ð‰ü•Ï‚µ‚½‚à‚Ì‚ðŠÜ‚ށDˆÈ‰º“¯‚¶j‚ðŽg—pE•¡»E‰ü•ÏEÄ”z•ziˆÈ‰ºC
11 * —˜—p‚ƌĂԁj‚·‚邱‚Ƃ𖳏ž‚Å‹–‘ø‚·‚éD
12 * (1) –{ƒ\ƒtƒgƒEƒFƒA‚ðƒ\[ƒXƒR[ƒh‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́Cã‹L‚Ì’˜ì
13 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’肪C‚»‚Ì‚Ü‚Ü‚ÌŒ`‚Ń\[
14 * ƒXƒR[ƒh’†‚ÉŠÜ‚Ü‚ê‚Ä‚¢‚邱‚ƁD
15 * (2) –{ƒ\ƒtƒgƒEƒFƒA‚ðÄ—˜—p‰Â”\‚ȃoƒCƒiƒŠƒR[ƒhiƒŠƒƒP[ƒ^ƒuƒ‹ƒIƒu
16 * ƒWƒFƒNƒgƒtƒ@ƒCƒ‹‚⃉ƒCƒuƒ‰ƒŠ‚Ȃǁj‚ÌŒ`‚Å—˜—p‚·‚éê‡‚ɂ́C—˜—p
17 * ‚É”º‚¤ƒhƒLƒ…
18ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
19ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ìŒ •\Ž¦C
20 * ‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
21 * (3) –{ƒ\ƒtƒgƒEƒFƒA‚ðÄ—˜—p•s‰Â”\‚ȃoƒCƒiƒŠƒR[ƒh‚ÌŒ`‚Ü‚½‚Í‹@Ší‚É‘g
22 * ‚ݍž‚ñ‚¾Œ`‚Å—˜—p‚·‚éê‡‚ɂ́CŽŸ‚Ì‚¢‚¸‚ê‚©‚ÌðŒ‚ð–ž‚½‚·‚±‚ƁD
23 * (a) —˜—p‚É”º‚¤ƒhƒLƒ…
24ƒƒ“ƒgi—˜—pŽÒƒ}ƒjƒ…
25ƒAƒ‹‚Ȃǁj‚ɁCã‹L‚Ì’˜ì
26 * Œ •\Ž¦C‚±‚Ì—˜—pðŒ‚¨‚æ‚щº‹L‚Ì–³•ÛØ‹K’è‚ðŒfÚ‚·‚邱‚ƁD
27 * (b) —˜—p‚ÌŒ`‘Ô‚ðC•Ê‚É’è‚ß‚é•û–@‚É‚æ‚Á‚āCã‹L’˜ìŒ ŽÒ‚É•ñ‚·‚é
28 * ‚±‚ƁD
29 * (4) –{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚é‚¢‚©‚Ȃ鑹
30 * ŠQ‚©‚ç‚àCã‹L’˜ìŒ ŽÒ‚ð–Ɛӂ·‚邱‚ƁD
31 *
32 * –{ƒ\ƒtƒgƒEƒFƒA‚́C–³•ÛØ‚Å’ñ‹Ÿ‚³‚ê‚Ä‚¢‚é‚à‚Ì‚Å‚ ‚éDã‹L’˜ìŒ ŽÒ‚́C
33 * –{ƒ\ƒtƒgƒEƒFƒA‚ÉŠÖ‚µ‚āC‚»‚Ì“K—p‰Â”\«‚àŠÜ‚߂āC‚¢‚©‚È‚é•ÛØ‚às‚í
34 * ‚È‚¢D‚Ü‚½C–{ƒ\ƒtƒgƒEƒFƒA‚Ì—˜—p‚É‚æ‚è’¼Ú“I‚Ü‚½‚͊ԐړI‚ɐ¶‚¶‚½‚¢
35 * ‚©‚Ȃ鑹ŠQ‚ÉŠÖ‚µ‚Ä‚àC‚»‚̐ӔC‚𕉂í‚È‚¢D
36 *
37 */
38
39/*
40 * ƒ^[ƒQƒbƒgƒ{[ƒh‚ÉŠÖ‚·‚é’è‹`(CQ-FRM-FM3—p)
41 */
42
43#ifndef TOPPERS_CQ_FRM_FM3_H
44#define TOPPERS_CQ_FRM_FM3_H
45
46#include <sil.h>
47
48#include "MB9BF618T.h"
49
50/*
51 * ŠO•”ƒIƒVƒŒ[ƒ^ƒNƒƒbƒN‚Ì’è‹`
52 */
53
54#define OSC_CLOCK (4 * 1000 * 1000) /* 4MHz */
55
56/*
57 * ŠO•”ƒIƒVƒŒ[ƒ^‚ðŒ³‚É¶¬‚·‚éƒVƒXƒeƒ€ƒNƒƒbƒNŠÖ˜A‚Ì’è‹`
58 */
59
60/* PLLƒNƒƒbƒN */
61#define PLLK_VALUE (1)
62#define PLLN_VALUE (36)
63#define PLLM_VALUE (2)
64
65/* (((OSC_CLOCK / PLLK) * PLLN) * PLLM) / PLLM = OSC_CLOCK / PLLK * PLLN */
66#define PLL_CLOCK (144 * 1000 * 1000)
67
68#define BASE_CLOCK (PLL_CLOCK)
69#define PCLK0_CLOCK (PLL_CLOCK / 8) /* 18MHz */
70#define PCLK1_CLOCK (PLL_CLOCK / 8) /* 18MHz */
71#define PCLK2_CLOCK (PLL_CLOCK / 8) /* 18MHz */
72
73#define SYSTIC_CLOCK (PLL_CLOCK) /* 18MHz */
74
75/* ƒVƒŠƒAƒ‹’ʐMƒ{[ƒŒ[ƒgÝ’è(ƒoƒXƒNƒƒbƒN18MHz‚̏ꍇ‚̐ݒè) */
76#define BGR_VALUE_115200BPS (155)
77#define BGR_VALUE_57600BPS (311)
78#define BGR_VALUE_38400BPS (467)
79#define BGR_VALUE_9600BPS (1874)
80
81
82#ifndef TOPPERS_MACRO_ONLY
83
84#endif /* TOPPERS_MACRO_ONLY */
85#endif /* TOPPERS_CQ_FRM_FM3_H */
Note: See TracBrowser for help on using the repository browser.