x86: Move available drivers into drivers/legacy_pc/
All drivers implemented so far are for chips which are only available on legacy x86 PCs. This commit moves them into a more appropriate folder, also making the cpu/x86/drivers/ folder ready for other x86 based SoCs.
This commit is contained in:
parent
9d3b9cadc4
commit
23e8090257
|
@ -1,4 +1,4 @@
|
||||||
CONTIKI_CPU_DIRS = . drivers
|
CONTIKI_CPU_DIRS = . drivers/legacy_pc
|
||||||
|
|
||||||
CONTIKI_SOURCEFILES += gdt.c helpers.S idt.c cpu.c rtc.c pit.c pic.c
|
CONTIKI_SOURCEFILES += gdt.c helpers.S idt.c cpu.c rtc.c pit.c pic.c
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "drivers/pic.h"
|
#include "drivers/legacy_pc/pic.h"
|
||||||
|
|
||||||
#define PIC_ACK 0x20
|
#define PIC_ACK 0x20
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#include "drivers/pic.h"
|
#include "drivers/legacy_pc/pic.h"
|
||||||
#include "pit.h"
|
#include "drivers/legacy_pc/pit.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "interrupt.h"
|
#include "interrupt.h"
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "drivers/rtc.h"
|
#include "drivers/legacy_pc/rtc.h"
|
||||||
#include "drivers/pic.h"
|
#include "drivers/legacy_pc/pic.h"
|
||||||
#include "helpers.h"
|
#include "helpers.h"
|
||||||
#include "interrupt.h"
|
#include "interrupt.h"
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
#include "sys/etimer.h"
|
#include "sys/etimer.h"
|
||||||
|
|
||||||
#include "contiki-conf.h"
|
#include "contiki-conf.h"
|
||||||
#include "drivers/rtc.h"
|
#include "drivers/legacy_pc/rtc.h"
|
||||||
|
|
||||||
#if CLOCK_CONF_SECOND == 2
|
#if CLOCK_CONF_SECOND == 2
|
||||||
#define FREQ RTC_2_HZ
|
#define FREQ RTC_2_HZ
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
#include "sys/rtimer.h"
|
#include "sys/rtimer.h"
|
||||||
|
|
||||||
#include "contiki-conf.h"
|
#include "contiki-conf.h"
|
||||||
#include "drivers/pit.h"
|
#include "drivers/legacy_pc/pit.h"
|
||||||
|
|
||||||
static volatile rtimer_clock_t tick_count = 0;
|
static volatile rtimer_clock_t tick_count = 0;
|
||||||
static rtimer_clock_t trigger = UINT64_MAX;
|
static rtimer_clock_t trigger = UINT64_MAX;
|
||||||
|
|
Loading…
Reference in a new issue