clock.c: make clock_10ms() and clock_250ms() static.

These shouldn't be called by outside code, use clock() instead.
Surprisingly, this saves another 12 bytes binary size.
This commit is contained in:
Markus Hitter 2012-09-02 19:28:12 +02:00
parent f06b013179
commit 8f94d4b421
2 changed files with 2 additions and 4 deletions

View File

@ -22,7 +22,7 @@
called from clock_10ms(), do not call directly
*/
void clock_250ms() {
static void clock_250ms() {
#ifndef NO_AUTO_IDLE
if (temp_all_zero()) {
if (psu_timeout > (30 * 4)) {
@ -67,7 +67,7 @@ void clock_250ms() {
called from clock(), do not call directly
*/
void clock_10ms() {
static void clock_10ms() {
// reset watchdog
wd_reset();

View File

@ -1,8 +1,6 @@
#ifndef _CLOCK_H
#define _CLOCK_H
void clock_250ms(void);
void clock_10ms(void);
void clock(void);
#endif /* _CLOCK_H */