system/spi: Adopt CPHA as the abbreviation for clock phase
This commit is contained in:
parent
739ab94d03
commit
73a8c65ec9
@ -61,10 +61,10 @@ config SPITOOL_DEFMODE
|
|||||||
default 0
|
default 0
|
||||||
---help---
|
---help---
|
||||||
Default SPI mode, where;
|
Default SPI mode, where;
|
||||||
0 = CPOL=0, CHPHA=0
|
0 = CPOL=0, CPHA=0
|
||||||
1 = CPOL=0, CHPHA=1
|
1 = CPOL=0, CPHA=1
|
||||||
2 = CPOL=1, CHPHA=0
|
2 = CPOL=1, CPHA=0
|
||||||
3 = CPOL=1, CHPHA=1
|
3 = CPOL=1, CPHA=1
|
||||||
|
|
||||||
config SPITOOL_DEFWIDTH
|
config SPITOOL_DEFWIDTH
|
||||||
int "SPI Bit width"
|
int "SPI Bit width"
|
||||||
|
@ -39,10 +39,10 @@ The SPI tool is designed to be implemented as a NuttShell (NSH) add-on. Read the
|
|||||||
- `CONFIG_SPITOOL_DEFFREQ` – Default frequency (default: `40000000`).
|
- `CONFIG_SPITOOL_DEFFREQ` – Default frequency (default: `40000000`).
|
||||||
- `CONFIG_SPITOOL_DEFMODE` – Default mode, where
|
- `CONFIG_SPITOOL_DEFMODE` – Default mode, where
|
||||||
```
|
```
|
||||||
0 = CPOL=0, CHPHA=0
|
0 = CPOL=0, CPHA=0
|
||||||
1 = CPOL=0, CHPHA=1
|
1 = CPOL=0, CPHA=1
|
||||||
2 = CPOL=1, CHPHA=0
|
2 = CPOL=1, CPHA=0
|
||||||
3 = CPOL=1, CHPHA=1
|
3 = CPOL=1, CPHA=1
|
||||||
```
|
```
|
||||||
- `CONFIG_SPITOOL_DEFWIDTH` – Default bit width (default `8`).
|
- `CONFIG_SPITOOL_DEFWIDTH` – Default bit width (default `8`).
|
||||||
- `CONFIG_SPITOOL_DEFWORDS` – Default number of words to exchange (default `1`).
|
- `CONFIG_SPITOOL_DEFWORDS` – Default number of words to exchange (default `1`).
|
||||||
@ -159,10 +159,10 @@ NSH scripts to execute a longer, more complex series of SPI commands.
|
|||||||
Which of the available SPI modes is to be used. Options are;
|
Which of the available SPI modes is to be used. Options are;
|
||||||
|
|
||||||
```
|
```
|
||||||
0 = CPOL=0, CHPHA=0
|
0 = CPOL=0, CPHA=0
|
||||||
1 = CPOL=0, CHPHA=1
|
1 = CPOL=0, CPHA=1
|
||||||
2 = CPOL=1, CHPHA=0
|
2 = CPOL=1, CPHA=0
|
||||||
3 = CPOL=1, CHPHA=1
|
3 = CPOL=1, CPHA=1
|
||||||
```
|
```
|
||||||
|
|
||||||
- `[-u udelay]` Delay after transfer in uS. Default: `0`
|
- `[-u udelay]` Delay after transfer in uS. Default: `0`
|
||||||
|
@ -65,10 +65,10 @@
|
|||||||
* (default 3)
|
* (default 3)
|
||||||
* CONFIG_SPITOOL_DEFFREQ - Default frequency (default: 40000000)
|
* CONFIG_SPITOOL_DEFFREQ - Default frequency (default: 40000000)
|
||||||
* CONFIG_SPITOOL_DEFMODE - Default mode, where;
|
* CONFIG_SPITOOL_DEFMODE - Default mode, where;
|
||||||
* 0 = CPOL=0, CHPHA=0
|
* 0 = CPOL=0, CPHA=0
|
||||||
* 1 = CPOL=0, CHPHA=1
|
* 1 = CPOL=0, CPHA=1
|
||||||
* 2 = CPOL=1, CHPHA=0
|
* 2 = CPOL=1, CPHA=0
|
||||||
* 3 = CPOL=1, CHPHA=1
|
* 3 = CPOL=1, CPHA=1
|
||||||
* CONFIG_SPITOOL_DEFWIDTH - Default bit width (default 8)
|
* CONFIG_SPITOOL_DEFWIDTH - Default bit width (default 8)
|
||||||
* CONFIG_SPITOOL_DEFWORDS - Default number of words to exchange
|
* CONFIG_SPITOOL_DEFWORDS - Default number of words to exchange
|
||||||
* (default 1)
|
* (default 1)
|
||||||
@ -87,7 +87,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SPITOOL_DEFMODE
|
#ifndef CONFIG_SPITOOL_DEFMODE
|
||||||
#define CONFIG_SPITOOL_DEFMODE 0 /* CPOL=0, CHPHA=0 */
|
#define CONFIG_SPITOOL_DEFMODE 0 /* CPOL=0, CPHA=0 */
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef CONFIG_SPITOOL_DEFWIDTH
|
#ifndef CONFIG_SPITOOL_DEFWIDTH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user