Skip to content

Commit 36cdca5

Browse files
committed
patch hw defs
1 parent e49b23f commit 36cdca5

28 files changed

+41
-33
lines changed

include/hardware/structs/adc.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ typedef struct {
8686
io_ro_32 ints;
8787
} adc_hw_t;
8888

89-
#define adc_hw ((adc_hw_t *const)ADC_BASE)
89+
#define adc_hw ((adc_hw_t*)ADC_BASE)
9090

9191
#endif

include/hardware/structs/bus_ctrl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,6 @@ typedef struct {
7272
bus_ctrl_perf_hw_t counter[4];
7373
} bus_ctrl_hw_t;
7474

75-
#define bus_ctrl_hw ((bus_ctrl_hw_t *const)BUSCTRL_BASE)
75+
#define bus_ctrl_hw ((bus_ctrl_hw_t*)BUSCTRL_BASE)
7676

7777
#endif

include/hardware/structs/clocks.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ typedef struct {
319319
io_ro_32 ints;
320320
} clocks_hw_t;
321321

322-
#define clocks_hw ((clocks_hw_t *const)CLOCKS_BASE)
322+
#define clocks_hw ((clocks_hw_t*)CLOCKS_BASE)
323323

324324
static_assert( CLK_COUNT == 10, "");
325325

include/hardware/structs/dma.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ typedef struct {
194194
} ch[NUM_DMA_CHANNELS];
195195
} dma_debug_hw_t;
196196

197-
#define dma_hw ((dma_hw_t *const)DMA_BASE)
197+
#define dma_hw ((dma_hw_t*)DMA_BASE)
198198
#define dma_debug_hw ((dma_debug_hw_t *const)(DMA_BASE + DMA_CH0_DBG_CTDREQ_OFFSET))
199199

200200
static_assert( NUM_DMA_TIMERS == 4, "");

include/hardware/structs/i2c.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ typedef struct {
327327
io_ro_32 comp_type;
328328
} i2c_hw_t;
329329

330-
#define i2c0_hw ((i2c_hw_t *const)I2C0_BASE)
331-
#define i2c1_hw ((i2c_hw_t *const)I2C1_BASE)
330+
#define i2c0_hw ((i2c_hw_t*)I2C0_BASE)
331+
#define i2c1_hw ((i2c_hw_t*)I2C1_BASE)
332332

333333
#endif

include/hardware/structs/iobank0.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ typedef struct {
208208
io_irq_ctrl_hw_t dormant_wake_irq_ctrl;
209209
} iobank0_hw_t;
210210

211-
#define iobank0_hw ((iobank0_hw_t *const)IO_BANK0_BASE)
211+
#define iobank0_hw ((iobank0_hw_t*)IO_BANK0_BASE)
212212
/// \end::iobank0_hw[]
213213

214214
static_assert( NUM_BANK0_GPIOS == 30, "");

include/hardware/structs/ioqspi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ typedef struct {
167167
io_qspi_ctrl_hw_t dormant_wake_qspi_ctrl;
168168
} ioqspi_hw_t;
169169

170-
#define ioqspi_hw ((ioqspi_hw_t *const)IO_QSPI_BASE)
170+
#define ioqspi_hw ((ioqspi_hw_t*)IO_QSPI_BASE)
171171

172172
static_assert( NUM_QSPI_GPIOS == 6, "");
173173

include/hardware/structs/pads_qspi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef struct {
4040
io_rw_32 io[NUM_QSPI_GPIOS]; // 6
4141
} pads_qspi_hw_t;
4242

43-
#define pads_qspi_hw ((pads_qspi_hw_t *const)PADS_QSPI_BASE)
43+
#define pads_qspi_hw ((pads_qspi_hw_t*)PADS_QSPI_BASE)
4444

4545
static_assert( NUM_QSPI_GPIOS == 6, "");
4646

include/hardware/structs/padsbank0.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ typedef struct {
4040
io_rw_32 io[NUM_BANK0_GPIOS]; // 30
4141
} padsbank0_hw_t;
4242

43-
#define padsbank0_hw ((padsbank0_hw_t *const)PADS_BANK0_BASE)
43+
#define padsbank0_hw ((padsbank0_hw_t*)PADS_BANK0_BASE)
4444

4545
static_assert( NUM_BANK0_GPIOS == 30, "");
4646

include/hardware/structs/pio.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@ typedef struct {
275275
io_ro_32 ints1;
276276
} pio_hw_t;
277277

278-
#define pio0_hw ((pio_hw_t *const)PIO0_BASE)
279-
#define pio1_hw ((pio_hw_t *const)PIO1_BASE)
278+
#define pio0_hw ((pio_hw_t*)PIO0_BASE)
279+
#define pio1_hw ((pio_hw_t*)PIO1_BASE)
280280

281281
static_assert( NUM_PIO_STATE_MACHINES == 4, "");
282282
static_assert( PIO_INSTRUCTION_COUNT == 32, "");

0 commit comments

Comments
 (0)