17777dab0Sopenharmony_ci/* 27777dab0Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd. 37777dab0Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 47777dab0Sopenharmony_ci * you may not use this file except in compliance with the License. 57777dab0Sopenharmony_ci * You may obtain a copy of the License at 67777dab0Sopenharmony_ci * 77777dab0Sopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 87777dab0Sopenharmony_ci * 97777dab0Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software 107777dab0Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 117777dab0Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127777dab0Sopenharmony_ci * See the License for the specific language governing permissions and 137777dab0Sopenharmony_ci * limitations under the License. 147777dab0Sopenharmony_ci */ 157777dab0Sopenharmony_ci 167777dab0Sopenharmony_ci#ifndef BASE_STARTUP_INITLITE_NOTIFY_H 177777dab0Sopenharmony_ci#define BASE_STARTUP_INITLITE_NOTIFY_H 187777dab0Sopenharmony_ci 197777dab0Sopenharmony_ci#ifdef __cplusplus 207777dab0Sopenharmony_ci#if __cplusplus 217777dab0Sopenharmony_ciextern "C" { 227777dab0Sopenharmony_ci#endif 237777dab0Sopenharmony_ci#endif 247777dab0Sopenharmony_ci 257777dab0Sopenharmony_ci#define EVENT1 0xf 267777dab0Sopenharmony_ci#define EVENT1_WAITTIME 10000 // 10s = 10*1000 * 1 tick(1ms) 277777dab0Sopenharmony_ci 287777dab0Sopenharmony_ci#define EVENT2 0xf0 297777dab0Sopenharmony_ci/* Define EVENT2_WAITTIME 0 means QS_STAGE2 is no used */ 307777dab0Sopenharmony_ci#define EVENT2_WAITTIME 0 317777dab0Sopenharmony_ci 327777dab0Sopenharmony_ci#define EVENT3 0xf00 337777dab0Sopenharmony_ci/* Define EVENT3_WAITTIME 0 means QS_STAGE3 is no used */ 347777dab0Sopenharmony_ci#define EVENT3_WAITTIME 0 357777dab0Sopenharmony_ci 367777dab0Sopenharmony_ci/* 377777dab0Sopenharmony_ci * Notify the event to Init process. 387777dab0Sopenharmony_ci * All processes can call. Usually called by the listened process. 397777dab0Sopenharmony_ci * event: There needs to be a consensus between the listener(init process) and the notifier. 407777dab0Sopenharmony_ci */ 417777dab0Sopenharmony_ciextern int NotifyInit(unsigned long event); 427777dab0Sopenharmony_ci 437777dab0Sopenharmony_ci#ifdef __cplusplus 447777dab0Sopenharmony_ci#if __cplusplus 457777dab0Sopenharmony_ci} 467777dab0Sopenharmony_ci#endif 477777dab0Sopenharmony_ci#endif 487777dab0Sopenharmony_ci 497777dab0Sopenharmony_ci#endif // BASE_STARTUP_INITLITE_NOTIFY_H 50