Remove outdated configs
This commit is contained in:
Родитель
1e174ba49f
Коммит
4b76630c03
|
@ -1,35 +0,0 @@
|
|||
#define PIN_LED PB_4 // shared with ACC_VCC
|
||||
#define PIN_LED2 PB_3
|
||||
#define PIN_LED_GND PA_0 // not really
|
||||
|
||||
#define PIN_LOG0 -1 // sig_write
|
||||
#define PIN_LOG1 -1
|
||||
#define PIN_LOG2 -1 // sig error
|
||||
#define PIN_LOG3 -1
|
||||
|
||||
#define PIN_PWR PA_11
|
||||
#define PIN_P0 PA_2
|
||||
#define PIN_P1 PA_3
|
||||
#define PIN_ASCK PA_5
|
||||
#define PIN_AMOSI PA_7
|
||||
#define PIN_SERVO PA_6
|
||||
|
||||
#define PIN_GLO_SENSE0 PA_1
|
||||
#define PIN_GLO_SENSE1 PA_4
|
||||
#define PIN_GLO0 PB_0
|
||||
#define PIN_GLO1 PB_1
|
||||
|
||||
#define PIN_ACC_VCC PB_4
|
||||
#define PIN_ACC_MISO PB_6
|
||||
#define PIN_ACC_MOSI PB_5
|
||||
#define PIN_ACC_SCK PB_7
|
||||
#define PIN_ACC_CS PB_8
|
||||
#define ACC_PORT GPIOB
|
||||
|
||||
// JD = SCL
|
||||
#define UART_PIN PA_9
|
||||
#define UART_PIN_AF LL_GPIO_AF_1
|
||||
#define USART_IDX 1
|
||||
|
||||
#define NO_ACC 1
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
DEFINES += -DBUTTON_V0
|
||||
#BMP ?= 1
|
||||
MCU = STM32F031x6
|
||||
include stm32/mk/stm32f0.mk
|
|
@ -1,3 +0,0 @@
|
|||
DEFINES += -DSTM32G031xx
|
||||
OPENOCD ?= ./scripts/openocd -s ./scripts -f stlink-v2-1.cfg -f stm32g0x.cfg
|
||||
include stm32g0.mk
|
|
@ -1,26 +0,0 @@
|
|||
#define PIN_LED PA_1
|
||||
#define PIN_LED_GND PA_0
|
||||
#define PIN_LED2 -1
|
||||
#define PIN_LOG0 -1 // sig_write
|
||||
#define PIN_LOG1 -1
|
||||
#define PIN_LOG2 -1 // sig error
|
||||
#define PIN_LOG3 -1
|
||||
|
||||
#define PIN_PWR PA_5
|
||||
#define PIN_P0 -1
|
||||
#define PIN_P1 -1
|
||||
|
||||
#define PIN_SERVO -1
|
||||
|
||||
#define UART_PIN PA_2
|
||||
#define UART_PIN_AF LL_GPIO_AF_1
|
||||
#define USART_IDX 1
|
||||
|
||||
#define PIN_SDA PA_10
|
||||
#define PIN_SCL PA_9
|
||||
#define I2C_FAST_MODE 0
|
||||
#define I2C_AF 4
|
||||
|
||||
#define OUTPUT_PINS \
|
||||
PIN_LOG0, PIN_LOG1, PIN_LOG2, PIN_LOG3, PIN_LED, PIN_LED2, PIN_PWR, PIN_P0, PIN_P1, \
|
||||
PIN_LED_GND, PIN_SERVO,
|
|
@ -1,3 +0,0 @@
|
|||
DEFINES += -DJD_V0
|
||||
MCU = STM32F030x4
|
||||
include stm32/mk/stm32f0.mk
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3a3314ae, "JDF030 OLED v0");
|
||||
|
||||
void app_init_services() {
|
||||
oled_init();
|
||||
}
|
|
@ -1,8 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x379c2450, "JDF030 weather v0");
|
||||
|
||||
void app_init_services() {
|
||||
temp_init();
|
||||
humidity_init();
|
||||
}
|
|
@ -1,21 +0,0 @@
|
|||
#define PIN_LED PA_1
|
||||
#define PIN_LED_GND PA_0
|
||||
#define PIN_LED2 -1
|
||||
#define PIN_LOG0 -1 // sig_write
|
||||
#define PIN_LOG1 -1
|
||||
#define PIN_LOG2 -1 // sig error
|
||||
#define PIN_LOG3 -1
|
||||
|
||||
#define PIN_PWR PA_5
|
||||
#define PIN_P0 -1
|
||||
#define PIN_P1 -1
|
||||
|
||||
#define PIN_SERVO PA_6
|
||||
|
||||
#define UART_PIN PA_9
|
||||
#define UART_PIN_AF LL_GPIO_AF_1
|
||||
#define USART_IDX 1
|
||||
|
||||
#define OUTPUT_PINS \
|
||||
PIN_LOG0, PIN_LOG1, PIN_LOG2, PIN_LOG3, PIN_LED, PIN_LED2, PIN_PWR, PIN_P0, PIN_P1, \
|
||||
PIN_LED_GND, PIN_SERVO,
|
|
@ -1,3 +0,0 @@
|
|||
DEFINES += -DJD_V0
|
||||
MCU = STM32F030x4
|
||||
include stm32/mk/stm32f0.mk
|
|
@ -1,8 +0,0 @@
|
|||
#include "jd_services.h"
|
||||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3d216fd4, "JDF030 btn v0");
|
||||
|
||||
void app_init_services(void) {
|
||||
btn_init(PA_4, -1);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3f7c8355, "JDF030 crank v0");
|
||||
|
||||
void app_init_services() {
|
||||
crank_init(PIN_P0, PIN_P1);
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
#define PIN_SERVO PA_6
|
||||
|
||||
DEVICE_CLASS(0x3faf16db, "JDF030 servo v0");
|
||||
|
||||
void app_init_services() {
|
||||
servo_init(PIN_SERVO);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x39a9dc81, "JDF030 touch v0");
|
||||
|
||||
void app_init_services() {
|
||||
touch_init(PA_4);
|
||||
}
|
|
@ -1,30 +0,0 @@
|
|||
#define PIN_LED PA_1
|
||||
#define PIN_LED_GND PA_0
|
||||
#define PIN_LED2 -1
|
||||
#define PIN_LOG0 -1 // sig_write
|
||||
#define PIN_LOG1 -1
|
||||
#define PIN_LOG2 -1 // sig error
|
||||
#define PIN_LOG3 -1
|
||||
|
||||
#define PIN_PWR PA_3
|
||||
#define PIN_P0 PA_2
|
||||
#define PIN_P1 -1
|
||||
#define PIN_ASCK PA_5
|
||||
#define PIN_AMOSI PA_7
|
||||
#define PIN_SERVO PA_6
|
||||
|
||||
#define PIN_ACC_VCC PB_4
|
||||
#define PIN_ACC_MISO PB_6
|
||||
#define PIN_ACC_MOSI PB_5
|
||||
#define PIN_ACC_SCK PB_7
|
||||
#define PIN_ACC_CS PB_8
|
||||
//#define PIN_ACC_CS -1
|
||||
#define ACC_PORT GPIOB
|
||||
|
||||
#define PIN_GLO0 -1
|
||||
#define PIN_GLO1 -1
|
||||
|
||||
#define UART_PIN PA_9
|
||||
#define UART_PIN_AF LL_GPIO_AF_1
|
||||
#define USART_IDX 1
|
||||
|
|
@ -1,3 +0,0 @@
|
|||
DEFINES += -DJDM_V2
|
||||
MCU = STM32F031x6
|
||||
include stm32/mk/stm32f0.mk
|
|
@ -1,39 +0,0 @@
|
|||
#define PIN_LED PA_15
|
||||
#define PIN_LED_GND PA_0
|
||||
#define PIN_LED2 -1
|
||||
#define PIN_LOG0 -1 // sig_write
|
||||
#define PIN_LOG1 -1
|
||||
#define PIN_LOG2 -1 // sig error
|
||||
#define PIN_LOG3 -1
|
||||
|
||||
#define PIN_PWR PA_11
|
||||
#define PIN_P0 PA_2
|
||||
#define PIN_P1 PA_3
|
||||
#define PIN_ASCK PA_5
|
||||
#define PIN_AMOSI PA_7
|
||||
|
||||
#define PIN_SERVO PA_6
|
||||
/*
|
||||
#define PIN_GLO_SENSE0 PA_1
|
||||
#define PIN_GLO_SENSE1 PA_4
|
||||
*/
|
||||
|
||||
#define PIN_GLO0 PB_0
|
||||
#define PIN_GLO1 PB_1
|
||||
|
||||
#define PIN_ACC_VCC PB_4
|
||||
#define PIN_ACC_MISO PB_6
|
||||
#define PIN_ACC_MOSI PB_5
|
||||
#define PIN_ACC_SCK PB_7
|
||||
#define PIN_ACC_CS PB_8
|
||||
//#define PIN_ACC_CS -1
|
||||
#define ACC_PORT GPIOB
|
||||
|
||||
#define UART_PIN PA_9
|
||||
#define UART_PIN_AF LL_GPIO_AF_1
|
||||
#define USART_IDX 1
|
||||
|
||||
#define OUTPUT_PINS \
|
||||
PIN_LOG0, PIN_LOG1, PIN_LOG2, PIN_LOG3, PIN_LED, PIN_LED2, PIN_PWR, PIN_P0, PIN_P1, \
|
||||
PIN_LED_GND, PIN_GLO0, PIN_GLO1, PIN_ACC_MOSI, PIN_ACC_SCK, PIN_ACC_VCC, PIN_ACC_CS, \
|
||||
PIN_ASCK, PIN_AMOSI, PIN_SERVO,
|
|
@ -1,4 +0,0 @@
|
|||
DEFINES += -DJDM_V3
|
||||
#-DLOW_POWER
|
||||
MCU = STM32F031x6
|
||||
include stm32/mk/stm32f0.mk
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x334b4fb6, "JDM3 acc");
|
||||
|
||||
void app_init_services() {
|
||||
acc_init();
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3beb4448, "JDM3 crank");
|
||||
|
||||
void app_init_services() {
|
||||
crank_init(PIN_P0, PIN_P1);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x33498f7e, "JDM3 mono");
|
||||
|
||||
void app_init_services() {
|
||||
pwm_light_init(PIN_GLO1);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3479bec3, "JDM3 light");
|
||||
|
||||
void app_init_services() {
|
||||
light_init();
|
||||
}
|
|
@ -1,9 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
#define PIN_SERVO PA_6
|
||||
|
||||
DEVICE_CLASS(0x3a1a3a06, "JDM3 servo");
|
||||
|
||||
void app_init_services() {
|
||||
servo_init(PIN_SERVO);
|
||||
}
|
|
@ -1,28 +0,0 @@
|
|||
#define PIN_LED PA_1
|
||||
#define PIN_LED_GND PA_0
|
||||
#define PIN_LED2 -1
|
||||
#define PIN_LOG0 -1 // sig_write
|
||||
#define PIN_LOG1 -1
|
||||
#define PIN_LOG2 -1 // sig error
|
||||
#define PIN_LOG3 -1
|
||||
|
||||
#define PIN_PWR PA_10
|
||||
#define PIN_P0 PF_0
|
||||
#define PIN_P1 PF_1
|
||||
|
||||
#define PIN_SERVO PA_7
|
||||
#define PIN_AMOSI PA_7
|
||||
#define PIN_ASCK PA_5
|
||||
|
||||
#define UART_PIN PA_9
|
||||
#define UART_PIN_AF LL_GPIO_AF_1
|
||||
#define USART_IDX 1
|
||||
|
||||
#define PWR_PIN_PULLUP 1
|
||||
|
||||
// left, up, right, down, a, b, menu, menu2, reset, exit
|
||||
#define GAMEPAD_BUTTONS PA_2, PA_5, PA_4, PA_3
|
||||
|
||||
#define OUTPUT_PINS \
|
||||
PIN_LOG0, PIN_LOG1, PIN_LOG2, PIN_LOG3, PIN_LED, PIN_LED2, PIN_P0, PIN_P1, PIN_LED_GND, \
|
||||
PIN_AMOSI, PIN_ASCK,
|
|
@ -1,3 +0,0 @@
|
|||
DEFINES += -DJD_V0
|
||||
MCU = STM32F030x4
|
||||
include stm32/mk/stm32f0.mk
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x325325f2, "JM BTN1 v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
btn_init(PA_2);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x32bffe5b, "JM D-Pad v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
gamepad_init();
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x33991b74, "JM PWM (npx) v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
light_init();
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x30a16d3c, "JM Power v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
power_init(PA_4, PA_5, PA_6, PA_3);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3142fd1f, "JM PWM (servo) v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
servo_init(PIN_SERVO);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x3707f76a, "JM SND v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
snd_init(PIN_PWR);
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include "jdprofile.h"
|
||||
|
||||
DEVICE_CLASS(0x36ed0f96, "JM TOUCH v1.0");
|
||||
|
||||
void app_init_services() {
|
||||
touch_init(PA_4); // TODO - we have 8 channel touch there
|
||||
}
|
Загрузка…
Ссылка в новой задаче