Sample Code; Introduction; Sample Code Using 13504Hal Api - Epson S1D13504 Technical Manual

Color graphics lcd/crt controller
Hide thumbs Also See for S1D13504:
Table of Contents

Advertisement

Page 54

9 Sample Code

9.1 Introduction

9.1.1 Sample code using 13504HAL API

/*
**-------------------------------------------------------------------------
**
**
Created 1998, Epson Research & Development
**
**
Copyright (c) 1998 Epson Research and Development, Inc.
**
All rights reserved.
**
**-------------------------------------------------------------------------
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "hal.h"
#include "appcfg.h"
/*--------------------------------------------------------------------------*/
void main(void)
{
BYTE ChipId;
int Device;
switch (seRegisterDevice(&Cfg.DeviceInfo[0], &Cfg.DeviceChip, &Device))
{
case ERR_OK:
break;
case HAL_DEVICE_ERR:
printf("ERROR: Too many devices registered.\n");
exit(1);
default:
printf("ERROR: Could not register S1D13504 device.\n");
exit(1);
}
S1D13504
X19A-G-002-07
The following code samples demonstrate two approaches to initializing the S1D13504 color
graphics controller with/without using the 13504HAL API. These code samples are for example
purposes only.
Vancouver Design Centre
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/01

Advertisement

Table of Contents
loading

Table of Contents