98 while ((m=
micros()) - now < us);
static volatile uint64_t sysTickUptime
void delayMicroseconds(uint32_t us)
#define RCC_AHB1Periph_GPIOC
void NVIC_PriorityGroupConfig(uint32_t NVIC_PriorityGroup)
Configures the priority grouping: pre-emption priority and subpriority.
void RCC_APB1PeriphClockCmd(uint32_t RCC_APB1Periph, FunctionalState NewState)
Enables or disables the Low Speed APB (APB1) peripheral clock.
#define RCC_APB1Periph_TIM5
#define RCC_APB2Periph_USART1
#define RCC_APB1Periph_I2C1
#define RCC_APB2Periph_TIM9
__STATIC_INLINE void NVIC_SetPriority(IRQn_Type IRQn, uint32_t priority)
Set Interrupt Priority.
volatile uint32_t millis(void)
#define RCC_APB1Periph_TIM12
#define RCC_AHB1Periph_GPIOB
void RCC_AHB1PeriphClockCmd(uint32_t RCC_AHB1Periph, FunctionalState NewState)
Enables or disables the AHB1 peripheral clock.
void RCC_APB2PeriphClockCmd(uint32_t RCC_APB2Periph, FunctionalState NewState)
Enables or disables the High Speed APB (APB2) peripheral clock.
#define RCC_APB1Periph_TIM2
#define RCC_APB1Periph_SPI2
#define RCC_APB1Periph_USART3
#define RCC_APB2Periph_SPI1
#define RCC_APB2Periph_TIM1
#define RCC_APB2Periph_ADC1
#define RCC_AHB2Periph_OTG_FS
#define RCC_APB1Periph_TIM3
#define RCC_APB2Periph_SYSCFG
void RCC_AHB2PeriphClockCmd(uint32_t RCC_AHB2Periph, FunctionalState NewState)
Enables or disables the AHB2 peripheral clock.
#define RCC_AHB1Periph_DMA2
#define RCC_AHB1Periph_GPIOA
__STATIC_INLINE uint32_t SysTick_Config(uint32_t ticks)
System Tick Configuration.
#define RCC_AHB1Periph_DMA1
void SysTick_Handler(void)
#define RCC_AHB1Periph_GPIOD
#define RCC_APB1Periph_SPI3
volatile uint64_t micros(void)
#define NVIC_PriorityGroup_2
#define RCC_APB2Periph_TIM8
#define RCC_APB1Periph_I2C2