Skip to content

Милов Виктор#5

Open
lVictorl wants to merge 1 commit into
DimaSolovyov:mainfrom
lVictorl:main
Open

Милов Виктор#5
lVictorl wants to merge 1 commit into
DimaSolovyov:mainfrom
lVictorl:main

Conversation

@lVictorl

@lVictorl lVictorl commented May 3, 2026

Copy link
Copy Markdown

Автор: Милов Виктор Николаевич

@lVictorl lVictorl changed the title Add files from STM32CubeIDE Милов Виктор May 4, 2026
Comment thread homework1/Src/main.c
*/
static void UART_Rx_Start(void)
{
HAL_UART_Receive_IT(&CMD_UART_HANDLE, &cmd_rx_buf[cmd_rx_index], 1);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Зачем понадобился макрос CMD_UART_HANDLE ?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Изначально не получалось подключить UART, после подключения через IDE, были ошибки компиляции. Я решил оставить некоторые отрывки кода. Попробую убрать всё лишнее и сделать с использованием лишь сгенерированого кода.

Comment thread homework1/Src/main.c
default: break;
}

HAL_GPIO_WritePin(LED_GPIO_PORT, led_pin, set_on ? GPIO_PIN_SET : GPIO_PIN_RESET);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Тут ошибка а номера пиннах

Comment thread homework1/Src/main.c
* @brief Инициализация линий GPIO для светодиодов (PA0 – PA3).
* Все пины конфигурируются как выход Push-Pull, светодиоды выключены.
*/
static void LED_Init(void)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Почему не просто сгенрировнный код из hal ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants