From 4b76630c03f5aefd185d50d13fe86bd7b53077a8 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Wed, 16 Dec 2020 14:01:02 +0100 Subject: [PATCH] Remove outdated configs --- targets/button-v0/board.h | 35 -------------------------- targets/button-v0/config.mk | 4 --- targets/g031/config.mk | 3 --- targets/jd-v0-i2c/board.h | 26 ------------------- targets/jd-v0-i2c/config.mk | 3 --- targets/jd-v0-i2c/profile/oled.c | 7 ------ targets/jd-v0-i2c/profile/weather.c | 8 ------ targets/jd-v0/board.h | 21 ---------------- targets/jd-v0/config.mk | 3 --- targets/jd-v0/profile/btn.c | 8 ------ targets/jd-v0/profile/crank.c | 7 ------ targets/jd-v0/profile/servo.c | 9 ------- targets/jd-v0/profile/touch.c | 7 ------ targets/jdm-v2/board.h | 30 ---------------------- targets/jdm-v2/config.mk | 3 --- targets/jdm-v3/board.h | 39 ----------------------------- targets/jdm-v3/config.mk | 4 --- targets/jdm-v3/profile/acc.c | 7 ------ targets/jdm-v3/profile/crank.c | 7 ------ targets/jdm-v3/profile/glo.c | 7 ------ targets/jdm-v3/profile/light.c | 7 ------ targets/jdm-v3/profile/servo.c | 9 ------- targets/jm-v1.0/board.h | 28 --------------------- targets/jm-v1.0/config.mk | 3 --- targets/jm-v1.0/profile/btn.c | 7 ------ targets/jm-v1.0/profile/dpad.c | 7 ------ targets/jm-v1.0/profile/npx.c | 7 ------ targets/jm-v1.0/profile/power.c | 7 ------ targets/jm-v1.0/profile/servo.c | 7 ------ targets/jm-v1.0/profile/snd.c | 7 ------ targets/jm-v1.0/profile/touch.c | 7 ------ 31 files changed, 334 deletions(-) delete mode 100644 targets/button-v0/board.h delete mode 100644 targets/button-v0/config.mk delete mode 100644 targets/g031/config.mk delete mode 100644 targets/jd-v0-i2c/board.h delete mode 100644 targets/jd-v0-i2c/config.mk delete mode 100644 targets/jd-v0-i2c/profile/oled.c delete mode 100644 targets/jd-v0-i2c/profile/weather.c delete mode 100644 targets/jd-v0/board.h delete mode 100644 targets/jd-v0/config.mk delete mode 100644 targets/jd-v0/profile/btn.c delete mode 100644 targets/jd-v0/profile/crank.c delete mode 100644 targets/jd-v0/profile/servo.c delete mode 100644 targets/jd-v0/profile/touch.c delete mode 100644 targets/jdm-v2/board.h delete mode 100644 targets/jdm-v2/config.mk delete mode 100644 targets/jdm-v3/board.h delete mode 100644 targets/jdm-v3/config.mk delete mode 100644 targets/jdm-v3/profile/acc.c delete mode 100644 targets/jdm-v3/profile/crank.c delete mode 100644 targets/jdm-v3/profile/glo.c delete mode 100644 targets/jdm-v3/profile/light.c delete mode 100644 targets/jdm-v3/profile/servo.c delete mode 100644 targets/jm-v1.0/board.h delete mode 100644 targets/jm-v1.0/config.mk delete mode 100644 targets/jm-v1.0/profile/btn.c delete mode 100644 targets/jm-v1.0/profile/dpad.c delete mode 100644 targets/jm-v1.0/profile/npx.c delete mode 100644 targets/jm-v1.0/profile/power.c delete mode 100644 targets/jm-v1.0/profile/servo.c delete mode 100644 targets/jm-v1.0/profile/snd.c delete mode 100644 targets/jm-v1.0/profile/touch.c diff --git a/targets/button-v0/board.h b/targets/button-v0/board.h deleted file mode 100644 index c8209dc..0000000 --- a/targets/button-v0/board.h +++ /dev/null @@ -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 - diff --git a/targets/button-v0/config.mk b/targets/button-v0/config.mk deleted file mode 100644 index 40c67f3..0000000 --- a/targets/button-v0/config.mk +++ /dev/null @@ -1,4 +0,0 @@ -DEFINES += -DBUTTON_V0 -#BMP ?= 1 -MCU = STM32F031x6 -include stm32/mk/stm32f0.mk diff --git a/targets/g031/config.mk b/targets/g031/config.mk deleted file mode 100644 index fac1de9..0000000 --- a/targets/g031/config.mk +++ /dev/null @@ -1,3 +0,0 @@ -DEFINES += -DSTM32G031xx -OPENOCD ?= ./scripts/openocd -s ./scripts -f stlink-v2-1.cfg -f stm32g0x.cfg -include stm32g0.mk diff --git a/targets/jd-v0-i2c/board.h b/targets/jd-v0-i2c/board.h deleted file mode 100644 index 9218792..0000000 --- a/targets/jd-v0-i2c/board.h +++ /dev/null @@ -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, diff --git a/targets/jd-v0-i2c/config.mk b/targets/jd-v0-i2c/config.mk deleted file mode 100644 index 7270a2a..0000000 --- a/targets/jd-v0-i2c/config.mk +++ /dev/null @@ -1,3 +0,0 @@ -DEFINES += -DJD_V0 -MCU = STM32F030x4 -include stm32/mk/stm32f0.mk diff --git a/targets/jd-v0-i2c/profile/oled.c b/targets/jd-v0-i2c/profile/oled.c deleted file mode 100644 index d0f610a..0000000 --- a/targets/jd-v0-i2c/profile/oled.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x3a3314ae, "JDF030 OLED v0"); - -void app_init_services() { - oled_init(); -} diff --git a/targets/jd-v0-i2c/profile/weather.c b/targets/jd-v0-i2c/profile/weather.c deleted file mode 100644 index f35417d..0000000 --- a/targets/jd-v0-i2c/profile/weather.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x379c2450, "JDF030 weather v0"); - -void app_init_services() { - temp_init(); - humidity_init(); -} diff --git a/targets/jd-v0/board.h b/targets/jd-v0/board.h deleted file mode 100644 index 407be17..0000000 --- a/targets/jd-v0/board.h +++ /dev/null @@ -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, diff --git a/targets/jd-v0/config.mk b/targets/jd-v0/config.mk deleted file mode 100644 index 7270a2a..0000000 --- a/targets/jd-v0/config.mk +++ /dev/null @@ -1,3 +0,0 @@ -DEFINES += -DJD_V0 -MCU = STM32F030x4 -include stm32/mk/stm32f0.mk diff --git a/targets/jd-v0/profile/btn.c b/targets/jd-v0/profile/btn.c deleted file mode 100644 index d1159eb..0000000 --- a/targets/jd-v0/profile/btn.c +++ /dev/null @@ -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); -} diff --git a/targets/jd-v0/profile/crank.c b/targets/jd-v0/profile/crank.c deleted file mode 100644 index 9f50e82..0000000 --- a/targets/jd-v0/profile/crank.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x3f7c8355, "JDF030 crank v0"); - -void app_init_services() { - crank_init(PIN_P0, PIN_P1); -} diff --git a/targets/jd-v0/profile/servo.c b/targets/jd-v0/profile/servo.c deleted file mode 100644 index da96fd1..0000000 --- a/targets/jd-v0/profile/servo.c +++ /dev/null @@ -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); -} diff --git a/targets/jd-v0/profile/touch.c b/targets/jd-v0/profile/touch.c deleted file mode 100644 index f9fe3c1..0000000 --- a/targets/jd-v0/profile/touch.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x39a9dc81, "JDF030 touch v0"); - -void app_init_services() { - touch_init(PA_4); -} diff --git a/targets/jdm-v2/board.h b/targets/jdm-v2/board.h deleted file mode 100644 index 23fc6ea..0000000 --- a/targets/jdm-v2/board.h +++ /dev/null @@ -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 - diff --git a/targets/jdm-v2/config.mk b/targets/jdm-v2/config.mk deleted file mode 100644 index 489ba8e..0000000 --- a/targets/jdm-v2/config.mk +++ /dev/null @@ -1,3 +0,0 @@ -DEFINES += -DJDM_V2 -MCU = STM32F031x6 -include stm32/mk/stm32f0.mk diff --git a/targets/jdm-v3/board.h b/targets/jdm-v3/board.h deleted file mode 100644 index c9a8f2a..0000000 --- a/targets/jdm-v3/board.h +++ /dev/null @@ -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, \ No newline at end of file diff --git a/targets/jdm-v3/config.mk b/targets/jdm-v3/config.mk deleted file mode 100644 index 13092cc..0000000 --- a/targets/jdm-v3/config.mk +++ /dev/null @@ -1,4 +0,0 @@ -DEFINES += -DJDM_V3 -#-DLOW_POWER -MCU = STM32F031x6 -include stm32/mk/stm32f0.mk diff --git a/targets/jdm-v3/profile/acc.c b/targets/jdm-v3/profile/acc.c deleted file mode 100644 index bf64c39..0000000 --- a/targets/jdm-v3/profile/acc.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x334b4fb6, "JDM3 acc"); - -void app_init_services() { - acc_init(); -} diff --git a/targets/jdm-v3/profile/crank.c b/targets/jdm-v3/profile/crank.c deleted file mode 100644 index c273e8d..0000000 --- a/targets/jdm-v3/profile/crank.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x3beb4448, "JDM3 crank"); - -void app_init_services() { - crank_init(PIN_P0, PIN_P1); -} diff --git a/targets/jdm-v3/profile/glo.c b/targets/jdm-v3/profile/glo.c deleted file mode 100644 index 66c995d..0000000 --- a/targets/jdm-v3/profile/glo.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x33498f7e, "JDM3 mono"); - -void app_init_services() { - pwm_light_init(PIN_GLO1); -} diff --git a/targets/jdm-v3/profile/light.c b/targets/jdm-v3/profile/light.c deleted file mode 100644 index d261b43..0000000 --- a/targets/jdm-v3/profile/light.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x3479bec3, "JDM3 light"); - -void app_init_services() { - light_init(); -} diff --git a/targets/jdm-v3/profile/servo.c b/targets/jdm-v3/profile/servo.c deleted file mode 100644 index 3a62b6c..0000000 --- a/targets/jdm-v3/profile/servo.c +++ /dev/null @@ -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); -} diff --git a/targets/jm-v1.0/board.h b/targets/jm-v1.0/board.h deleted file mode 100644 index 2b366c2..0000000 --- a/targets/jm-v1.0/board.h +++ /dev/null @@ -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, diff --git a/targets/jm-v1.0/config.mk b/targets/jm-v1.0/config.mk deleted file mode 100644 index 7270a2a..0000000 --- a/targets/jm-v1.0/config.mk +++ /dev/null @@ -1,3 +0,0 @@ -DEFINES += -DJD_V0 -MCU = STM32F030x4 -include stm32/mk/stm32f0.mk diff --git a/targets/jm-v1.0/profile/btn.c b/targets/jm-v1.0/profile/btn.c deleted file mode 100644 index b3ee0dd..0000000 --- a/targets/jm-v1.0/profile/btn.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x325325f2, "JM BTN1 v1.0"); - -void app_init_services() { - btn_init(PA_2); -} diff --git a/targets/jm-v1.0/profile/dpad.c b/targets/jm-v1.0/profile/dpad.c deleted file mode 100644 index 5b1e4cd..0000000 --- a/targets/jm-v1.0/profile/dpad.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x32bffe5b, "JM D-Pad v1.0"); - -void app_init_services() { - gamepad_init(); -} diff --git a/targets/jm-v1.0/profile/npx.c b/targets/jm-v1.0/profile/npx.c deleted file mode 100644 index c245dc0..0000000 --- a/targets/jm-v1.0/profile/npx.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x33991b74, "JM PWM (npx) v1.0"); - -void app_init_services() { - light_init(); -} diff --git a/targets/jm-v1.0/profile/power.c b/targets/jm-v1.0/profile/power.c deleted file mode 100644 index 53d4555..0000000 --- a/targets/jm-v1.0/profile/power.c +++ /dev/null @@ -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); -} diff --git a/targets/jm-v1.0/profile/servo.c b/targets/jm-v1.0/profile/servo.c deleted file mode 100644 index 6655be9..0000000 --- a/targets/jm-v1.0/profile/servo.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x3142fd1f, "JM PWM (servo) v1.0"); - -void app_init_services() { - servo_init(PIN_SERVO); -} diff --git a/targets/jm-v1.0/profile/snd.c b/targets/jm-v1.0/profile/snd.c deleted file mode 100644 index fd7253c..0000000 --- a/targets/jm-v1.0/profile/snd.c +++ /dev/null @@ -1,7 +0,0 @@ -#include "jdprofile.h" - -DEVICE_CLASS(0x3707f76a, "JM SND v1.0"); - -void app_init_services() { - snd_init(PIN_PWR); -} diff --git a/targets/jm-v1.0/profile/touch.c b/targets/jm-v1.0/profile/touch.c deleted file mode 100644 index ea3cb2a..0000000 --- a/targets/jm-v1.0/profile/touch.c +++ /dev/null @@ -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 -}