···5252 }
5353}
54545555-bool _timer_set(long cycles, bool start)
5555+bool timer_set(long cycles, bool start)
5656{
5757 /* Maximum cycle count expressible in the cycles parameter is 2^31-1
5858 * and the modulus counter is capable of 2^32-1 and as a result there is
···8686 return true;
8787}
88888989-bool _timer_start(void)
8989+bool timer_start(void)
9090{
9191 int oldstatus = disable_interrupt_save(IRQ_FIQ_STATUS);
9292···104104 return true;
105105}
106106107107-void _timer_stop(void)
107107+void timer_stop(void)
108108{
109109 int oldstatus = disable_interrupt_save(IRQ_FIQ_STATUS);
110110 /* Halt timer if running - stop module clock */
···2828/* Use the TC32 counter [sourced by Xin:12Mhz] for this timer, as it's the
2929 only one that allows a 32-bit counter (Timer0-5 are 16/20 bit only). */
30303131-bool __timer_set(long cycles, bool start)
3131+bool timer_set(long cycles, bool start)
3232{
3333 #warning function not implemented
3434···3737 return false;
3838}
39394040-bool __timer_start(void)
4040+bool timer_start(void)
4141{
4242 #warning function not implemented
43434444 return false;
4545}
46464747-void __timer_stop(void)
4747+void timer_stop(void)
4848{
4949 #warning function not implemented
5050}
-13
firmware/target/arm/tcc780x/timer-target.h
···2424/* Timer is based on PCK_TCT (set to 2Mhz in system.c) */
2525#define TIMER_FREQ (2000000)
26262727-bool __timer_set(long cycles, bool set);
2828-bool __timer_start(void);
2929-void __timer_stop(void);
3030-3131-#define __TIMER_SET(cycles, set) \
3232- __timer_set(cycles, set)
3333-3434-#define __TIMER_START() \
3535- __timer_start()
3636-3737-#define __TIMER_STOP(...) \
3838- __timer_stop()
3939-4027#endif /* TIMER_TARGET_H */