software: move time.c to libbase

This commit is contained in:
Sebastien Bourdeauducq 2013-07-11 19:00:48 +02:00
parent c2ec077d8f
commit e42a42ce40
6 changed files with 13 additions and 6 deletions

View File

@ -1,7 +1,15 @@
#ifndef __TIME_H
#define __TIME_H
#ifdef __cplusplus
extern "C" {
#endif
void time_init(void);
int elapsed(int *last_event, int period);
#ifdef __cplusplus
}
#endif
#endif /* __TIME_H */

View File

@ -1,7 +1,7 @@
M2DIR=../..
include $(M2DIR)/software/common.mak
OBJECTS=setjmp.o libc.o errno.o crc16.o crc32.o console.o system.o id.o uart.o qsort.o strtod.o
OBJECTS=setjmp.o libc.o errno.o crc16.o crc32.o console.o system.o id.o uart.o time.o qsort.o strtod.o
all: crt0.o libbase.a libbase-nofloat.a

View File

@ -1,6 +1,5 @@
#include <hw/csr.h>
#include "time.h"
#include <time.h>
void time_init(void)
{

View File

@ -1,7 +1,7 @@
M2DIR=../..
include $(M2DIR)/software/common.mak
OBJECTS=isr.o time.o fb.o dvisampler0.o dvisampler1.o main.o
OBJECTS=isr.o fb.o dvisampler0.o dvisampler1.o main.o
all: videomixer.bin videomixer.fbi

View File

@ -3,10 +3,10 @@
#include <irq.h>
#include <uart.h>
#include <time.h>
#include <hw/csr.h>
#include <hw/flags.h>
#include "time.h"
#include "fb.h"
#include "dvisamplerX.h"

View File

@ -3,11 +3,11 @@
#include <irq.h>
#include <uart.h>
#include <time.h>
#include <hw/csr.h>
#include <hw/flags.h>
#include <console.h>
#include "time.h"
#include "fb.h"
#include "dvisampler0.h"
#include "dvisampler1.h"