File nut/arch/avr/dev/ostimer.c


Included Files


Preprocessor definitions

#define NUT_TICK_NFREQ 1000L

#define NUT_TIMER_CRYSTAL NUT_CPU_FREQ

#define NUT_TIMER_PRESCALE 128

#define OCR_VALUE

#define NUT_TICK_FREQ

#define TCCR_FLAGS

#define TCCRx TCCR0

#define TCNTx TCNT0

#define OCRx OCR0

#define TIFR_OCFx

#define TIFR_TOVx

#define sig_TIMER sig_OUTPUT_COMPARE0


Local Variables

cpu_clock
static u_long cpu_clock
Used in: NutDelay()  
  NutGetCpuClock()  
  NutRegisterTimer()  

Global Function NutDelay()

void NutDelay ( u_char ms )
Prototyped in: nut/include/arch/timer.h
Called by: AhdlcAvrDisable() nut/arch/avr/dev/ahdlcavr.c
  CSNicInit() nut/arch/avr/dev/cs8900.c
  CSSoftwareWakeup() nut/arch/avr/dev/cs8900.c
  DetectNicEeprom() nut/arch/avr/dev/nicrtl.c
  EmulateNicEeprom() nut/arch/avr/dev/nicrtl.c
  LcdDelay() nut/arch/avr/dev/hd44780.c
  LcdInit() nut/arch/avr/dev/hd44780_bus.c
  NicMmuWait() nut/arch/avr/dev/lanc111.c
  NicReset() nut/arch/avr/dev/nicrtl.c
  NicStart() nut/arch/avr/dev/nicrtl.c
  NutChatSendString() nut/dev/chat.c
References Variables: cpu_clock nut/arch/avr/dev/ostimer.c

Global Function NutGetCpuClock()

u_long NutGetCpuClock ( void )
Prototyped in: nut/include/arch/timer.h
Called by: AhdlcAvrIOCtl() nut/arch/avr/dev/ahdlcavr.c
  DebugIOCtl() nut/arch/avr/dev/debug0.c
References Variables: cpu_clock nut/arch/avr/dev/ostimer.c

Global Function NutGetTickClock()

u_long NutGetTickClock ( void )
Prototyped in: nut/include/arch/timer.h
Called by: NutGetMillis() nut/os/timer.c
  NutGetSeconds() nut/os/timer.c
  NutTimerMillisToTicks() nut/arch/avr/dev/ostimer.c

Global Function NutRegisterTimer()

void NutRegisterTimer ( void (*handler)(void*) )
Prototyped in: nut/include/arch/timer.h
Calls: NutRegisterIrqHandler() nut/dev/ihndlr.c
Called by: NutTimerInit() nut/os/timer.c
References Variables: cpu_clock nut/arch/avr/dev/ostimer.c

Global Function NutTimerMillisToTicks()

u_long NutTimerMillisToTicks ( u_long ms )
Prototyped in: nut/include/arch/timer.h
Calls: NutGetTickClock() nut/arch/avr/dev/ostimer.c
Called by: NutTimerStart() nut/os/timer.c