My Project
Loading...
Searching...
No Matches
pit.c File Reference
#include <stdint.h>
#include "../../intrinsics/intrin.h"
#include "../../includes/mh.h"
#include "../../includes/me.h"

Go to the source code of this file.

Macros

#define PIT_FREQ_HZ   1193182U
#define PIT_CMD_PORT   0x43
#define PIT_CH0_PORT   0x40
#define PIT_CMD_MODE2_LBHB   0x34
#define PIT_CMD_LATCH_CH0   0x00

Functions

void pit_sleep_ms (uint32_t ms)

Macro Definition Documentation

◆ PIT_CH0_PORT

#define PIT_CH0_PORT   0x40

Definition at line 9 of file pit.c.

◆ PIT_CMD_LATCH_CH0

#define PIT_CMD_LATCH_CH0   0x00

Definition at line 16 of file pit.c.

◆ PIT_CMD_MODE2_LBHB

#define PIT_CMD_MODE2_LBHB   0x34

Definition at line 15 of file pit.c.

◆ PIT_CMD_PORT

#define PIT_CMD_PORT   0x43

Definition at line 8 of file pit.c.

◆ PIT_FREQ_HZ

#define PIT_FREQ_HZ   1193182U

Definition at line 7 of file pit.c.

Function Documentation

◆ pit_sleep_ms()

void pit_sleep_ms ( uint32_t ms)

Definition at line 19 of file pit.c.