Closed larsbrinkhoff closed 8 years ago
Oops, have to fix a bug.
Fixed. Go ahead.
The delay API keeps a linked list, sorted by time, with the time delta in each element. The elements are allocated with malloc
. The API is used very frequently, e.g. every four clock cycle in the MMU, so this may impose an overhead. Maybe the element should be statically allocated in an array.
Start defining a separate unit which controls the system clock. This unit makes calls to other devices to advance their state machines.
clock.c
file to make all clock callbacks.