libpic170x  0.2
Ease of use library for PIC16(L)1705/1709 chips
Macros | Functions
main.c File Reference

Blinking LED example demonstrating the use of timer0 and the Pin IO library. More...

#include <stdbool.h>
#include <xc.h>
#include <libpic170x/freq.h>
#include <libpic170x/timer0.h>
#include <libpic170x/io_control.h>
Include dependency graph for main.c:

Go to the source code of this file.

Macros

#define _XTAL_FREQ   8000000
 Project is configured for 8 MHz operation.
 

Functions

void interrupt int_handler ()
 Interrupt handler for updating timer0. More...
 
int main ()
 Main entrypoint. More...
 

Detailed Description

Blinking LED example demonstrating the use of timer0 and the Pin IO library.

Check the examples page for details.

Definition in file main.c.

Function Documentation

◆ int_handler()

void interrupt int_handler ( )

Interrupt handler for updating timer0.

Interrupt handler for updating timer0.

Definition at line 66 of file main.c.

◆ main()

int main ( )

Main entrypoint.

The main implements a "blink" for an LED that is conencted to pin RC0. The connected LED will approximately blink once every second.

Definition at line 76 of file main.c.