Files
ats20/contr.h
Олег Бородин 9ae1e7bc07 update
2025-01-18 13:25:14 +02:00

51 lines
929 B
C

#ifndef CONTR_H_QWERTY
#define CONTR_H_QWERTY
#include <stdint.h>
#define PINBADDR ((0x03) + 0x20)
#define DDRBADDR ((0x04) + 0x20)
#define PORTBADDR ((0x05) + 0x20)
#define PINCADDR ((0x06) + 0x20)
#define DDRCADDR ((0x07) + 0x20)
#define PORTCADDR ((0x08) + 0x20)
#define PINDADDR ((0x09) + 0x20)
#define DDRDADDR ((0x0A) + 0x20)
#define PORTDADDR ((0x0B) + 0x20)
// PD2 - ENC--
// PD3 - ENC++
// PD4 - Mode
// PD5 - BW
// PD6 - Vol+
// PD7 - Vol-
// PB0 - Band+
// PB1 - Band-
// PB2 - Step
// PB3 - AGC
// PB4 - xx
// PC0 - ENC
#define BTVOLPLUS_DDRADDR DDRDADDR
#define BTVOLPLUS_PORTADDR PORTDADDR
#define BTVOLPLUS_PINDADDR PINDADDR
#define BTVOLPLUS_OUTNUM PD6
#define BTVOLMINUS_DDRADDR DDRDADDR
#define BTVOLMINUS_PORTADDR PORTDADDR
#define BTVOLMINUS_PINDADDR PINDADDR
#define BTVOLMINUS_OUTNUM PD7
void contr_init(void);
void contr_setup(void);
void contr_main(void);
#endif