start hmi stuff, not yet working
This commit is contained in:
39
src/hmi.c
Normal file
39
src/hmi.c
Normal file
@ -0,0 +1,39 @@
|
||||
/*
|
||||
* 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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user