mirror of https://github.com/ARMmbed/mbed-os.git
29 lines
958 B
C
29 lines
958 B
C
/* mbed Microcontroller Library
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
******************************************************************************
|
|
*
|
|
* Copyright (c) 2017 STMicroelectronics.
|
|
* All rights reserved.
|
|
*
|
|
* This software component is licensed by ST under BSD 3-Clause license,
|
|
* the "License"; You may not use this file except in compliance with the
|
|
* License. You may obtain a copy of the License at:
|
|
* opensource.org/licenses/BSD-3-Clause
|
|
*
|
|
******************************************************************************
|
|
*/
|
|
#ifndef MBED_SPI_DEVICE_H
|
|
#define MBED_SPI_DEVICE_H
|
|
|
|
#include "stm32g0xx_ll_spi.h"
|
|
|
|
#if defined (STM32G0B0xx) || defined (STM32G0B1xx) || defined (STM32G0C1xx)
|
|
#define SPI2_IRQn SPI2_3_IRQn
|
|
#define SPI3_IRQn SPI2_3_IRQn
|
|
#endif
|
|
|
|
// Defines the word legnth capability of the device where Nth bit allows for N window size
|
|
#define STM32_SPI_CAPABILITY_WORD_LENGTH (0x0000FFF8)
|
|
|
|
#endif
|