C8051F32x firmware infrastructure
Sign in or create your account | Project List | Help
C8051F32x firmware infrastructure Git Source Tree
Root/
| 1 | /* |
| 2 | * common/regs.h - C8051F326 register definitions |
| 3 | * |
| 4 | * Written 2008 by Werner Almesberger |
| 5 | * Copyright 2008 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef REGS_F326_H |
| 15 | #define REGS_F326_H |
| 16 | |
| 17 | #include <mcs51/C8051F326.h> |
| 18 | #include "regs-f32x.h" |
| 19 | |
| 20 | |
| 21 | /* GPIOCN */ |
| 22 | #define SYSCLK 0x01 /* nSYSCLK Enable */ |
| 23 | #define INPUTEN 0x40 /* Global Digital Input Enable */ |
| 24 | #define WEAKPUD 0x80 /* Port I/O Weak Pullup Disable */ |
| 25 | |
| 26 | /* SMOD0 */ |
| 27 | #define S0DL0 0x04 /* Data Length */ |
| 28 | #define S0DL1 0x08 /* 00: 5-bit, 01: 6-bit, 10: 7-bit, 11: 8-bit */ |
| 29 | |
| 30 | /* SBCON0 */ |
| 31 | #define SB0PS0 0x01 /* Baud Rate Prescaler Select */ |
| 32 | #define SB0PS1 0x02 /* 00: /12, 01: /4, 10: /48, 11: /1 */ |
| 33 | #define SB0RUN 0x40 /* Baud Rate Generator Enable */ |
| 34 | #define SB0CLK 0x80 /* Baud Rate Clock Source */ |
| 35 | |
| 36 | #endif /* REGS_F326_H */ |
| 37 |
Branches:
master
