File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -115,20 +115,22 @@ int main(void)
115115
116116 /* USER CODE END 2 */
117117
118- // Demo USART loopback
118+ /* Infinite loop */
119+ /* USER CODE BEGIN WHILE */
119120 uint8_t buffer [128 ];
120121 USARTConfig config ;
121122 USARTHandle handle = usart_init_peripheral (& config );
122123 while (1 ) {
123124 /* USER CODE END WHILE */
124- handle . send ( & handle , ( uint8_t * ) "Hello, USART!\n" , 0 );
125+
125126 /* USER CODE BEGIN 3 */
126127 ECU_State_Tick ();
127128 LOGOMATIC ("Main Loop Tick Complete. I like Pi %f\n" ,
128129 3.14159265 );
129130 LL_mDelay (250 ); // FIXME Reduce or remove delay
131+ usart_send (& handle , (uint8_t * )"Hello, USART!\n" , 0 );
130132 }
131- usart_release ( & handle ); // not reachable but you get the idea
133+ /* USER CODE END 3 */
132134}
133135
134136/**
You can’t perform that action at this time.
0 commit comments