Midnight Sun Firmware
Loading...
Searching...
No Matches
delay.h
1#pragma once
2
3/************************************************************************************************
4 * @file delay.h
5 *
6 * @brief Header file for the delay library
7 *
8 * @date 2024-10-30
9 * @author Midnight Sun Team #24 - MSXVI
10 ************************************************************************************************/
11
12/* Standard library Headers */
13#include <stdint.h>
14
15/* Inter-component Headers */
16
17/* Intra-component Headers */
18
29void delay_ms(uint32_t time_ms);
30
35void non_blocking_delay_ms(uint32_t time_ms);
36
41#define delay_s(time) delay_ms((time)*1000)
42
void non_blocking_delay_ms(uint32_t time_ms)
Non-blocking delay for some amount of time in milliseconds.
Definition: delay.c:27
void delay_ms(uint32_t time_ms)
Blocking delay for some amount of time in milliseconds.
Definition: delay.c:20