src/def_hp34970_fp.h

Tue, 27 Oct 2020 21:48:28 +0100

author
David Douard <david.douard@sdf3.org>
date
Tue, 27 Oct 2020 21:48:28 +0100
changeset 39
63c6a720cb97
parent 32
bc1d6ecbb0cc
child 44
b3c3d54d2c7c
permissions
-rw-r--r--

hp34comm: add support for boot keycode

// 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