Microchip® Advanced Software Framework

pal.c File Reference
#include "pal.h"
#include "delay.h"
#include <string.h>
#include "port.h"

Functions

bool pal_calibrate_rc_osc (void)
 Calibrates the internal RC oscillator. More...
 
void pal_get_current_time (uint32_t *timer_count)
 Gets current time. More...
 
retval_t pal_init (void)
 Initialization of PAL. More...
 
bool pal_is_timer_running (uint8_t timer_id)
 Checks if the timer of requested timer identifier is running. More...
 
void pal_task (void)
 Services timer and sio handler. More...
 
retval_t pal_timer_get_id (uint8_t *timer_id)
 
void pal_timer_source_select (source_type_t source)
 Selects timer clock source. More...
 
retval_t pal_timer_start (uint8_t timer_id, uint32_t timer_count, timeout_type_t timeout_type, FUNC_PTR timer_cb, void *param_cb)
 Start regular timer. More...
 
retval_t pal_timer_stop (uint8_t timer_id)
 Stops a running timer. More...
 
void pal_trx_read_timestamp (uint32_t *timestamp)
 Provides timestamp of the last received frame. More...