mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			STM32: protect compilation when DEVICE_USTICKER is disabled
							parent
							
								
									f56808f9bf
								
							
						
					
					
						commit
						9c63d91c11
					
				| 
						 | 
					@ -13,6 +13,9 @@
 | 
				
			||||||
 * See the License for the specific language governing permissions and
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 * limitations under the License.
 | 
					 * limitations under the License.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEVICE_USTICKER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include "hal/us_ticker_api.h"
 | 
					#include "hal/us_ticker_api.h"
 | 
				
			||||||
#include "us_ticker_data.h"
 | 
					#include "us_ticker_data.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -75,3 +78,5 @@ void HAL_ResumeTick(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    // Do nothing
 | 
					    // Do nothing
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* DEVICE_USTICKER */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -13,6 +13,9 @@
 | 
				
			||||||
 * See the License for the specific language governing permissions and
 | 
					 * See the License for the specific language governing permissions and
 | 
				
			||||||
 * limitations under the License.
 | 
					 * limitations under the License.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#if DEVICE_USTICKER
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <stddef.h>
 | 
					#include <stddef.h>
 | 
				
			||||||
#include "us_ticker_api.h"
 | 
					#include "us_ticker_api.h"
 | 
				
			||||||
#include "PeripheralNames.h"
 | 
					#include "PeripheralNames.h"
 | 
				
			||||||
| 
						 | 
					@ -264,3 +267,4 @@ void us_ticker_free(void)
 | 
				
			||||||
    us_ticker_disable_interrupt();
 | 
					    us_ticker_disable_interrupt();
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#endif /* DEVICE_USTICKER */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue