2012-06-20 13:45:04 +03:00
|
|
|
/*
|
|
|
|
* fw/image.h - Image data (upload and conversion)
|
|
|
|
*
|
|
|
|
* Written 2012 by Werner Almesberger
|
|
|
|
* Copyright 2012 Werner Almesberger
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef IMAGE_H
|
|
|
|
#define IMAGE_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
2012-06-27 08:30:39 +03:00
|
|
|
#include <avr/pgmspace.h>
|
|
|
|
|
|
|
|
#include "proto.h"
|
|
|
|
|
2012-06-20 13:45:04 +03:00
|
|
|
|
2012-06-24 03:57:18 +03:00
|
|
|
#define MAX_LINES 80
|
2012-06-20 13:45:04 +03:00
|
|
|
|
|
|
|
|
|
|
|
struct line {
|
|
|
|
uint8_t d; /* port D0-D7 */
|
|
|
|
uint8_t cb; /* port C0-C5, B6-B7 */
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2012-06-20 16:30:40 +03:00
|
|
|
extern const struct line *image;
|
2012-06-27 08:30:39 +03:00
|
|
|
extern const uint8_t image_secret[2*PAYLOAD] PROGMEM;
|
2012-06-20 13:45:04 +03:00
|
|
|
|
|
|
|
#endif /* !IMAGE_H */
|