glc002-firmware/app_ui.h

53 lines
1.6 KiB
C

/********************************************************************************************************
* @file app_ui.h
*
* @brief This is the header file for app_ui
*
* @author Zigbee Group
* @date 2021
*
* @par Copyright (c) 2021, Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK")
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*******************************************************************************************************/
#ifndef _APP_UI_H_
#define _APP_UI_H_
/**********************************************************************
* CONSTANT
*/
#define LED_ON 1
#define LED_OFF 0
/**********************************************************************
* TYPEDEFS
*/
enum
{
APP_STATE_NORMAL,
APP_FACTORY_NEW_SET_CHECK,
APP_FACTORY_NEW_DOING,
};
/**********************************************************************
* FUNCTIONS
*/
void led_init(void);
void led_on(u32 pin);
void led_off(u32 pin);
void localPermitJoinState(void);
void app_key_handler(void);
#endif /* _APP_UI_H_ */