Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
triazo
/
kernel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
3
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
99915182
authored
Oct 14, 2015
by
malcolm
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Fixed include dependencies
parent
9c69c314
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
src/pic.c
src/pit.c
src/pic.c
View file @
99915182
...
@@ -5,7 +5,7 @@ uint8_t pic_read(uint16_t pic)
...
@@ -5,7 +5,7 @@ uint8_t pic_read(uint16_t pic)
{
{
if
(
pic
>
1
)
if
(
pic
>
1
)
{
{
return
;
return
0
;
}
}
uint16_t
reg
=
(
pic
==
0
)
?
PIC1_REG_DATA
:
PIC2_REG_DATA
;
uint16_t
reg
=
(
pic
==
0
)
?
PIC1_REG_DATA
:
PIC2_REG_DATA
;
return
inb
(
reg
);
return
inb
(
reg
);
...
...
src/pit.c
View file @
99915182
#include "pit.h"
#include "pit.h"
#include "pic.h"
#include "pic.h"
#include "idt.h"
#include "idt.h"
#include "asm.h"
static
volatile
uint32_t
_pit_ticks
=
0
;
static
volatile
uint32_t
_pit_ticks
=
0
;
static
bool
_pit_is_init
=
false
;
static
bool
_pit_is_init
=
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment