|
|
@ -125,6 +125,39 @@
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
#elif defined(PROTOCOL_CHIBIOS)
|
|
|
|
#elif defined(PROTOCOL_CHIBIOS)
|
|
|
|
|
|
|
|
#ifdef PROTON_CONVERSION
|
|
|
|
|
|
|
|
// Left side (front)
|
|
|
|
|
|
|
|
#define D3 PAL_LINE(GPIOA, 9)
|
|
|
|
|
|
|
|
#define D2 PAL_LINE(GPIOA, 10)
|
|
|
|
|
|
|
|
// GND
|
|
|
|
|
|
|
|
// GND
|
|
|
|
|
|
|
|
#define D1 PAL_LINE(GPIOB, 7)
|
|
|
|
|
|
|
|
#define D0 PAL_LINE(GPIOB, 6)
|
|
|
|
|
|
|
|
#define D4 PAL_LINE(GPIOB, 5)
|
|
|
|
|
|
|
|
#define C6 PAL_LINE(GPIOB, 4)
|
|
|
|
|
|
|
|
#define C7 PAL_LINE(GPIOB, 3)
|
|
|
|
|
|
|
|
#define E6 PAL_LINE(GPIOB, 2)
|
|
|
|
|
|
|
|
#define B4 PAL_LINE(GPIOB, 1)
|
|
|
|
|
|
|
|
#define B5 PAL_LINE(GPIOB, 0)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Right side (front)
|
|
|
|
|
|
|
|
// RAW
|
|
|
|
|
|
|
|
// GND
|
|
|
|
|
|
|
|
// RESET
|
|
|
|
|
|
|
|
// VCC
|
|
|
|
|
|
|
|
#define F4 PAL_LINE(GPIOA, 2)
|
|
|
|
|
|
|
|
#define F5 PAL_LINE(GPIOA, 1)
|
|
|
|
|
|
|
|
#define F6 PAL_LINE(GPIOA, 0)
|
|
|
|
|
|
|
|
#define F7 PAL_LINE(GPIOB, 8)
|
|
|
|
|
|
|
|
#define B1 PAL_LINE(GPIOB, 13)
|
|
|
|
|
|
|
|
#define B3 PAL_LINE(GPIOB, 14)
|
|
|
|
|
|
|
|
#define B2 PAL_LINE(GPIOB, 15)
|
|
|
|
|
|
|
|
#define B6 PAL_LINE(GPIOB, 9)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// LEDs
|
|
|
|
|
|
|
|
#define D5 PAL_LINE(GPIOC, 13)
|
|
|
|
|
|
|
|
#define B0 PAL_LINE(GPIOC, 14)
|
|
|
|
|
|
|
|
#else
|
|
|
|
#define A0 PAL_LINE(GPIOA, 0)
|
|
|
|
#define A0 PAL_LINE(GPIOA, 0)
|
|
|
|
#define A1 PAL_LINE(GPIOA, 1)
|
|
|
|
#define A1 PAL_LINE(GPIOA, 1)
|
|
|
|
#define A2 PAL_LINE(GPIOA, 2)
|
|
|
|
#define A2 PAL_LINE(GPIOA, 2)
|
|
|
@ -222,6 +255,7 @@
|
|
|
|
#define F14 PAL_LINE(GPIOF, 14)
|
|
|
|
#define F14 PAL_LINE(GPIOF, 14)
|
|
|
|
#define F15 PAL_LINE(GPIOF, 15)
|
|
|
|
#define F15 PAL_LINE(GPIOF, 15)
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* USART configuration */
|
|
|
|
/* USART configuration */
|
|
|
|
#ifdef BLUETOOTH_ENABLE
|
|
|
|
#ifdef BLUETOOTH_ENABLE
|
|
|
|