
3 changed files with 56 additions and 8 deletions
@ -0,0 +1,25 @@ |
|||||
|
/*
|
||||
|
* cppmain.hh |
||||
|
* |
||||
|
* Created on: Jul 4, 2023 |
||||
|
* Author: heck |
||||
|
*/ |
||||
|
|
||||
|
#ifndef INC_CPPMAIN_H |
||||
|
#define INC_CPPMAIN_H |
||||
|
|
||||
|
|
||||
|
|
||||
|
#ifdef __cplusplus |
||||
|
extern "C" { |
||||
|
#endif |
||||
|
|
||||
|
void cppmain(void); |
||||
|
|
||||
|
#ifdef __cplusplus |
||||
|
}; |
||||
|
#endif |
||||
|
|
||||
|
|
||||
|
#endif /* INC_CPPMAIN_H */ |
||||
|
|
@ -0,0 +1,22 @@ |
|||||
|
/*
|
||||
|
* cppmain.cc |
||||
|
* |
||||
|
* Created on: Jul 4, 2023 |
||||
|
* Author: heck |
||||
|
*/ |
||||
|
|
||||
|
#include "cppmain.h" |
||||
|
#include "main.h" |
||||
|
//#include <iostream>
|
||||
|
//#include <vector>
|
||||
|
|
||||
|
//std::vector<int> v{};
|
||||
|
|
||||
|
void cppmain(void) { |
||||
|
while (1) { |
||||
|
// v.push_back(23);
|
||||
|
|
||||
|
HAL_GPIO_TogglePin(LED_GREEN_GPIO_Port, LED_GREEN_Pin); |
||||
|
// HAL_Delay(v.size());
|
||||
|
} |
||||
|
} |
Loading…
Reference in new issue