2010-08-23 20:26:01 +03:00
|
|
|
/*
|
|
|
|
* common/regs-f320.h - C8051F320 register definitions
|
|
|
|
*
|
|
|
|
* Written 2008 by Werner Almesberger
|
|
|
|
* Copyright 2008 Werner Almesberger
|
|
|
|
*
|
|
|
|
* 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 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef REGS_F320_H
|
|
|
|
#define REGS_F320_H
|
|
|
|
|
2010-08-23 20:31:33 +03:00
|
|
|
#include <mcs51/C8051F320.h>
|
2010-08-23 20:26:01 +03:00
|
|
|
#include "regs-f32x.h"
|
|
|
|
|
|
|
|
|
|
|
|
/* RSTSRC, extending f32x */
|
|
|
|
#define WDTRSF 0x08 /* Watchdog Timer Reset Flag */
|
|
|
|
#define C0RSEF 0x20 /* Comparator0 Reset Enable and Flag */
|
|
|
|
|
|
|
|
/* XBR0 */
|
|
|
|
#define URT0E 0x01 /* UART I/O Output Enable */
|
|
|
|
#define SPI0E 0x02 /* SPI I/O Enable */
|
|
|
|
#define SMB0E 0x04 /* SMBus I/O Enable */
|
|
|
|
#define SYSCKE 0x08 /* nSYSCLK Output Enable */
|
|
|
|
#define CP0E 0x10 /* Comparator0 Output Enable */
|
|
|
|
#define CP0AE 0x20 /* Comparator0 Asynchronous Output Enable */
|
|
|
|
#define CP1E 0x40 /* Comparator1 Output Enable */
|
|
|
|
#define CP1AE 0x80 /* Comparator1 Asynchronous Output Enable */
|
|
|
|
|
|
|
|
/* XBR1 */
|
|
|
|
#define ECIE 0x08 /* PCA0 External Counter Input Enable */
|
|
|
|
#define T0E 0x10 /* T0 Enable */
|
|
|
|
#define T1E 0x20 /* T1 Enable */
|
|
|
|
#define XBARE 0x40 /* Crossbar Enable */
|
|
|
|
#define WEAKPUD 0x80 /* Port I/O Weak Pull-up Disable */
|
|
|
|
|
2010-08-24 00:11:51 +03:00
|
|
|
/* TMOD, extending f32x */
|
|
|
|
#define C_T0 0x04 /* Counter/Timer Select */
|
|
|
|
|
|
|
|
/* CKCON, extending f32x */
|
|
|
|
#define T2ML 0x10 /* Timer 2 Low Byte Clock Select */
|
|
|
|
#define T2MH 0x20 /* Timer 2 High Byte Clock Select */
|
|
|
|
#define T3ML 0x40 /* Timer 3 Low Byte Clock Select */
|
|
|
|
#define T3MH 0x80 /* Timer 3 High Byte Clock Select */
|
|
|
|
|
2010-08-23 20:26:01 +03:00
|
|
|
#endif /* REGS_F320_H */
|