/** * @file * @brief Timer for the Hitachi SH 703X */ /* * Authors: Ralf Corsepius (corsepiu@faw.uni-ulm.de) and * Bernd Becker (becker@faw.uni-ulm.de) * * COPYRIGHT (c) 1997-1998, FAW Ulm, Germany * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * * COPYRIGHT (c) 1998. * On-Line Applications Research Corporation (OAR). * * The license and distribution terms for this file may be * found in the file LICENSE in this distribution or at * http://www.rtems.org/license/LICENSE. */ #include #include #include #include #include extern uint32_t bsp_clicks_per_second; #define I_CLK_PHI_1 0 #define I_CLK_PHI_2 1 #define I_CLK_PHI_4 2 #define I_CLK_PHI_8 3 /* * Set I_CLK_PHI to one of the I_CLK_PHI_X values from above to choose * a PHI/X clock rate. */ #define I_CLK_PHI I_CLK_PHI_4 #define CLOCK_SCALE (1<