#ifndef INC_CPPMAIN_H #define INC_CPPMAIN_H // ---------------------------------------------------------------------------------------------- // C++ Interface // ---------------------------------------------------------------------------------------------- #ifdef __cplusplus #include #include #include using u32 = uint32_t; namespace Heck { bool is_running {false}; // 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(); u32 random(u32 max); // MAIN void main(); } // 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 */