utilities.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "FreeRTOS.h"
#include "task.h"
#include "utilities.h"
#include "LPC17xx.h"
#include "sys_config.h"
#include "lpc_sys.h"
#include "rtc.h"
#include "ff.h"
#include "fault_registers.h"
Include dependency graph for utilities.c:

Functions | |
void | delay_us (unsigned int microsec) |
void | delay_ms (unsigned int millisec) |
char | is_freertos_running () |
Function Documentation
void delay_ms | ( | unsigned int | milli_sec | ) |
Delays in milliseconds
- Parameters
-
milli_sec The delay in milliseconds.
If FreeRTOS is running, we should sleep the calling task instead of polling using the full CPU.
void delay_us | ( | unsigned int | micro_sec | ) |
Delays in microseconds
- Parameters
-
micro_sec The delay in microseconds
char is_freertos_running | ( | ) |
- Returns
- non-zero result if FreeRTOS is running