Files
SyncHome/trunk/MPLABXProjects/16F874.X/main.h
paolo.iocco e51d00d234
2023-03-09 10:05:56 +00:00

42 lines
815 B
C

/*
* File: main.h
* Author: q242695
*
* Created on 22. Mai 2013, 17:50
*/
#ifndef MAIN_H
#define MAIN_H
#ifndef _XTAL_FREQ
#define _XTAL_FREQ 25000000L
#endif
/* Definizione dei piedini del Display compatibile Hitachi */
/* Ricordarsi di configurare ndel main() TRISx e PORTx */
#define LCD_D7 PORTDbits.RD7
#define LCD_D6 PORTDbits.RD6
#define LCD_D5 PORTDbits.RD5
#define LCD_D4 PORTDbits.RD4
#define LCD_E PORTDbits.RD3
#define LCD_RS PORTDbits.RD2
/* Definizione degli I/O LED */
/* Ricordarsi di configurare ndel main() TRISx e PORTx */
#define LED_0 PORTBbits.RB0
#define LED_1 PORTBbits.RB1
#define LED_2 PORTBbits.RB2
#define LED_3 PORTBbits.RB3
/* Definizioni di MPLABX */
#ifdef __cplusplus
extern "C" {
#endif
#ifdef __cplusplus
}
#endif
#endif /* MAIN_H */