Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
#include "delay.h"
#include "stm32f0xx.h"
#define USECOND 1e9
#define MSECOND 1e6
void uDelay(uint32_t u) {
volatile uint32_t i = 0;
for (i = 0; i < ((float)SystemCoreClock/(float)USECOND*13)*u; i++) { }
}
void mDelay(uint32_t m) {
volatile uint32_t i = 0;
for (i = 0; i < (SystemCoreClock/MSECOND*9)*m; i++) { }
}
7fb1816d4This file is pinned to the selected release. Download the original to open it in your design tool.