Added Programmable Interval Timer(PIT) driver

This commit is contained in:
ice-bit
2019-07-06 01:09:10 +02:00
parent ba9feaba18
commit bb1df4da6b
8 changed files with 94 additions and 8 deletions

View File

@@ -7,6 +7,8 @@
***************************************/
#ifndef _IDT_H_
#define _IDT_H_
#include <stdint.h>
/*
* First a bit of theory:
* Sometimes you want to interrupt the processor from what it is currently doing
@@ -18,8 +20,6 @@
* of interrupts handlers(ISRs) to the CPU.
*/
#include <stdint.h>
// Reserved bits in IDT entries
#define IDT_FLAG_RESERVED 0x0E