Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: b4a8df1095
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.814 kb
#ifndef __AVR__
#define PROGMEM
#define memcpy_P memcpy
#define __LPM(x) *x
#define pgm_read_word(x) *x
#else
#include <avr/pgmspace.h>
#define USEPRECALC
#endif
#ifndef USEPRECALC
// malloc-ed by initframe, free manually
extern unsigned char *strinbuf; // string iput buffer
extern unsigned char *qrframe;
// setup the base frame structure - can be reused
void initframe(void);
// free the basic frame malloced structures
void freeframe(void);
// these resturn maximum string size to send in
unsigned initeccsize(unsigned char ecc, unsigned size);
unsigned initecc(unsigned char level,unsigned char version);
#else // precalc-ed arrays
extern unsigned char strinbuf[];
extern unsigned char qrframe[];
#endif
extern unsigned char WD, WDB;
#include "qrbits.h"
// strinbuf in, qrframe out
void qrencode(void);
Jump to Line
Something went wrong with that request. Please try again.