mirror of
https://github.com/Dev-KATECH/ADM.git
synced 2026-05-17 01:43:59 +09:00
32 lines
422 B
C
32 lines
422 B
C
/*
|
|
* WIPER.c
|
|
*
|
|
* Created on: 2024. 4. 26.
|
|
* Author: SUPYO
|
|
*/
|
|
|
|
|
|
#include "Global_Variable.h"
|
|
#include "WIPER.h"
|
|
#include "can.h"
|
|
#include "board.h"
|
|
|
|
|
|
extern uint8_t GV_WIPER_CMD; // 0 = OFF, 1 = ON ,2 = BLINKING, 3 = INVALID
|
|
|
|
|
|
|
|
void WIPER_CMD(int x){
|
|
|
|
if(x == 0){
|
|
GV_WIPER_CMD = 0;
|
|
}else if (x == 1){
|
|
GV_WIPER_CMD = 1;
|
|
}else if (x == 2){
|
|
GV_WIPER_CMD = 2;
|
|
}else if (x == 3){
|
|
GV_WIPER_CMD = 3;
|
|
}
|
|
|
|
}
|