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
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;
|
|
}
|
|
}
|
|
|