src/def_hp34970_fp.h

Sun, 25 Oct 2020 22:15:35 +0100

author
David Douard <david.douard@sdf3.org>
date
Sun, 25 Oct 2020 22:15:35 +0100
changeset 33
167010858b8d
parent 32
bc1d6ecbb0cc
child 44
b3c3d54d2c7c
permissions
-rw-r--r--

Reformat Keypad.cpp

// STM32F303xE based HP34970 replacement PCB

#if !defined(DEF_HP34970_FP_H)

#define DEF_HP34970_FP_H

#define DSP_MOSI PA_7
#define DSP_MISO PA_6 // NC
#define DSP_SCLK PA_5
#define DSP_CS   PA_2
#define DSP_RST  PA_3
#define DSP_DC   PA_4

// UART for RX (CPU->DP)
#define HP_RX PC_5
#define HP_TX PC_4

// RST pin (handle this by hand)
#define HP_RST PA_15

// encoder
#define KP_ENC1 PA_0
#define KP_ENC2 PA_1

// keypad
#define KP_R0 PB_5
#define KP_R1 PB_6
#define KP_R2 PB_7
#define KP_R3 PB_8

#define KP_C0 PC_2
#define KP_C1 PC_1
#define KP_C2 PC_0
#define KP_C3 PB_4
#define KP_C4 PB_0
/*
#if defined(HAVE_PC)
#include <USBSerial.h>
USBSerial pc;
#endif
*/

#endif

mercurial