Skip to content

Commit 7843af5

Browse files
committed
Enabled simplemotion for F407_DISCO
1 parent 890bc61 commit 7843af5

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
### Changes this version:
22
- Added part of unique serial number to usb interface names for easier identification of multiple devices
3+
- Enabled Simplemotion for F407_DISCO build
34

45
### Changes in 1.12.x:
56
- Added support for Simplemotion V2 (Ioni/Argon motor drivers)

Firmware/Targets/F407VG_DISCO/Core/Inc/target_constants.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
#define CANBUTTONS // Requires CAN
5252
#define CANANALOG // Requires CAN
5353
#define ADS111XANALOG // Requires I2C
54+
#define SIMPLEMOTION
5455

5556
//#define UARTCOMMANDS
5657

Firmware/Targets/F407VG_DISCO/Core/Src/cpp_target_config.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ extern I2C_HandleTypeDef I2C_PORT;
3131
I2CPort i2cport{I2C_PORT};
3232
#endif
3333

34+
#ifdef GPIO_MOTOR
35+
const OutputPin gpMotor{*DRV_GP1_GPIO_Port,DRV_GP1_Pin};
36+
#endif
37+
38+
3439
#ifdef CANBUS
3540
/*
3641
* Can BTR register for different speed configs

0 commit comments

Comments
 (0)