Microchip® Advanced Software Framework

user_interface.c File Reference

LED, Button and terminal print functions - Performance Analyzer application.

Copyright (c) 2013-2018 Microchip Technology Inc. and its subsidiaries.

#include "tal.h"
#include "app_init.h"
#include <stdio.h>
#include <stdlib.h>

Macros

#define COUNT_FOR_VALID_KEY_PRESS   (20)
 This defines the count to detect a valid key press. More...
 
#define LED_ON_DURAION_MICRO_SEC   (100000)
 This defines the LED on duration. More...
 

Functions

bool button_pressed (void)
 Determine if button is pressed. More...
 
PRINT EVENTS
bool app_debounce_button (void)
 Button debounce routine. More...
 
void app_led_event (led_event_t ev)
 Turns LEDs on / off to indicate specific events. More...
 
void print_event (print_event_t ev)
 Print various messages from the table as per the event notified. More...
 

Variables

print_event_msg_t print_event_table [NUM_MAX_PRINT_EVENTS]
 This table holds the Messages to be printed on the UART Terminal at each event. More...