Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
(ARM).Porting TCP-IP programmer's guide.Ver 1.4.pdf
Скачиваний:
31
Добавлен:
23.08.2013
Размер:
2.79 Mб
Скачать

ARM-specific Functions

10.3clock.c

This file contains two functions, clock_init() and clock_c(), that manage timer interrupts, used solely to keep track of elapsed time. This section describes the functions that are implemented with this file.

10.3.1clock_init()

The clock_init() function is used to initialize one of the timers on the PID card to generate a regular clock tick interrupt. The values used to program the timer are calculated from the clock frequency (#defined at the top of clock.c) and the TPS macro value, #defined in the ipport.h file.

10.3.2clock_c()

The clock_c() function contains commented out code to reverse the process started by the clock_init() function, halting the clock tick interrupts. If used, the clock_c() function is called when the network protocol stack is shutdown. It is unlikely that clock_c() would be used in a typical embedded application.

10-6

Copyright © 1998 and 1999 ARM Limited. All rights reserved.

ARM DUI 0079B