/*
-Copyright (c) 2010 Jun WAKO <wakojun@gmail.com>
+Copyright 2010,2011 Jun WAKO <wakojun@gmail.com>
This software is licensed with a Modified BSD License.
All of this is supposed to be Free Software, Open Source, DFSG-free,
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
*/
+
#ifndef PS2_H
#define PS2_H
/*
# error "PS/2 data port setting is required in config.h"
#endif
+#define PS2_ACK 0xFA
+#define PS2_RESEND 0xFE
+#define PS2_SET_LED 0xED
+
#define PS2_ERR_NONE 0
#define PS2_ERR_PARITY 0x10
extern uint8_t ps2_error;
-/* host side */
+/* host role */
void ps2_host_init(void);
-uint8_t ps2_host_send(uint8_t);
+uint8_t ps2_host_send(uint8_t data);
+uint8_t ps2_host_recv_response(void);
uint8_t ps2_host_recv(void);
+void ps2_host_set_led(uint8_t usb_led);
-/* TODO: device side */
+/* device role */
#endif