Home
last modified time | relevance | path

Searched refs:SPI_CTL0 (Results 1 – 16 of 16) sorted by relevance

/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32a50x/standard_peripheral/source/
Dgd32a50x_spi.c115 reg = SPI_CTL0(spi_periph); in spi_init()
134 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
147 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
158 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
361 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
372 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
426 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
428 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
445 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
448 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32f3x0/standard_peripheral/source/
Dgd32f3x0_spi.c105 reg = SPI_CTL0(spi_periph); in spi_init()
124 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
138 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
149 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
321 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
332 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
386 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
388 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
428 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
431 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32vf103/standard_peripheral/source/
Dgd32vf103_spi.c119 reg = SPI_CTL0(spi_periph); in spi_init()
138 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
151 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
162 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
358 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
369 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
423 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
425 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
465 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
468 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32l23x/standard_peripheral/source/
Dgd32l23x_spi.c130 reg1 = SPI_CTL0(spi_periph); in spi_init()
133 reg2 = SPI_CTL0(spi_periph); in spi_init()
161 SPI_CTL0(spi_periph) = (uint32_t)reg1; in spi_init()
177 SPI_CTL0(spi_periph) = (uint32_t)reg2; in spi_init()
199 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
210 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
411 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
422 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
481 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
483 SPI_CTL0(spi_periph) |= ((uint32_t)frame_format & SPI_FRAMESIZE_MASK); in spi_i2s_data_frame_format_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32e50x/standard_peripheral/source/
Dgd32e50x_spi.c120 reg = SPI_CTL0(spi_periph); in spi_init()
139 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
152 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
163 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
383 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
394 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
448 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
450 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
489 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
492 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32f403/standard_peripheral/source/
Dgd32f403_spi.c121 reg = SPI_CTL0(spi_periph); in spi_init()
140 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
153 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
164 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
366 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
377 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
431 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
433 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
472 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
475 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32e10x/standard_peripheral/source/
Dgd32e10x_spi.c126 reg = SPI_CTL0(spi_periph); in spi_init()
145 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
158 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
169 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
375 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
386 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
440 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
442 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
482 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
485 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32f4xx/standard_peripheral/source/
Dgd32f4xx_spi.c131 reg = SPI_CTL0(spi_periph); in spi_init()
150 SPI_CTL0(spi_periph) = (uint32_t)reg; in spi_init()
163 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SPIEN; in spi_enable()
174 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SPIEN); in spi_disable()
376 SPI_CTL0(spi_periph) |= (uint32_t)SPI_CTL0_SWNSS; in spi_nss_internal_high()
387 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_SWNSS); in spi_nss_internal_low()
441 SPI_CTL0(spi_periph) &= (uint32_t)(~SPI_CTL0_FF16); in spi_i2s_data_frame_format_config()
443 SPI_CTL0(spi_periph) |= (uint32_t)frame_format; in spi_i2s_data_frame_format_config()
482 SPI_CTL0(spi_periph) |= (uint32_t)SPI_BIDIRECTIONAL_TRANSMIT; in spi_bidirectional_transfer_config()
485 SPI_CTL0(spi_periph) &= SPI_BIDIRECTIONAL_RECEIVE; in spi_bidirectional_transfer_config()
[all …]
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32vf103/standard_peripheral/include/
Dgd32vf103_spi.h47 #define SPI_CTL0(spix) REG32((spix) + 0x00U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32f403/standard_peripheral/include/
Dgd32f403_spi.h48 #define SPI_CTL0(spix) REG32((spix) + 0x00U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32f3x0/standard_peripheral/include/
Dgd32f3x0_spi.h47 #define SPI_CTL0(spix) REG32((spix) + 0x00000000U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32e10x/standard_peripheral/include/
Dgd32e10x_spi.h51 #define SPI_CTL0(spix) REG32((spix) + 0x00U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32e50x/standard_peripheral/include/
Dgd32e50x_spi.h52 #define SPI_CTL0(spix) REG32((spix) + 0x00000000U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32a50x/standard_peripheral/include/
Dgd32a50x_spi.h45 #define SPI_CTL0(spix) REG32((spix) + 0x00000000U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32f4xx/standard_peripheral/include/
Dgd32f4xx_spi.h57 #define SPI_CTL0(spix) REG32((spix) + 0x00U) /*!< SPI control re… macro
/hal_gigadevice-3.7.0-3.6.0-3.5.0-3.4.0/gd32l23x/standard_peripheral/include/
Dgd32l23x_spi.h45 #define SPI_CTL0(spix) REG32((spix) + 0x00000000U) /*!< SPI control re… macro