Skip to content

Commit

Permalink
LM3370 initialization fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jankae committed Feb 10, 2023
1 parent 7f6b789 commit 3428f60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Software/VNA_embedded/Src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,14 @@ int main(void)
SystemClock_Config();

/* USER CODE BEGIN SysInit */

MX_I2C2_Init();
uint8_t ctrl = 0x0A;
HAL_I2C_Mem_Write(&hi2c2, 0x42, 0x01, I2C_MEMADD_SIZE_8BIT, &ctrl, 1, 100);
/* USER CODE END SysInit */

/* Initialize all configured peripherals */
MX_GPIO_Init();
MX_DMA_Init();
MX_I2C2_Init();
MX_SPI1_Init();
MX_SPI2_Init();
MX_UCPD1_Init();
Expand Down

0 comments on commit 3428f60

Please sign in to comment.