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.
 
 
 
 
 

30 lines
532 B

#include "main.hpp"
#include <stddef.h>
#include <stdio.h>
#include "main.h"
#include "project.hpp"
//
#include "sdk/hal/zhal.hpp"
namespace iflytop {
Main gmain;
};
using namespace iflytop;
void Main::run() {
iflytop_no_os_cfg_t cfg = {
.delayhtim = &DELAY_US_TIMER,
.debuguart = &DEBUG_UART,
};
iflytop_no_os_init(&cfg);
printf("Hello World!\r\n");
DEBUG_LIGHT_GPIO.initAsOutput(true);
ZHAL_CORE_REG(300, { DEBUG_LIGHT_GPIO.toggleState(); });
while (1) {
ZHALCORE::getInstance()->loop();
}
}