update
This commit is contained in:
40
contr.h
40
contr.h
@@ -3,7 +3,45 @@
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
button_t volume_button;
|
||||
|
||||
#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);
|
||||
|
||||
Reference in New Issue
Block a user