PHiLIP
|
For common application functions. More...
Go to the source code of this file.
Macros | |
#define | DIS_INT __disable_irq(); |
Disables interrupts. | |
#define | EN_INT __enable_irq(); |
Enables interrupts. | |
#define | SOFT_RESET soft_reset() |
Resets device. More... | |
#define | TICK_BIT_OFFSET 16 |
Bit shifting ticks. | |
Functions | |
void | delay_us (uint16_t micros) |
Imprecise blocking delay in microseconds. More... | |
void | copy_until_same (void *dest, void *src, size_t size) |
Copies and compares data until copied data matches. More... | |
void | soft_reset () |
Wrapper function to provide software reset. | |
uint64_t | get_tick () |
Gets tick value in amount to system tick (72 MHz). | |
uint32_t | get_tick32 () |
Gets tick value in amount to system tick (72 MHz) in 32bit. | |
uint32_t | get_tick32_div (uint8_t div) |
Gets 32 bit tick shifted down by an amount. More... | |
For common application functions.
Deals with simple delays and interrupt control, mostly wrappers around hardware specific functions.