Skip to content

Commit

Permalink
Remove current filter from lfoc v4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchlol committed Jul 2, 2024
1 parent 2f1178a commit 37fa0a6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
7 changes: 0 additions & 7 deletions hwconf/shaman/Little_FOCer_4/hw_Little_FOCer_V4.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,6 @@ void hw_init_gpio(void) {
palSetPadMode(HW_HALL_ENC_GPIO1, HW_HALL_ENC_PIN1, PAL_MODE_INPUT_PULLUP);
palSetPadMode(HW_HALL_ENC_GPIO2, HW_HALL_ENC_PIN2, PAL_MODE_INPUT_PULLUP);
palSetPadMode(HW_HALL_ENC_GPIO3, HW_HALL_ENC_PIN3, PAL_MODE_INPUT_PULLUP);

// Current filter
palSetPadMode(GPIOD, 2,
PAL_MODE_OUTPUT_PUSHPULL |
PAL_STM32_OSPEED_HIGHEST);

CURRENT_FILTER_OFF();

#ifdef HW_HAS_PHASE_FILTERS
// Phase filters
Expand Down
2 changes: 0 additions & 2 deletions hwconf/shaman/Little_FOCer_4/hw_Little_FOCer_V4.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@


// HW properties
//#define CURRENT_FILTER_ON() palSetPad(GPIOD, 2)
#define CURRENT_FILTER_OFF() palClearPad(GPIOD, 2)

#define HW_HAS_PHASE_FILTERS
#define PHASE_FILTER_GPIO GPIOC
Expand Down

0 comments on commit 37fa0a6

Please sign in to comment.