Conquering the STM32F4 on the discovery board step-by-step. Commit history is tutorialesque, but not clean of course.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
436 B

/*
* cppmain.cc
*
* Created on: Jul 4, 2023
* Author: heck
*/
#include "cppmain.h"
#include "main.h"
#include "usbd_cdc_if.h"
#include <iostream>
void cppmain(void) {
while (1) {
std::string msg {"hello heck"};
CDC_Transmit_FS(reinterpret_cast<uint8_t*>(msg.data()), msg.size());
HAL_GPIO_TogglePin(LED_GREEN_GPIO_Port, LED_GREEN_Pin);
HAL_Delay(250);
std::cout << msg << "WHAUAT" << std::endl;
}
}