/****************************************************************************** * Copyright (c) 2022 Telink Semiconductor (Shanghai) Co., Ltd. ("TELINK") * All rights reserved. * * 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 BLT_PA_H_ #define BLT_PA_H_ #include "../gpio.h" #ifndef PA_ENABLE #define PA_ENABLE 0 #endif #ifndef PA_TXEN_PIN #define PA_TXEN_PIN GPIO_PB2 #endif #ifndef PA_RXEN_PIN #define PA_RXEN_PIN GPIO_PB3 #endif #define PA_TYPE_OFF 0 #define PA_TYPE_TX_ON 1 #define PA_TYPE_RX_ON 2 typedef void (*rf_pa_callback_t)(int type); extern rf_pa_callback_t blc_rf_pa_cb; void rf_pa_init(void); #endif /* BLT_PA_H_ */