2018-01-23 12:49:48 +00:00
|
|
|
/*
|
|
|
|
|
Aerospace Decoder - Copyright (C) 2018 Bob Anderson (VK2GJ)
|
|
|
|
|
|
|
|
|
|
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.
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef PORTAB_H_
|
|
|
|
|
#define PORTAB_H_
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* Module constants. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
2018-01-25 08:10:39 +00:00
|
|
|
//#define LINE_OVERFLOW_LED LINE_LED3
|
2018-02-01 09:28:24 +00:00
|
|
|
#define LINE_DECODER_LED LINE_IO_BLUE
|
|
|
|
|
//#define LINE_SQUELCH_LED LINE_IO_BLUE
|
2018-01-25 08:10:39 +00:00
|
|
|
|
2018-01-26 14:41:00 +00:00
|
|
|
#define LINE_CCA PAL_LINE(GPIOD, 2U)
|
2018-01-25 08:10:39 +00:00
|
|
|
#define LINE_ICU PAL_LINE(GPIOB, 6U)
|
|
|
|
|
|
|
|
|
|
#define LINE_UART4_TX PAL_LINE(GPIOA, 12U)
|
|
|
|
|
#define LINE_UART4_RX PAL_LINE(GPIOA, 11U)
|
|
|
|
|
|
2018-02-07 09:26:23 +00:00
|
|
|
//#define LINE_PWM_MIRROR PAL_LINE(GPIOA, 8U)
|
|
|
|
|
|
2018-01-25 08:10:39 +00:00
|
|
|
#define PWM_ICU ICUD4
|
2018-01-23 12:49:48 +00:00
|
|
|
|
2018-01-30 09:24:51 +00:00
|
|
|
/* Definitions for ICU FIFO implemented using chfactory. */
|
2018-02-08 01:46:23 +00:00
|
|
|
#define NUMBER_PWM_FIFOS 4
|
|
|
|
|
#define PWM_BUFFER_SLOTS 6000
|
2018-01-30 09:24:51 +00:00
|
|
|
|
|
|
|
|
/* Number of AX25 output buffers. */
|
|
|
|
|
#define NUMBER_PKT_FIFOS 2U
|
|
|
|
|
|
2018-01-23 12:49:48 +00:00
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* Module pre-compile time settings. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* Derived constants and error checks. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* Module data structures and types. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* Module macros. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* External declarations. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
extern "C" {
|
|
|
|
|
#endif
|
2018-01-25 08:10:39 +00:00
|
|
|
void pktConfigSerialDiag(void);
|
|
|
|
|
void pktConfigSerialPkt(void);
|
2018-01-23 12:49:48 +00:00
|
|
|
void pktSetLineModeICU(void);
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
|
}
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
/* Module inline functions. */
|
|
|
|
|
/*===========================================================================*/
|
|
|
|
|
|
|
|
|
|
#endif /* PORTAB_H_ */
|
|
|
|
|
|
|
|
|
|
/** @} */
|