Skip to content

Commit c49ca22

Browse files
authored
Merge pull request #39 from harp-tech/fw-remove_enable_pull_up
Remove enable's pull-up.
2 parents 8fdcc66 + 6784a02 commit c49ca22

5 files changed

Lines changed: 22 additions & 22 deletions

File tree

Firmware/StepperDriver/app.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ void hwbp_app_initialize(void)
3232
{
3333
/* Define versions */
3434
uint8_t hwH = 1;
35-
uint8_t hwL = 0;
35+
uint8_t hwL = 1;
3636
uint8_t fwH = 0;
37-
uint8_t fwL = 8;
37+
uint8_t fwL = 9;
3838
uint8_t ass = 0;
3939

4040
/* Start core */

Firmware/StepperDriver/app_ios_and_regs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ void init_ios(void)
2121
io_pin2in(&PORTD, 2, PULL_IO_UP, SENSE_IO_EDGE_FALLING); // ERROR_M1
2222
io_pin2in(&PORTE, 2, PULL_IO_UP, SENSE_IO_EDGE_FALLING); // ERROR_M2
2323
io_pin2in(&PORTJ, 5, PULL_IO_UP, SENSE_IO_EDGE_FALLING); // ERROR_M3
24-
io_pin2in(&PORTQ, 0, PULL_IO_UP, SENSE_IO_EDGES_BOTH); // EMERGENCY
24+
io_pin2in(&PORTQ, 0, PULL_IO_TRISTATE, SENSE_IO_EDGES_BOTH); // EMERGENCY
2525

2626
/* Configure input interrupts */
2727
io_set_int(&PORTK, INT_LEVEL_LOW, 0, (1<<5), false); // INPUT0

Firmware/StepperDriver/app_ios_and_regs.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -566,23 +566,23 @@ typedef struct
566566
#define ADD_REG_STOP_MOTORS_SUDENTLY 110 // U8 Stops the motors immediately.
567567
#define ADD_REG_RESET_MOTORS_ERROR_DETECTION 111 // U8 Disables the current error and enables the driver.
568568
#define ADD_REG_RESET_ENCODERS 112 // U8 Resets the encoder.
569-
#define ADD_REG_RESERVED0 113 // U8 Contains the CFG configuration pins of the TMC2210 driver that controls motor 0.
570-
#define ADD_REG_RESERVED1 114 // U8 Contains the CFG configuration pins of the TMC2210 driver that controls motor 1.
571-
#define ADD_REG_RESERVED2 115 // U8 Contains the CFG configuration pins of the TMC2210 driver that controls motor 2.
572-
#define ADD_REG_RESERVED3 116 // U8 Contains the CFG configuration pins of the TMC2210 driver that controls motor 3.
573-
#define ADD_REG_RESERVED4 117 // U8 Contains the raw data of the digital potentiometer that controls current limit of motor 0.
574-
#define ADD_REG_RESERVED5 118 // U8 Contains the raw data of the digital potentiometer that controls current limit of motor 1.
575-
#define ADD_REG_RESERVED6 119 // U8 Contains the raw data of the digital potentiometer that controls current limit of motor 2.
576-
#define ADD_REG_RESERVED7 120 // U8 Contains the raw data of the digital potentiometer that controls current limit of motor 3.
577-
#define ADD_REG_RESERVED8 121 // U16 Configures the motor's step interval when running at nominal speed for motor 1 for the quick mode.
578-
#define ADD_REG_RESERVED9 122 // U16 Configures the motor's step interval when running at nominal speed for motor 2 for the quick mode.
579-
#define ADD_REG_RESERVED10 123 // U16 Configures the motor's maximum step interval for motor 1, used as the first and last steo interval of a movement for the quick mode.
580-
#define ADD_REG_RESERVED11 124 // U16 Configures the motor's maximum step interval for motor 2, used as the first and last steo interval of a movement for the quick mode.
581-
#define ADD_REG_RESERVED12 125 // U16 Configures the acceleration for motor 1. The step's interval is decreased by this value when accelerating and increased when decelerating for the quick mode.
582-
#define ADD_REG_RESERVED13 126 // U16 Configures the acceleration for motor . The step's interval is decreased by this value when accelerating and increased when decelerating for the quick mode.
583-
#define ADD_REG_RESERVED14 127 // I16 Moves motor 1 by the number of steps written in this register and set the direction according to the value's signal for the quick mode.
584-
#define ADD_REG_RESERVED15 128 // I16 Moves motor 2 by the number of steps written in this register and set the direction according to the value's signal for the quick mode.
585-
#define ADD_REG_RESERVED16 129 // U8 Writing any value to this register will load the motors' current configuration memory for quicker start.
569+
#define ADD_REG_RESERVED0 113 // U8 Reserved.
570+
#define ADD_REG_RESERVED1 114 // U8 Reserved.
571+
#define ADD_REG_RESERVED2 115 // U8 Reserved.
572+
#define ADD_REG_RESERVED3 116 // U8 Reserved.
573+
#define ADD_REG_RESERVED4 117 // U8 Reserved.
574+
#define ADD_REG_RESERVED5 118 // U8 Reserved.
575+
#define ADD_REG_RESERVED6 119 // U8 Reserved.
576+
#define ADD_REG_RESERVED7 120 // U8 Reserved.
577+
#define ADD_REG_RESERVED8 121 // U16 Reserved.
578+
#define ADD_REG_RESERVED9 122 // U16 Reserved.
579+
#define ADD_REG_RESERVED10 123 // U16 Reserved.
580+
#define ADD_REG_RESERVED11 124 // U16 Reserved.
581+
#define ADD_REG_RESERVED12 125 // U16 Reserved.
582+
#define ADD_REG_RESERVED13 126 // U16 Reserved.
583+
#define ADD_REG_RESERVED14 127 // I16 Reserved.
584+
#define ADD_REG_RESERVED15 128 // I16 Reserved.
585+
#define ADD_REG_RESERVED16 129 // U8 Reserved.
586586
#define ADD_REG_START_QUICK_MOVEMENT 130 // U8 Triggers the quick movement in the correspondent motor.
587587
#define ADD_REG_MOTOR1_QUICK_PULSE_DISTANCE 131 // FLOAT Configures the motor's step distance in µm for motor 1.
588588
#define ADD_REG_MOTOR2_QUICK_PULSE_DISTANCE 132 // FLOAT Configures the motor's step distance in µm for motor 2.
0 Bytes
Binary file not shown.

device.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
# yaml-language-server: $schema=https://harp-tech.org/draft-02/schema/device.json
44
device: StepperDriver
55
whoAmI: 1130
6-
firmwareVersion: "0.8"
7-
hardwareTargets: "1.0"
6+
firmwareVersion: "0.9"
7+
hardwareTargets: "1.1" # Also compatible with version 1.0
88
registers:
99
##################################
1010
# Enable and disable

0 commit comments

Comments
 (0)