40 lines
421 B
C
40 lines
421 B
C
/*
|
|
* hmi.c
|
|
*
|
|
* Created on: Oct 15, 2016
|
|
* Author: wn
|
|
*/
|
|
|
|
#include <stdint.h>
|
|
#include "hmi.h"
|
|
#include "inverterCtrl.h"
|
|
|
|
|
|
|
|
const uint32_t HMI_CYCLE = 50;
|
|
const uint32_t HMI_START_DELAY = 30;
|
|
|
|
|
|
|
|
void hmiInit() {
|
|
|
|
}
|
|
|
|
|
|
void hmiExec(void *handle) {
|
|
static uint8_t state = 0;
|
|
|
|
switch (state) {
|
|
case 0:
|
|
inverterCtrlSetFrequency(50);
|
|
state = 1;
|
|
break;
|
|
case 1:
|
|
break;
|
|
default:
|
|
state = 0;
|
|
break;
|
|
}
|
|
|
|
}
|