5 * Copyright (C) 2013-06-11 K.Ohta <whatisthis.sowhat ai gmail.com>
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2,
11 * or (at your option) any later version.
12 * This library / program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
15 * See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this library; see the file COPYING. If not, write to the
19 * Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston,
22 * As a special exception, if you link this(includeed from sdcc) library
23 * with other files, some of which are compiled with SDCC,
24 * to produce an executable, this library does not by itself cause
25 * the resulting executable to be covered by the GNU General Public License.
26 * This exception does not however invalidate any other reasons why
27 * the executable file might be covered by the GNU General Public License.
36 #define _IDLE_ONE_TICK 128 // uS
37 extern void idle(unsigned int initial);
38 extern void idle_init(void);
39 extern void idle_stop(void); // Stop TMR0.
40 extern void idle_time_ms(unsigned int ms);
41 extern void idle_time_62_5ms(void);
42 extern void idle_time_35ms(void);