Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added mamba targets, adjusted gitignore #22

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@ obj/
downloads/
tools/
.vscode
Keil_Projects/*.uvgui.*
Keil_Projects/*.uvguix.*
Keil_Projects/Objects
Keil_Projects/RTE/*
Keil_Projects/Listings
100 changes: 97 additions & 3 deletions Inc/targets.h
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,43 @@
#define FILE_NAME "TEKKO32_F415"
#define DEAD_TIME 100
#define HARDWARE_GROUP_AT_D
#define HARDWARE_GROUP_AT_045
#define USE_SERIAL_TELEMETRY
#endif

#ifdef SPEEDYBEE_F421
#define FIRMWARE_NAME "SpeedyBee F4"
#define FILE_NAME "SpeedyBee_F421"
#define DEAD_TIME 100
#define HARDWARE_GROUP_AT_C
#define HARDWARE_GROUP_AT_540
#define USE_SERIAL_TELEMETRY
#endif

#ifdef MAMBA_F45_F421
#define FIRMWARE_NAME "MAMBA F45 F4"
#define FILE_NAME "MAMBA_F45_F421"
#define DEAD_TIME 100
#define HARDWARE_GROUP_AT_B
#define HARDWARE_GROUP_AT_504
#define USE_SERIAL_TELEMETRY
#endif

#ifdef MAMBA_F55_F421
#define FIRMWARE_NAME "MAMBA F55 F4"
#define FILE_NAME "MAMBA_F55_F421"
#define DEAD_TIME 100
#define HARDWARE_GROUP_AT_B
#define HARDWARE_GROUP_AT_504
#define USE_SERIAL_TELEMETRY
#endif

#ifdef MAMBA_F65_F421
#define FIRMWARE_NAME "MAMBA F65 F4"
#define FILE_NAME "MAMBA_F65_F421"
#define DEAD_TIME 100
#define HARDWARE_GROUP_AT_B
#define HARDWARE_GROUP_AT_504
#define USE_SERIAL_TELEMETRY
#endif

Expand Down Expand Up @@ -796,6 +833,27 @@
#define USE_LED_STRIP
#endif

#ifdef MAMBA_S80_12S_G071
#define FILE_NAME "MAMBA_S80_12S_G071"
#define FIRMWARE_NAME "MAMBA S80 "
#define DEAD_TIME 60
#define MILLIVOLT_PER_AMP 10
#define CURRENT_OFFSET 0
#define TARGET_STALL_PROTECTION_INTERVAL 9000
#define TARGET_VOLTAGE_DIVIDER 110
#define HARDWARE_GROUP_G0_J
#define USE_SERIAL_TELEMETRY
#define SIXTY_FOUR_KB_MEMORY

#define VOLTAGE_ADC_PIN LL_GPIO_PIN_1
#define VOLTAGE_ADC_CHANNEL LL_ADC_CHANNEL_1

#define CURRENT_ADC_PIN LL_GPIO_PIN_5
#define CURRENT_ADC_CHANNEL LL_ADC_CHANNEL_5

#define USE_LED_STRIP
#endif

#ifdef HAKRC_2023_G071
#define FILE_NAME "HAKRC_2023_G071"
#define FIRMWARE_NAME "HAKRC G0_23 "
Expand Down Expand Up @@ -1654,6 +1712,42 @@

#endif


#ifdef HARDWARE_GROUP_G0_J

#define MCU_G071
#define USE_TIMER_3_CHANNEL_1
#define INPUT_PIN LL_GPIO_PIN_4
#define INPUT_PIN_PORT GPIOB
#define IC_TIMER_CHANNEL LL_TIM_CHANNEL_CH1
#define IC_TIMER_REGISTER TIM3
#define IC_TIMER_POINTER htim3

#define INPUT_DMA_CHANNEL LL_DMA_CHANNEL_1
#define DMA_HANDLE_TYPE_DEF hdma_tim3_ch1
#define IC_DMA_IRQ_NAME DMA1_Channel1_IRQn

#define PHASE_A_GPIO_LOW LL_GPIO_PIN_1
#define PHASE_A_GPIO_PORT_LOW GPIOB
#define PHASE_A_GPIO_HIGH LL_GPIO_PIN_12
#define PHASE_A_GPIO_PORT_HIGH GPIOA

#define PHASE_B_GPIO_LOW LL_GPIO_PIN_0
#define PHASE_B_GPIO_PORT_LOW GPIOB
#define PHASE_B_GPIO_HIGH LL_GPIO_PIN_11
#define PHASE_B_GPIO_PORT_HIGH GPIOA

#define PHASE_C_GPIO_LOW LL_GPIO_PIN_7
#define PHASE_C_GPIO_PORT_LOW GPIOA
#define PHASE_C_GPIO_HIGH LL_GPIO_PIN_8
#define PHASE_C_GPIO_PORT_HIGH GPIOA

#define PHASE_A_COMP LL_COMP_INPUT_MINUS_IO1 // pb3
#define PHASE_B_COMP LL_COMP_INPUT_MINUS_IO2 // pb7
#define PHASE_C_COMP LL_COMP_INPUT_MINUS_IO3 // pa2

#endif

#ifdef HARDWARE_GROUP_G4_A

#define MCU_G431
Expand Down Expand Up @@ -2007,9 +2101,9 @@
// #define PHASE_B_COMP COMP_INMInput_IN1 // pa4
// #define PHASE_C_COMP COMP_INMInput_IN2 // pa5

#define PHASE_A_COMP 0x400000E1 // works for polling mode
#define PHASE_B_COMP 0x400000C1
#define PHASE_C_COMP 0x400000D1
//#define PHASE_A_COMP 0x400000E1 // works for polling mode
//#define PHASE_B_COMP 0x400000C1
//#define PHASE_C_COMP 0x400000D1

#endif

Expand Down
6 changes: 3 additions & 3 deletions Keil_Projects/AM32_MultiProject.uvmpw
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<Header>### uVision Project, (C) Keil Software</Header>

<WorkspaceName>WorkSpace</WorkspaceName>
<WorkspaceName>E:\NextCloud\dev\am32\Keil_Projects\AM32_MultiProject.uvmpw</WorkspaceName>

<project>
<PathAndName>.\Am32e230.uvprojx</PathAndName>
Expand All @@ -19,8 +19,6 @@

<project>
<PathAndName>.\Am32F051.uvprojx</PathAndName>
<NodeIsActive>1</NodeIsActive>
<NodeIsExpanded>1</NodeIsExpanded>
<NodeIsCheckedInBatchBuild>1</NodeIsCheckedInBatchBuild>
</project>

Expand All @@ -31,11 +29,13 @@

<project>
<PathAndName>.\Am32F421.uvprojx</PathAndName>
<NodeIsActive>1</NodeIsActive>
<NodeIsCheckedInBatchBuild>1</NodeIsCheckedInBatchBuild>
</project>

<project>
<PathAndName>.\Am32G071.uvprojx</PathAndName>
<NodeIsExpanded>1</NodeIsExpanded>
<NodeIsCheckedInBatchBuild>1</NodeIsCheckedInBatchBuild>
</project>

Expand Down
Loading
Loading