get rid of useless types.h header
This commit is contained in:
+1
-2
@@ -1,6 +1,5 @@
|
||||
#ifndef IDT_H
|
||||
#define IDT_H
|
||||
#include "../include/types.h"
|
||||
#include <stdint.h>
|
||||
|
||||
typedef struct {
|
||||
@@ -21,7 +20,7 @@ typedef struct {
|
||||
|
||||
static idtr_t idtr;
|
||||
|
||||
void idt_set_descriptor(uint8 vector, uint32 isr, uint8_t flags);
|
||||
void idt_set_descriptor(uint8_t vector, uint32_t isr, uint8_t flags);
|
||||
void idt_set();
|
||||
|
||||
#endif
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
#ifndef TYPES_H
|
||||
#define TYPES_H
|
||||
|
||||
typedef signed char int8;
|
||||
typedef unsigned char uint8;
|
||||
|
||||
typedef signed short int16;
|
||||
typedef unsigned short uint16;
|
||||
|
||||
typedef signed int int32;
|
||||
typedef unsigned int uint32;
|
||||
|
||||
typedef signed long long int64;
|
||||
typedef unsigned long long uint64;
|
||||
|
||||
typedef char* string;
|
||||
|
||||
#define low_16(address) (uint16)((address) & 0xFFFF)
|
||||
#define high_16(address) (uint16)(((address) >> 16) & 0xFFFF)
|
||||
|
||||
#endif
|
||||
+2
-3
@@ -1,11 +1,10 @@
|
||||
#ifndef UTILS_H
|
||||
#define UTILS_H
|
||||
#include "../include/types.h"
|
||||
#include "../include/stdio.h"
|
||||
#include <stdint.h>
|
||||
|
||||
uint8 inportb(uint16 _port);
|
||||
void outportb(uint16 _port, uint8 _data);
|
||||
uint8_t inportb(uint16_t _port);
|
||||
void outportb(uint16_t _port, uint8_t _data);
|
||||
uint8_t get_rtc(uint8_t reg);
|
||||
void get_fancy_datetime();
|
||||
void get_datetime(uint16_t *year, uint8_t *month, uint8_t *day, uint8_t *hour, uint8_t *minute, uint8_t *second);
|
||||
|
||||
Reference in New Issue
Block a user