TacOS  0.2
 Tout Structures de données Fichiers Fonctions Variables Définitions de type Énumérations Macros
Macros | Fonctions
Référence du fichier i8254.c
#include <i8254.h>
#include <ioports.h>
Graphe des dépendances par inclusion de i8254.c:

Macros

#define COUNTER_0   0x40
 
#define COUNTER_1   0x41
 
#define COUNTER_2   0x42
 
#define CONTROL_REG   0x43
 
#define SELECT_COUNTER_0   0x0
 
#define SELECT_COUNTER_1   0x1
 
#define SELECT_COUNTER_2   0x2
 
#define NO_RW   0x0
 
#define RW_LOW   0x1
 
#define RW_HIGH   0x2
 
#define RW_ALL   0x3
 
#define MODE_0   0x0
 
#define MODE_1   0x1
 
#define MODE_2   0x2
 
#define MODE_3   0x3
 
#define MODE_4   0x4
 
#define MODE_5   0x5
 
#define BINARY_COUNT   0x0
 
#define DECIMAL_COUNT   0x1
 

Fonctions

int i8254_init (uint32_t freq)
 

Description détaillée

Auteur
TacOS developers

LICENSE

Copyright (C) 2010-2014 TacOS developers.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details at http://www.gnu.org/copyleft/gpl.html

You should have received a copy of the GNU General Public License along with this program; if not, see http://www.gnu.org/licenses.

DESCRIPTION

Description de ce que fait le fichier

Documentation des macros

#define CONTROL_REG   0x43

Mode control register

#define COUNTER_0   0x40

Clock

#define COUNTER_1   0x41

RAM Refresh Counter (usually in mode 2)

#define COUNTER_2   0x42

Speaker function

#define MODE_0   0x0

count down and interrupt on 0