- refactored libsys into common
git-svn-id: http://moon:8086/svn/mips@198 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* To change this license header, choose License Headers in Project Properties.
|
||||
* To change this template file, choose Tools | Templates
|
||||
* and open the template in the editor.
|
||||
*/
|
||||
|
||||
/*
|
||||
* File: screen.h
|
||||
* Author: jens
|
||||
*
|
||||
* Created on 8. Januar 2017, 14:22
|
||||
*/
|
||||
|
||||
#ifndef SCREEN_H
|
||||
#define SCREEN_H
|
||||
|
||||
typedef struct _svga_if_t
|
||||
{
|
||||
volatile uint32_t *pCTRL;
|
||||
volatile uint32_t *pDATA;
|
||||
volatile uint32_t *pCSRX;
|
||||
volatile uint32_t *pCSRY;
|
||||
} vga_if_t;
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void cg_set_csr_x(vga_if_t const *pIF, uint32_t coord);
|
||||
void cg_set_csr_y(vga_if_t const *pIF, uint32_t coord);
|
||||
void cg_clr_line(vga_if_t const *pIF);
|
||||
void cg_clr_screen(vga_if_t const *pIF);
|
||||
|
||||
uint32_t Screen_get_resx(void);
|
||||
uint32_t Screen_get_resy(void);
|
||||
uint32_t Screen_get_fps(void);
|
||||
|
||||
void cg_writechar(void const *pInst, char c);
|
||||
void cg_open(void const *pInst);
|
||||
void cg_close(void const *pInst);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* SCREEN_H */
|
||||
|
||||
Reference in New Issue
Block a user