mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: drivers/SPI.h
- Revision:
- 189:f392fc9709a3
- Parent:
- 188:bcfe06ba3d64
--- a/drivers/SPI.h Thu Nov 08 11:46:34 2018 +0000 +++ b/drivers/SPI.h Wed Feb 20 22:31:08 2019 +0000 @@ -1,5 +1,6 @@ /* mbed Microcontroller Library * Copyright (c) 2006-2015 ARM Limited + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -18,7 +19,7 @@ #include "platform/platform.h" -#if defined (DEVICE_SPI) || defined(DOXYGEN_ONLY) +#if DEVICE_SPI || defined(DOXYGEN_ONLY) #include "platform/PlatformMutex.h" #include "hal/spi_api.h" @@ -208,6 +209,7 @@ */ int set_dma_usage(DMAUsage usage); +#if !defined(DOXYGEN_ONLY) protected: /** SPI interrupt handler. */ @@ -263,8 +265,6 @@ */ void start_transfer(const void *tx_buffer, int tx_length, void *rx_buffer, int rx_length, unsigned char bit_width, const event_callback_t &callback, int event); -#if !defined(DOXYGEN_ONLY) - private: /** Lock deep sleep only if it is not yet locked */ void lock_deep_sleep(); @@ -294,7 +294,6 @@ #endif //DEVICE_SPI_ASYNCH #if !defined(DOXYGEN_ONLY) - protected: /* Internal SPI object identifying the resources */ spi_t _spi;