Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
DADDesign-Projects committed Dec 1, 2024
1 parent 026ec61 commit 2da6112
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .project
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SPDIF_MIXER_V2</name>
<name>Asynchronous-SPDIF-Mixer</name>
<comment></comment>
<projects>
</projects>
Expand Down
14 changes: 5 additions & 9 deletions Core/Src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ int main(void)
__SPDIFRX.StartReceive();
__SAI_SPDIF_TX.StartTransmit();

uint8_t ctLed = 0;

/* USER CODE END 2 */
uint8_t ctLed = 0;

/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
Expand Down Expand Up @@ -215,11 +216,6 @@ void SystemClock_Config(void)

/** Configure the main internal regulator output voltage
*/
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);

while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}

__HAL_RCC_SYSCFG_CLK_ENABLE();
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE0);

while(!__HAL_PWR_GET_FLAG(PWR_FLAG_VOSRDY)) {}
Expand Down Expand Up @@ -423,7 +419,7 @@ static void MX_SAI3_Init(void)
hsai_BlockA3.Init.MonoStereoMode = SAI_STEREOMODE;
hsai_BlockA3.Init.CompandingMode = SAI_NOCOMPANDING;
hsai_BlockA3.Init.TriState = SAI_OUTPUT_NOTRELEASED;
if (HAL_SAI_InitProtocol(&hsai_BlockA3, SAI_I2S_STANDARD, SAI_PROTOCOL_DATASIZE_32BIT, 2) != HAL_OK)
if (HAL_SAI_InitProtocol(&hsai_BlockA3, SAI_I2S_MSBJUSTIFIED, SAI_PROTOCOL_DATASIZE_32BIT, 2) != HAL_OK)
{
Error_Handler();
}
Expand Down Expand Up @@ -623,13 +619,13 @@ static void MX_GPIO_Init(void)
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);

/*Configure GPIO pin : NO_AUDIO_D2_Pin */
/*Configure GPIO pin : NO_AUDIO2_Pin */
GPIO_InitStruct.Pin = NO_AUDIO2_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
HAL_GPIO_Init(NO_AUDIO2_GPIO_Port, &GPIO_InitStruct);

/*Configure GPIO pin : ERREUR_D2_Pin */
/*Configure GPIO pin : ERROR2_Pin */
GPIO_InitStruct.Pin = ERROR2_Pin;
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
GPIO_InitStruct.Pull = GPIO_NOPULL;
Expand Down
44 changes: 44 additions & 0 deletions KiCad/SPDIF.kicad_sch
Original file line number Diff line number Diff line change
Expand Up @@ -6051,6 +6051,50 @@
)
(uuid "fd80b4f6-8487-4c98-ac1b-2cfee4217dcc")
)
(rectangle
(start 128.27 57.15)
(end 189.23 72.39)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
(uuid 06790d12-6d27-4a43-a31d-b51ba5d7768d)
)
(rectangle
(start 124.46 123.19)
(end 181.61 143.51)
(stroke
(width 0)
(type default)
)
(fill
(type none)
)
(uuid 2ce15887-6716-4d13-920d-5ca3b608db45)
)
(text "C37 or C42\nC41 or C38"
(exclude_from_sim no)
(at 173.99 127 0)
(effects
(font
(size 1.27 1.27)
)
)
(uuid "a462da71-fb03-419b-bdbc-f3d76d112a9b")
)
(text "C31 or C43\nC44 or C32"
(exclude_from_sim no)
(at 181.61 60.96 0)
(effects
(font
(size 1.27 1.27)
)
)
(uuid "b5999612-a634-4407-a2f7-4b24e26d1565")
)
(global_label "SPDIF-In1"
(shape output)
(at 181.61 85.09 180)
Expand Down

0 comments on commit 2da6112

Please sign in to comment.