|
| 1 | +/* |
| 2 | + * mbed Microcontroller Library |
| 3 | + * Copyright (c) 2019, Arm Limited and affiliates. |
| 4 | + * SPDX-License-Identifier: Apache-2.0 |
| 5 | + * |
| 6 | + * Licensed under the Apache License, Version 2.0 (the "License"); |
| 7 | + * you may not use this file except in compliance with the License. |
| 8 | + * You may obtain a copy of the License at |
| 9 | + * |
| 10 | + * http://www.apache.org/licenses/LICENSE-2.0 |
| 11 | + * |
| 12 | + * Unless required by applicable law or agreed to in writing, software |
| 13 | + * distributed under the License is distributed on an "AS IS" BASIS, |
| 14 | + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 15 | + * See the License for the specific language governing permissions and |
| 16 | + * limitations under the License. |
| 17 | + */ |
| 18 | + |
| 19 | +#ifndef CY_MBED_POST_INIT_H |
| 20 | +#define CY_MBED_POST_INIT_H |
| 21 | + |
| 22 | +#include "mbed_toolchain.h" |
| 23 | + |
| 24 | +#ifdef __cplusplus |
| 25 | +extern "C" { |
| 26 | +#endif |
| 27 | + |
| 28 | +/******************************************************************************* |
| 29 | +* Function Name: cy_mbed_post_bsp_init_hook |
| 30 | +****************************************************************************//** |
| 31 | +* |
| 32 | +* Function that is called immediately after cybsp_init finishes executing |
| 33 | +* Applications can override this definition if they need to reserve resources |
| 34 | +* early in the startup process so that later stages won't try and use them. |
| 35 | +* For example, a timer instance might be reserved so that the us_ticker won't |
| 36 | +* try to allocate it. |
| 37 | +* |
| 38 | +*******************************************************************************/ |
| 39 | +void cy_mbed_post_bsp_init_hook(void); |
| 40 | + |
| 41 | +#ifdef __cplusplus |
| 42 | +} |
| 43 | +#endif |
| 44 | + |
| 45 | +#endif /* CY_MBED_POST_INIT_H */ |
0 commit comments