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.
 
 
 
 
 

26 lines
522 B

#include "main.hpp"
#include <stddef.h>
#include <stdio.h>
#include "main.h"
#include "project.hpp"
#include "sdk\chip\iflytop_no_os.h"
#include "usart.h"
namespace iflytop {
Main gmain;
};
using namespace iflytop;
void Main::run() {
// for (size_t i = 0; i < 100; i++) {
// uint8_t c = '1';
// HAL_UART_Transmit(&DEBUG_UART, &c, 1, 100);
// }
iflytop_no_os_cfg_t cfg = {
.delayhtim = &DELAY_US_TIMER,
.debuguart = &DEBUG_UART,
};
iflytop_no_os_init(&cfg);
printf("Hello World!\r\n");
}