Skip to content

Commit

Permalink
refactor(pipettes): correct a few more bugs in the 96 channel firmware (
Browse files Browse the repository at this point in the history
  • Loading branch information
Laura-Danielle authored Nov 10, 2022
1 parent d208778 commit c0ee395
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
4 changes: 4 additions & 0 deletions pipettes/firmware/stm32g4xx_it.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,10 @@ void EXTI3_IRQHandler(void) {
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_3);
}

void EXTI15_10_IRQHandler(void) {
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_11);
}

// TODO refer to schematic to check and see that the data ready
// pin is the same across values.

Expand Down
5 changes: 2 additions & 3 deletions pipettes/firmware/stm32g4xx_it.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,8 @@ void DMA1_Channel3_IRQHandler(void);
void FDCAN1_IT0_IRQHandler(void);
void TIM7_IRQHandler(void);
void TIM6_DAC_IRQHandler(void);
void EXTI8_IRQHandler(void);
void EXTI9_IRQHandler(void);
void EXTI15_IRQHandler(void);
void EXTI3_IRQHandler(void);
void EXTI15_10_IRQHandler(void);

#ifdef __cplusplus
}
Expand Down
4 changes: 2 additions & 2 deletions pipettes/firmware/utility_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ void limit_switch_gpio_init() {
if (pipette_type == NINETY_SIX_CHANNEL) {
/*
* Right gear -> PC10
* Left gear -> PB11
* Left gear -> PB12
* Plunger -> PA4
*/
enable_gpio_port(GPIOC);
GPIO_InitStruct.Pin = GPIO_PIN_10;
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);

enable_gpio_port(GPIOB);
GPIO_InitStruct.Pin = GPIO_PIN_11;
GPIO_InitStruct.Pin = GPIO_PIN_12;
HAL_GPIO_Init(GPIOB, &GPIO_InitStruct);

enable_gpio_port(GPIOA);
Expand Down

0 comments on commit c0ee395

Please sign in to comment.