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.
 
 
 
 
 

53 lines
1.1 KiB

#ifndef INC_CPPMAIN_H
#define INC_CPPMAIN_H
// ----------------------------------------------------------------------------------------------
// C++ Interface
// ----------------------------------------------------------------------------------------------
#ifdef __cplusplus
#include <iostream>
#include <cstdint>
#include <string>
namespace Heck {
// Serial Logging
void log(std::string& msg);
// DAC1
void dac1_set(uint32_t val);
void dac1_toggle();
void dac_start_dma();
void dac_stop_dma();
// LED Green
void led_green_toggle();
void led_green_on();
void led_green_off();
// Callbacks
void irq1_cb();
void timer2_cb();
void timer7_cb();
// misc
void bytebeat();
} // namespace Heck
#endif
// ----------------------------------------------------------------------------------------------
// C Interface
// ----------------------------------------------------------------------------------------------
#ifdef __cplusplus
extern "C" {
#endif
void heck_cppmain(void);
void heck_error_handler();
#ifdef __cplusplus
};
#endif
#endif /* INC_CPPMAIN_H */