LTlib LaurTec Library
4.0.3
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
|
#include <xc.h>
#include "LTlib.h"
#include "module_IO.h"
#include "module_IO.c"
#include "module_I2C.h"
#include "module_I2C.c"
#include "LTlib_delay.h"
#include "LTlib_delay.c"
#include "MCP7940.h"
#include "MCP7940.c"
#include "MCP2300x.h"
#include "MCP2300x.c"
#include "LCD_44780_I2C.h"
#include "LCD_44780_I2C.c"
Go to the source code of this file.
Macros | |
#define | BT1 0b11100000 |
#define | BT2 0b11010000 |
#define | BT3 0b10110000 |
#define | BT4 0b01110000 |
#define | BEEP IO_BIT0 |
#define | STATE_CHANGE_DONE 0x00 |
#define | STATE_CHANGE_MINUTES 0x01 |
#define | STATE_CHANGE_HOURS 0x02 |
#define | STATE_CHANGE_YEARS 0x03 |
#define | STATE_CHANGE_MONTHS 0x04 |
#define | STATE_CHANGE_DAYS 0x05 |
Functions | |
__interrupt (high_priority) | |
int | main (void) |
Variables | |
volatile unsigned char | clock_state = STATE_CHANGE_DONE |
__interrupt | ( | high_priority | ) |
Definition at line 48 of file main.c.
References BT1, BT2, BT3, BT4, clock_state, STATE_CHANGE_DAYS, STATE_CHANGE_HOURS, STATE_CHANGE_MINUTES, STATE_CHANGE_MONTHS, and STATE_CHANGE_YEARS.
int main | ( | void | ) |
Definition at line 87 of file main.c.
References clock_state, delay_ms(), IO_ALL_PORT_INPUT, IO_enable_pull_up_resistors(), IO_PORTB, IO_PORTC, IO_set_all_ports_as_inputs(), IO_set_port_direction(), IO_write_port(), LCD_backlight(), LCD_goto_line(), LCD_home(), LCD_initialize(), LCD_TURN_ON_LED, LCD_write_message(), LCD_write_string(), RTCC_get_date(), RTCC_get_time_seconds(), RTCC_increment_days(), RTCC_increment_hours(), RTCC_increment_minutes(), RTCC_increment_months(), RTCC_increment_years(), RTCC_initialize(), RTCC_set_days(), RTCC_set_hours(), RTCC_set_minutes(), RTCC_set_months(), RTCC_set_seconds(), RTCC_set_years(), STATE_CHANGE_DAYS, STATE_CHANGE_DONE, STATE_CHANGE_HOURS, STATE_CHANGE_MINUTES, STATE_CHANGE_MONTHS, and STATE_CHANGE_YEARS.
volatile unsigned char clock_state = STATE_CHANGE_DONE |