fremoclock  1_3A01
FREMO Clock - Software for UTG
sysdef.h File Reference

System wide Definitions for FREMO Clock. More...

Go to the source code of this file.

Macros

#define MCU
 MCU (microcontroller) used. More...
 
#define F_CPU   16000000
 Processor frequency. More...
 
#define VERSION   "1.3A01"
 Version String of software package. More...
 
#define HOST_BAUD_RATE   115200
 The baudrate used when SERIAL_OUT_ON is defined. More...
 
#define DEBUG_TIMER_ON
 Do not know what this is used for. More...
 
#define SYSTEM_TIMER_ON
 Do not know what this is used for. More...
 
#define BOARD_PROTO_48
 Definition of the board used. More...
 
#define CLOCK_PERIOD_10   6000
 10 times counts needed for 1 min in 1:1 More...
 
#define CLOCK_PORT   PORTC
 Port for clock pulsebits. More...
 
#define CLOCK_DDR   DDRC
 Datadirectionreg of port for clock pulsebits. More...
 
#define CLOCK_PULSE_ODD   PC1
 Portbit for odd clock pulse. More...
 
#define CLOCK_PULSE_EVEN   PC2
 Portbit for even clock pulse. More...
 
#define CLOCK_PULSE_ENABLE12   PC3
 Portbit for enable clock pulse line 1. More...
 
#define CLOCK_PULSE_ENABLE34   PC0
 Portbit for enable clock pulse line 2. More...
 
#define BUTTON_PORT   PORTB
 Port used for buttons. More...
 
#define BUTTON_DDR   DDRB
 Data direction register used for buttons. More...
 
#define BUTTON_PINS   PINB
 Input register used for buttons. More...
 
#define BUTTON_ENTER_PIN   PINB2
 Pin used for enter button. More...
 
#define BUTTON_BACK_PIN   PINB3
 Pin used for back button. More...
 
#define BUTTON_UP_PIN   PINB4
 Pin used for up button. More...
 
#define BUTTON_DOWN_PIN   PINB5
 Pin used for down button. More...
 

Detailed Description

System wide Definitions for FREMO Clock.

System wide Definitions to get all those things to one place, which are suspect to change very often; e.g. Baudrate, Frequency of Oscillator, MCU-Type or Board.

Target:

  • any AVR device with output compare on timer0

Software

  • AVR-GCC with WinAVR
Version
$Id: sysdef.h 160 2016-09-03 07:24:55Z pischky $
Author
Bernd Wisotzki [BA] wsb56.nosp@m.@use.nosp@m.rs.so.nosp@m.urce.nosp@m.forge.nosp@m..net
Date
01-Jan-2007

Definition in file sysdef.h.

Macro Definition Documentation

#define BOARD_PROTO_48

Definition of the board used.

Defines port and processor usage. Select one for your hardware used.

Definition at line 101 of file sysdef.h.

#define BUTTON_BACK_PIN   PINB3

Pin used for back button.

Definition at line 140 of file sysdef.h.

#define BUTTON_DDR   DDRB

Data direction register used for buttons.

Definition at line 136 of file sysdef.h.

#define BUTTON_DOWN_PIN   PINB5

Pin used for down button.

Definition at line 142 of file sysdef.h.

#define BUTTON_ENTER_PIN   PINB2

Pin used for enter button.

Definition at line 139 of file sysdef.h.

#define BUTTON_PINS   PINB

Input register used for buttons.

Definition at line 137 of file sysdef.h.

#define BUTTON_PORT   PORTB

Port used for buttons.

Definition at line 135 of file sysdef.h.

#define BUTTON_UP_PIN   PINB4

Pin used for up button.

Definition at line 141 of file sysdef.h.

#define CLOCK_DDR   DDRC

Datadirectionreg of port for clock pulsebits.

Definition at line 129 of file sysdef.h.

#define CLOCK_PERIOD_10   6000

10 times counts needed for 1 min in 1:1

Definition at line 107 of file sysdef.h.

#define CLOCK_PORT   PORTC

Port for clock pulsebits.

Definition at line 128 of file sysdef.h.

#define CLOCK_PULSE_ENABLE12   PC3

Portbit for enable clock pulse line 1.

Definition at line 132 of file sysdef.h.

#define CLOCK_PULSE_ENABLE34   PC0

Portbit for enable clock pulse line 2.

Definition at line 133 of file sysdef.h.

#define CLOCK_PULSE_EVEN   PC2

Portbit for even clock pulse.

Definition at line 131 of file sysdef.h.

#define CLOCK_PULSE_ODD   PC1

Portbit for odd clock pulse.

Definition at line 130 of file sysdef.h.

#define DEBUG_TIMER_ON

Do not know what this is used for.

Definition at line 87 of file sysdef.h.

#define F_CPU   16000000

Processor frequency.

This may also be predefined in Makefile of by eclipse avr plugin.16 MHz

Definition at line 67 of file sysdef.h.

#define HOST_BAUD_RATE   115200

The baudrate used when SERIAL_OUT_ON is defined.

Definition at line 80 of file sysdef.h.

#define MCU

MCU (microcontroller) used.

MCU is defined in the makefile (or eclipse avr plugin) and passed to compiler by -mmcu switch. It can be accessed by code like:

1 #if defined (__AVR_ATmega168__)

Definition at line 56 of file sysdef.h.

#define SYSTEM_TIMER_ON

Do not know what this is used for.

Definition at line 89 of file sysdef.h.

#define VERSION   "1.3A01"

Version String of software package.

Something like "1.2A01".

Definition at line 77 of file sysdef.h.