You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
2.2 KiB

//#############################################################################################################################################################################################################
#ifndef _INC_RSLINK_CUSTOM_H_
#define _INC_RSLINK_CUSTOM_H_
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#include <inttypes.h>
#include <avr/io.h>
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Status led
#define RSLINK_LED_DDR DDRE
#define RSLINK_LED_PORT PORTE
#define RSLINK_LED_PIN PINE
#define RSLINK_LED_BIT 1
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
// Dip switch Adders, Speed, Bus Type
#define RSLINK_DIPS_CP_PORT PORTD
#define RSLINK_DIPS_CP_DDR DDRD
#define RSLINK_DIPS_CP_PIN PIND
#define RSLINK_DIPS_CP_BIT 7
#define RSLINK_DIPS_nPL_PORT PORTD
#define RSLINK_DIPS_nPL_DDR DDRD
#define RSLINK_DIPS_nPL_PIN PIND
#define RSLINK_DIPS_nPL_BIT 6
#define RSLINK_DIPS_Q7_PORT PORTD
#define RSLINK_DIPS_Q7_DDR DDRD
#define RSLINK_DIPS_Q7_PIN PIND
#define RSLINK_DIPS_Q7_BIT 5
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
uint16_t RSLink_DipsRead(void);
//void RSLink_TimerInit();
//-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
#endif // #ifndef _INC_RSLINK_CUSTOM_H_
//#############################################################################################################################################################################################################