Skip to content

Commit

Permalink
amc-bldc - add tests using temporary test jig (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidetome authored Jan 23, 2024
1 parent a4d1b6d commit e434c20
Show file tree
Hide file tree
Showing 15 changed files with 1,348 additions and 165 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,12 +587,12 @@ void I2C4_ER_IRQHandler(void)
#error TODO: add DMA for I2C in cubemx
void DMA2_Channel2_IRQHandler(void)
{
HAL_DMA_IRQHandler(&hdma_i2c4_rx);
HAL_DMA_IRQHandler(&hdma_i2c4_rx);
}

void DMA2_Channel3_IRQHandler(void)
{
HAL_DMA_IRQHandler(&hdma_i2c4_tx);
HAL_DMA_IRQHandler(&hdma_i2c4_tx);
}

}
Expand Down Expand Up @@ -851,13 +851,6 @@ std::make_tuple(0x00470027, 0x484E500E, 0x20343356 ) // scheda jointlab camozzi

}

float getTEMP()
{
float t {0.0};
//t = temperature();
return t;

}
}}}}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ namespace embot { namespace hw { namespace bsp { namespace amcbldc {

float getVIN();
float getCIN();
float getTEMP();

}}}}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
#define EMBOT_ENABLE_hw_motor
#define EMBOT_ENABLE_hw_button

//#define EMBOT_ENABLE_hw_i2c
//#define EMBOT_ENABLE_hw_pwm ?
//#define EMBOT_ENABLE_hw_hall ?
// #define EMBOT_ENABLE_hw_i2c
// #define EMBOT_ENABLE_hw_pwm
// #define EMBOT_ENABLE_hw_hall

#else
#error this is the bsp config of STM32HAL_BOARD_AMCBLDC ...
Expand Down
Loading

0 comments on commit e434c20

Please sign in to comment.