~ubuntu-branches/ubuntu/maverick/avr-libc/maverick

« back to all changes in this revision

Viewing changes to include/avr/io90pwm316.h

  • Committer: Bazaar Package Importer
  • Author(s): Hakan Ardo
  • Date: 2009-10-31 11:52:10 UTC
  • mfrom: (1.1.8 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091031115210-x0mlijnegkce86fk
Tags: 1:1.6.7-1
* New upstream relese (closes: #544030)
* Added lintian overrides (closes: #553265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29
29
  POSSIBILITY OF SUCH DAMAGE. */
30
30
 
31
 
/* $Id: io90pwm316.h,v 1.7.2.4 2008/02/21 18:07:29 arcanum Exp $ */
 
31
/* $Id: io90pwm316.h,v 1.7.2.8 2009/02/11 18:05:24 arcanum Exp $ */
32
32
 
33
33
/* avr/io90pwm316.h - definitions for AT90PWM316 */
34
34
 
1165
1165
 
1166
1166
#define RAMEND         0x4FF
1167
1167
#define XRAMSIZE       0
1168
 
#define XRAMEND        (RAMEND + XRAMSIZE)
 
1168
#define XRAMEND        RAMEND
1169
1169
#define E2END          0x1FF
 
1170
#define E2PAGESIZE     4
1170
1171
#define FLASHEND       0x3FFF
1171
1172
#define SPM_PAGESIZE   128
1172
1173
 
1176
1177
#define FUSE_MEMORY_SIZE 3
1177
1178
 
1178
1179
/* Low Fuse Byte */
1179
 
#define FUSE_CKSEL0  ~_BV(0)  /* Select Clock Source */
1180
 
#define FUSE_CKSEL1  ~_BV(1)  /* Select Clock Source */
1181
 
#define FUSE_CKSEL2  ~_BV(2)  /* Select Clock Source */
1182
 
#define FUSE_CKSEL3  ~_BV(3)  /* Select Clock Source */
1183
 
#define FUSE_SUT0    ~_BV(4)  /* Select start-up time */
1184
 
#define FUSE_SUT1    ~_BV(5)  /* Select start-up time */
1185
 
#define FUSE_CKOUT   ~_BV(6)  /* Oscillator output option */
1186
 
#define FUSE_CKDIV8  ~_BV(7)  /* Divide clock by 8 */
 
1180
#define FUSE_CKSEL0  (unsigned char)~_BV(0)  /* Select Clock Source */
 
1181
#define FUSE_CKSEL1  (unsigned char)~_BV(1)  /* Select Clock Source */
 
1182
#define FUSE_CKSEL2  (unsigned char)~_BV(2)  /* Select Clock Source */
 
1183
#define FUSE_CKSEL3  (unsigned char)~_BV(3)  /* Select Clock Source */
 
1184
#define FUSE_SUT0    (unsigned char)~_BV(4)  /* Select start-up time */
 
1185
#define FUSE_SUT1    (unsigned char)~_BV(5)  /* Select start-up time */
 
1186
#define FUSE_CKOUT   (unsigned char)~_BV(6)  /* Oscillator output option */
 
1187
#define FUSE_CKDIV8  (unsigned char)~_BV(7)  /* Divide clock by 8 */
1187
1188
#define LFUSE_DEFAULT (FUSE_CKSEL0 & FUSE_CKSEL2 & FUSE_CKSEL3 & FUSE_SUT0 & FUSE_CKDIV8)
1188
1189
 
1189
1190
/* High Fuse Byte */
1190
 
#define FUSE_BODLEVEL0 ~_BV(0)
1191
 
#define FUSE_BODLEVEL1 ~_BV(1)
1192
 
#define FUSE_BODLEVEL2 ~_BV(2)
1193
 
#define FUSE_EESAVE    ~_BV(3)  /* EEPROM memory is preserved through chip erase */
1194
 
#define FUSE_WDTON     ~_BV(4)  /* Watchdog timer always on */
1195
 
#define FUSE_SPIEN     ~_BV(5)  /* Enable Serial programming and Data Downloading */
1196
 
#define FUSE_DWEN      ~_BV(6)  /* debugWIRE Enable */
1197
 
#define FUSE_RSTDISBL  ~_BV(7)  /* External Reset Diasble */
 
1191
#define FUSE_BODLEVEL0 (unsigned char)~_BV(0)
 
1192
#define FUSE_BODLEVEL1 (unsigned char)~_BV(1)
 
1193
#define FUSE_BODLEVEL2 (unsigned char)~_BV(2)
 
1194
#define FUSE_EESAVE    (unsigned char)~_BV(3)  /* EEPROM memory is preserved through chip erase */
 
1195
#define FUSE_WDTON     (unsigned char)~_BV(4)  /* Watchdog timer always on */
 
1196
#define FUSE_SPIEN     (unsigned char)~_BV(5)  /* Enable Serial programming and Data Downloading */
 
1197
#define FUSE_DWEN      (unsigned char)~_BV(6)  /* debugWIRE Enable */
 
1198
#define FUSE_RSTDISBL  (unsigned char)~_BV(7)  /* External Reset Diasble */
1198
1199
#define HFUSE_DEFAULT (FUSE_SPIEN)
1199
1200
 
1200
1201
/* Extended Fuse Byte */
1201
 
#define FUSE_BOOTRST  ~_BV(0)  /* Select Reset Vector */
1202
 
#define FUSE_BOOTSZ0  ~_BV(1)  /* Select Boot Size */
1203
 
#define FUSE_BOOTSZ1  ~_BV(2)  /* Select Boot Size */
1204
 
#define FUSE_PSCRV    ~_BV(4)
1205
 
#define FUSE_PSC0RB   ~_BV(5)
1206
 
#define FUSE_PSC1RB   ~_BV(6)
1207
 
#define FUSE_PSC2RB   ~_BV(7)
 
1202
#define FUSE_BOOTRST  (unsigned char)~_BV(0)  /* Select Reset Vector */
 
1203
#define FUSE_BOOTSZ0  (unsigned char)~_BV(1)  /* Select Boot Size */
 
1204
#define FUSE_BOOTSZ1  (unsigned char)~_BV(2)  /* Select Boot Size */
 
1205
#define FUSE_PSCRV    (unsigned char)~_BV(4)
 
1206
#define FUSE_PSC0RB   (unsigned char)~_BV(5)
 
1207
#define FUSE_PSC1RB   (unsigned char)~_BV(6)
 
1208
#define FUSE_PSC2RB   (unsigned char)~_BV(7)
1208
1209
#define EFUSE_DEFAULT (FUSE_BOOTSZ0 & FUSE_BOOTSZ1)
1209
1210
 
1210
1211
 
1214
1215
#define __BOOT_LOCK_BITS_1_EXIST 
1215
1216
 
1216
1217
 
 
1218
/* Signature */
 
1219
#define SIGNATURE_0 0x1E
 
1220
#define SIGNATURE_1 0x94
 
1221
#define SIGNATURE_2 0x83
 
1222
 
 
1223
 
1217
1224
#endif /* _AVR_IO90PWM316_H_ */