41 #include <avr/interrupt.h>
42 #include <avr/sleep.h>
44 #include <util/delay.h>
75 set_sleep_mode(SLEEP_MODE_PWR_DOWN);
78 set_sleep_mode(SLEEP_MODE_PWR_SAVE);
81 TCCR2A = (1<<CS22)|(1<<CS21)|(1<<CS20);
93 EIMSK |= (1 << PCIE0);
95 PCMSK0 |= (1 << PCINT2);
98 while (ENTER_PORT & (1<<ENTER_PIN)) {
100 if (!howlong--)
break;
104 EIMSK &= ~(1 << PCIE0);
105 PCMSK0&= ~(1 <<PCINT2);
106 TIMSK2&= ~(1 << TOIE2);
This file provides joystick operations.
void sleep_now(int howlong)
Prepares for and executes sleep.
void sleep_wakeup(void)
This will send a wakeup command to ATmega1284p It may already be awake, if not it will respond during...
void uart_serial_send_frame(uint8_t cmd, uint8_t payload_length, uint8_t *payload)
This function builds and sends a binary command frame to the ATmega1284p.
int lcd_puts_P(const char *s)
This will put a string out to the LCD from Flash.
This controls the sleep operation for the LCD.
This file supports the timer functionality for the LCD.
void uart_serial_rcv_frame(uint8_t wait_for_ack)
This will receive a frame from the ATmega1284p and parse the incoming data.
Handles the control of the USART for communication with the ATmega1284p for sending commands...
This is the main file for the Raven LCD application.