This commit is contained in:
Vasily Markov 2024-06-07 14:19:49 +03:00
parent 9586aed728
commit 8c3285dd36
5 changed files with 6 additions and 13 deletions

3
.gitignore vendored
View File

@ -1,3 +1,4 @@
build
STM32F439.svd
putty_run
putty_run
nanopb

View File

@ -1,14 +1,5 @@
set(elf_file stm32.elf)
# include(FetchContent)
# FetchContent_Declare(nanopb
# GIT_REPOSITORY https://github.com/nanopb/nanopb
# GIT_TAG master
# )
# FetchContent_MakeAvailable(nanopb)
# set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/nanopb/extra)
# find_package(Nanopb REQUIRED)

View File

@ -42,12 +42,13 @@ int main(void)
while (1)
{
lwipProcess();
// lwipProcess();
const char *data = "Hello, world!";
sprintf(numStr, "%d", cnt++);
char* strCat = strcat(data, numStr);
// udp_send_data(numStr, strlen(numStr));
// serialzie();
// printf("Test\r\n");
GPIO_ToggleBits(GPIOB, GPIO_Pin_14);
delay(100);
}

View File

@ -26,7 +26,7 @@ void delay(uint32_t delay) {
void TIM7_IRQHandler()
{
TIM_ClearITPendingBit(TIM7, TIM_IT_Update);
// GPIO_ToggleBits(GPIOB, GPIO_Pin_7);
if(getLwipStatus()->link_status == LINK_UP) {
GPIO_ToggleBits(GPIOB, GPIO_Pin_7);
}

View File

@ -1 +1 @@
sudo screen /dev/ttyUSB0 115200
screen /dev/ttyUSB0 115200