@web-font-path: "roboto-debian.css";
Menu Toggle
v1.5.1
Loading...
Searching...
No Matches
pads_qspi.h
1
// THIS HEADER FILE IS AUTOMATICALLY GENERATED -- DO NOT EDIT
2
3
/*
4
* Copyright (c) 2021 Raspberry Pi (Trading) Ltd.
5
*
6
* SPDX-License-Identifier: BSD-3-Clause
7
*/
8
9
#ifndef _HARDWARE_STRUCTS_PADS_QSPI_H
10
#define _HARDWARE_STRUCTS_PADS_QSPI_H
11
12
#include "
hardware/address_mapped.h
"
13
#include "hardware/regs/pads_qspi.h"
14
15
// Reference to datasheet: https://datasheets.raspberrypi.com/rp2040/rp2040-datasheet.pdf#tab-registerlist_pads_qspi
16
//
17
// The _REG_ macro is intended to help make the register navigable in your IDE (for example, using the "Go to Definition" feature)
18
// _REG_(x) will link to the corresponding register in hardware/regs/pads_qspi.h.
19
//
20
// Bit-field descriptions are of the form:
21
// BITMASK [BITRANGE]: FIELDNAME (RESETVALUE): DESCRIPTION
22
23
typedef
struct
{
24
_REG_(PADS_QSPI_VOLTAGE_SELECT_OFFSET)
// PADS_QSPI_VOLTAGE_SELECT
25
// Voltage select
26
// 0x00000001 [0] : VOLTAGE_SELECT (0)
27
io_rw_32 voltage_select;
28
29
_REG_(PADS_QSPI_GPIO_QSPI_SCLK_OFFSET)
// PADS_QSPI_GPIO_QSPI_SCLK
30
// (Description copied from array index 0 register PADS_QSPI_GPIO_QSPI_SCLK applies similarly to other array indexes)
31
//
32
// Pad control register
33
// 0x00000080 [7] : OD (0): Output disable
34
// 0x00000040 [6] : IE (1): Input enable
35
// 0x00000030 [5:4] : DRIVE (1): Drive strength
36
// 0x00000008 [3] : PUE (0): Pull up enable
37
// 0x00000004 [2] : PDE (1): Pull down enable
38
// 0x00000002 [1] : SCHMITT (1): Enable schmitt trigger
39
// 0x00000001 [0] : SLEWFAST (0): Slew rate control
40
io_rw_32 io[NUM_QSPI_GPIOS];
// 6
41
}
pads_qspi_hw_t
;
42
43
#define pads_qspi_hw ((pads_qspi_hw_t *)PADS_QSPI_BASE)
44
45
static_assert
( NUM_QSPI_GPIOS == 6,
""
);
46
47
#endif
address_mapped.h
pads_qspi_hw_t
Definition
pads_qspi.h:23