1
0
mirror of synced 2024-11-22 17:24:25 +01:00
avr_demo/tpic6b595_shiftout/shift/shift.h
2012-01-15 20:04:13 +02:00

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 */