diff options
| author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-07 08:11:03 +0000 |
|---|---|---|
| committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2014-05-07 08:11:03 +0000 |
| commit | bec915e05274a94f2b1a5e2443f04de826dd1f6e (patch) | |
| tree | cec2044911766f5dc5a7bd8b8c9ffe0fe81734f8 /boards/RENESAS_RPBRX62N/board.c | |
| parent | 4afa0b98dff9eac6a94c104acf900e15147d2da3 (diff) | |
| parent | b43c71424d201583822b26d13d11f7e3634cb515 (diff) | |
| download | ChibiOS-bec915e05274a94f2b1a5e2443f04de826dd1f6e.tar.gz ChibiOS-bec915e05274a94f2b1a5e2443f04de826dd1f6e.tar.bz2 ChibiOS-bec915e05274a94f2b1a5e2443f04de826dd1f6e.zip | |
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@6916 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards/RENESAS_RPBRX62N/board.c')
| -rw-r--r-- | boards/RENESAS_RPBRX62N/board.c | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/boards/RENESAS_RPBRX62N/board.c b/boards/RENESAS_RPBRX62N/board.c deleted file mode 100644 index df66b4d26..000000000 --- a/boards/RENESAS_RPBRX62N/board.c +++ /dev/null @@ -1,80 +0,0 @@ -/*
- ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-#include "ch.h"
-#include "hal.h"
-
-/**
- * @brief PAL setup.
- * @details Digital I/O ports static configuration as defined in @p board.h.
- * This variable is used by the HAL when initializing the PAL driver.
- */
-#if HAL_USE_PAL || defined(__DOXYGEN__)
-const PALConfig pal_default_config = {
- {VAL_PORT0DATA, VAL_PORT0DIR, VAL_PORT0ICR, VAL_PORT0ODR, 0},
- {VAL_PORT1DATA, VAL_PORT1DIR, VAL_PORT1ICR, VAL_PORT1ODR, 0},
- {VAL_PORT2DATA, VAL_PORT2DIR, VAL_PORT2ICR, VAL_PORT2ODR, 0},
- {VAL_PORT3DATA, VAL_PORT3DIR, VAL_PORT3ICR, VAL_PORT3ODR, 0},
- {VAL_PORT4DATA, VAL_PORT4DIR, VAL_PORT4ICR, 0 , 0},
- {VAL_PORT5DATA, VAL_PORT5DIR, VAL_PORT5ICR, 0 , 0},
- {VAL_PORTADATA, VAL_PORTADIR, VAL_PORTAICR, 0 , VAL_PORTAPCR},
- {VAL_PORTBDATA, VAL_PORTBDIR, VAL_PORTBICR, 0 , VAL_PORTBPCR},
- {VAL_PORTCDATA, VAL_PORTCDIR, VAL_PORTCICR, VAL_PORTCODR, VAL_PORTCPCR},
- {VAL_PORTDDATA, VAL_PORTDDIR, VAL_PORTDICR, 0 , VAL_PORTDPCR},
- {VAL_PORTEDATA, VAL_PORTEDIR, VAL_PORTEICR, 0 , VAL_PORTEPCR},
-};
-#endif
-
-/**
- * @brief CMT3 interrupt handler.
- */
-CH_IRQ_HANDLER(Excep_CMTU1_CMT3) {
-
- CH_IRQ_PROLOGUE();
-
- chSysLockFromIsr();
- chSysTimerHandlerI();
- chSysUnlockFromIsr();
-
- CH_IRQ_EPILOGUE();
-}
-
-/*
- * Early initialization code.
- * This initialization must be performed just after stack setup and before
- * any other initialization.
- */
-void __early_init(void) {
-
- rx62n_clock_init();
-}
-
-/*
- * Board-specific initialization code.
- */
-void boardInit(void) {
-
- /* Setup tick timer */
- MSTP(CMT3) = 0; /* Enable CMT3 timer (cancel module stop state) */
- CMT.CMSTR1.BIT.STR3 = 0; /* Stop timer */
- CMT3.CMCR.BIT.CKS = 2; /* PCLK/128 */
- CMT3.CMCNT = 0;
- CMT3.CMCOR = RX62N_PERCLK / 128 / CH_FREQUENCY;
- CMT3.CMCR.BIT.CMIE = 1; /* Enable compare match interrupts */
- IEN(CMT3,CMI3) = 1; /* Set Interrupt Enable Register */
- IPR(CMT3,CMI3) = 8; /* Setup interrupt priority */
- CMT.CMSTR1.BIT.STR3 = 1; /* Start timer */
-}
|
