Skip to content

Commit 6d8e9d8

Browse files
committed
source formatting
1 parent c5681df commit 6d8e9d8

File tree

16 files changed

+37
-37
lines changed

16 files changed

+37
-37
lines changed

.clang-format

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ SpacesInCStyleCastParentheses: false
105105
SpacesInParentheses: false
106106
SpacesInSquareBrackets: false
107107
Standard: Cpp11
108-
TabWidth: 8
108+
TabWidth: 4
109109
UseTab: Never
110110
...
111111

Sources/iqmod_rx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ void RX_IQ_DATA_TO_DDR(void) {
245245
return;
246246
}
247247

248-
//#pragma optimize_for_size off
248+
// #pragma optimize_for_size off
249249
volatile uint32_t rx_busy_size = 0;
250250
void PUSH_RX_DATA(void) {
251251
uint32_t tmp_status;

Sources/iqmod_rx_2R_decx2x4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void RX_IQ_DATA_TO_DDR(void) {
229229
return;
230230
}
231231

232-
//#pragma optimize_for_size off
232+
// #pragma optimize_for_size off
233233
volatile uint32_t rx_busy_size = 0;
234234
void PUSH_RX_DATA(void) {
235235
uint32_t tmp_status, i;

Sources/iqmod_tx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ void TX_IQ_DATA_FROM_DDR(void) {
278278
return;
279279
}
280280

281-
//#pragma optimize_for_size off
281+
// #pragma optimize_for_size off
282282
volatile uint32_t tx_busy_size = 0;
283283
void PUSH_TX_DATA(void) {
284284
uint32_t tmp_status;

Sources/iqmod_tx_2R.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ void TX_IQ_DATA_FROM_DDR(void) {
251251
return;
252252
}
253253

254-
//#pragma optimize_for_size off
254+
// #pragma optimize_for_size off
255255
volatile uint32_t tx_busy_size = 0;
256256
void PUSH_TX_DATA(void) {
257257
uint32_t tmp_status;

include/dfe.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
* txiqcomp IQ phase and amplitude compensation
2020
* txiqcomp_x32chf_5t IQ phase and amplitude + IQ fractional delay compensation
2121
*/
22-
//#define TXIQCOMP2
23-
//#define RXIQCOMP2
22+
// #define TXIQCOMP2
23+
// #define RXIQCOMP2
2424
#define TXIQCOMP
2525
#define RXIQCOMP
2626

include/iqmod_tx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ extern uint32_t tx_proxy_updated;
5959
#define DDR_RD_DMA_CHANNEL_2 0x8
6060
#define DDR_RD_DMA_CHANNEL_3 0x9
6161
#define DDR_RD_DMA_CHANNEL_4 0xa
62-
//#define DDR_RD_DMA_CHANNEL_MASK 0x00000180
63-
//#define DDR_RD_DMA_CHANNEL_MASK 0x00000780
62+
// #define DDR_RD_DMA_CHANNEL_MASK 0x00000180
63+
// #define DDR_RD_DMA_CHANNEL_MASK 0x00000780
6464

6565
#define DMA_CHANNEL_WR 0xb
6666

include/main.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
#include "iohw.h"
1717
#include "dmac.h"
1818
#include "axiq.h"
19-
//#include "bitRev.h"
20-
//#include "la9310.h"
19+
// #include "bitRev.h"
20+
// #include "la9310.h"
2121

2222
/* parameters */
2323

@@ -94,7 +94,7 @@ typedef enum {
9494
MBOX_OPC_GET_STATS_COUNT, // 0xF
9595
MBOX_OPC_DONE_SWRESET, // 0x10
9696
MBOX_OPC_PROXY_OFFSET // 0x11
97-
97+
9898
} mbox_opc_e;
9999

100100
void PUSH_TX_DATA(void);

vspa-sdk/inc/axiq-hs.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ enum axiq_hs_fifo_e {
3535
#define AXIQ_HS_CR_TX_SHIFT 16
3636

3737
//! @brief Number of right-shifts to right-justify the FIFO control bits.
38-
#define AXIQ_HS_CR_SHIFT(bank, fifo) ((fifo)*16)
38+
#define AXIQ_HS_CR_SHIFT(bank, fifo) ((fifo) * 16)
3939

4040
#define AXIQ_HS_CR_SHIFT_RX(bank, fifo) AXIQ_HS_CR_SHIFT(bank, fifo)
4141
#define AXIQ_HS_CR_SHIFT_TX(bank, fifo) AXIQ_HS_CR_SHIFT(bank, fifo)
@@ -90,7 +90,7 @@ enum axiq_hs_fifo_e {
9090
// Status register:
9191
// =============================================================================
9292

93-
#define AXIQ_HS_SR_SHIFT(bank, fifo) (((bank)*16) + ((fifo)*8))
93+
#define AXIQ_HS_SR_SHIFT(bank, fifo) (((bank) * 16) + ((fifo) * 8))
9494

9595
#define AXIQ_HS_SR_SHIFT_RX(bank, fifo) AXIQ_HS_SR_SHIFT(bank, AXIQ_HS_FIFO_RX)
9696
#define AXIQ_HS_SR_SHIFT_TX(bank, fifo) AXIQ_HS_SR_SHIFT(bank, AXIQ_HS_FIFO_TX)

vspa-sdk/inc/axiq-la1224.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -57,26 +57,26 @@ enum axiq_ls_bank_e {
5757
// -----------------------------------------------------------------------------
5858

5959
//! @brief AXIQ RX control register address.
60-
#define AXIQ_LS_RX_CR(bank) GPO(((bank)*2) + GPIO_AXIQ_L0_CR0)
60+
#define AXIQ_LS_RX_CR(bank) GPO(((bank) * 2) + GPIO_AXIQ_L0_CR0)
6161

6262
//! @brief AXIQ TX control register address.
63-
#define AXIQ_LS_TX_CR(bank) GPO(((bank)*2) + GPIO_AXIQ_L0_CR1)
63+
#define AXIQ_LS_TX_CR(bank) GPO(((bank) * 2) + GPIO_AXIQ_L0_CR1)
6464

6565
// -----------------------------------------------------------------------------
6666
// Status register:
6767
// -----------------------------------------------------------------------------
6868

6969
//! @brief AXIQ RX status register address.
70-
#define AXIQ_LS_RX_SR(bank) GPI(((bank)*3) + GPIO_AXIQ_L0_SR0)
70+
#define AXIQ_LS_RX_SR(bank) GPI(((bank) * 3) + GPIO_AXIQ_L0_SR0)
7171

7272
//! @brief AXIQ TX status register address.
73-
#define AXIQ_LS_TX_SR(bank) GPI(((bank)*3) + GPIO_AXIQ_L0_SR1)
73+
#define AXIQ_LS_TX_SR(bank) GPI(((bank) * 3) + GPIO_AXIQ_L0_SR1)
7474

7575
//! @brief DMA channel number for a given RX FIFO.
7676
//! @param bank specifies the AXIQ bank.
7777
//! @param fifo specifies the AXIQ RX FIFO.
7878
//! @return The DMA channel number for the RX FIFO @a fifo.
79-
#define AXIQ_LS_CHAN_RX(bank, fifo) (((bank)*5) + (fifo) + 1)
79+
#define AXIQ_LS_CHAN_RX(bank, fifo) (((bank) * 5) + (fifo) + 1)
8080

8181
//! @brief DMA channel mask for a given RX FIFO.
8282
//! @param bank specifies the AXIQ bank.
@@ -93,13 +93,13 @@ enum axiq_ls_bank_e {
9393
//! @param bank specifies the AXIQ bank.
9494
//! @param fifo specifies the AXIQ RX FIFO.
9595
//! @return The AXI address for the RX FIFO @a fifo.
96-
#define AXIQ_LS_ADDR_RX(bank, fifo) (BASE_AXIQ(bank) + ((fifo)*0x1000))
96+
#define AXIQ_LS_ADDR_RX(bank, fifo) (BASE_AXIQ(bank) + ((fifo) * 0x1000))
9797

9898
//! @brief DMA channel for a given TX FIFO.
9999
//! @param bank specifies the AXIQ bank.
100100
//! @param fifo specifies the AXIQ TX FIFO.
101101
//! @return The DMA channel number for the TX FIFO @a fifo.
102-
#define AXIQ_LS_CHAN_TX(bank, fifo) (((bank)*5) + (fifo) + 4)
102+
#define AXIQ_LS_CHAN_TX(bank, fifo) (((bank) * 5) + (fifo) + 4)
103103

104104
//! @brief DMA channel mask for a given TX FIFO.
105105
//! @param bank specifies the AXIQ bank.
@@ -116,7 +116,7 @@ enum axiq_ls_bank_e {
116116
//! @param bank specifies the AXIQ bank.
117117
//! @param fifo specifies the AXIQ RX FIFO.
118118
//! @return The AXI address for the RX FIFO @a fifo.
119-
#define AXIQ_LS_ADDR_TX(bank, fifo) (BASE_AXIQ(bank) + ((fifo)*0x1000))
119+
#define AXIQ_LS_ADDR_TX(bank, fifo) (BASE_AXIQ(bank) + ((fifo) * 0x1000))
120120

121121
#include "axiq-ls.h"
122122

@@ -156,7 +156,7 @@ enum axiq_hs_bank_e {
156156
#define AXIQ_HS_TX_SR(bank) GPI(GPIO_AXIQ_HS_SR1)
157157

158158
//! @brief HS AXIQ RX Max/Num/Sum GPIN.
159-
#define AXIQ_HS_RX_MAX_GPIN(bank) GPI(((bank)*2) + GPIO_AXIQ_HS_SR0)
159+
#define AXIQ_HS_RX_MAX_GPIN(bank) GPI(((bank) * 2) + GPIO_AXIQ_HS_SR0)
160160

161161
//! @brief DMA channel number for a given RX FIFO.
162162
//! @param bank specifies the AXIQ bank.
@@ -174,7 +174,7 @@ enum axiq_hs_bank_e {
174174
//! @param bank specifies the AXIQ bank.
175175
//! @param fifo specifies the AXIQ RX FIFO.
176176
//! @return The AXI address for the RX FIFO @a fifo.
177-
#define AXIQ_HS_ADDR_RX(bank, fifo) (BASE_AXIQ_HS + ((bank)*0x8000))
177+
#define AXIQ_HS_ADDR_RX(bank, fifo) (BASE_AXIQ_HS + ((bank) * 0x8000))
178178

179179
//! @brief DMA channel for a given TX FIFO.
180180
//! @param bank specifies the AXIQ bank.
@@ -192,7 +192,7 @@ enum axiq_hs_bank_e {
192192
//! @param bank specifies the AXIQ bank.
193193
//! @param fifo specifies the AXIQ TX FIFO.
194194
//! @return The AXI address for the TX FIFO @a fifo.
195-
#define AXIQ_HS_ADDR_TX(bank, fifo) (BASE_AXIQ_HS + ((bank)*0x8000))
195+
#define AXIQ_HS_ADDR_TX(bank, fifo) (BASE_AXIQ_HS + ((bank) * 0x8000))
196196

197197
#include "axiq-hs.h"
198198
#include "axiq-ls.h"

0 commit comments

Comments
 (0)