31 lines
570 B
C
31 lines
570 B
C
/*
|
|
* shift.h
|
|
*
|
|
* Copyright 2011-2012 Mika Tuupola
|
|
*
|
|
* Licensed under the MIT license:
|
|
* http://www.opensource.org/licenses/mit-license.php
|
|
*
|
|
*/
|
|
#ifndef SHIFT_H
|
|
#define SHIFT_H
|
|
|
|
/* Configure ports here. */
|
|
#define SHIFT_IN_LATCH B0
|
|
#define SHIFT_IN_DATA B2
|
|
#define SHIFT_IN_CLOCK B1
|
|
|
|
#define SHIFT_OUT_LATCH B0
|
|
#define SHIFT_OUT_DATA B3
|
|
#define SHIFT_OUT_CLOCK B1
|
|
|
|
uint8_t shift_in(void);
|
|
void shift_in_latch(void);
|
|
void shift_in_init(void);
|
|
void shift_out(uint8_t data);
|
|
void shift_out_latch(void);
|
|
void shift_out_init(void);
|
|
|
|
#endif /* SHIFT_H */
|
|
|