From 983595d22cf31a3002ed69d9c843922064f4cc4d Mon Sep 17 00:00:00 2001 From: henryk Date: Mon, 19 Nov 2007 04:33:06 +0000 Subject: Move some definitions to header file git-svn-id: https://svn.openpcd.org:2342/trunk@333 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/ssc_picc.c | 9 --------- openpicc/application/ssc_picc.h | 11 +++++++++++ 2 files changed, 11 insertions(+), 9 deletions(-) (limited to 'openpicc/application') diff --git a/openpicc/application/ssc_picc.c b/openpicc/application/ssc_picc.c index 9818296..f1eeef4 100644 --- a/openpicc/application/ssc_picc.c +++ b/openpicc/application/ssc_picc.c @@ -50,15 +50,6 @@ static const AT91PS_SSC ssc = AT91C_BASE_SSC; static AT91PS_PDC rx_pdc; -enum ssc_mode { - SSC_MODE_NONE, - SSC_MODE_14443A_SHORT, - SSC_MODE_14443A_STANDARD, - SSC_MODE_14443B, - SSC_MODE_EDGE_ONE_SHOT, - SSC_MODE_CONTINUOUS, -}; - struct ssc_state { struct req_ctx *rx_ctx[2]; enum ssc_mode mode; diff --git a/openpicc/application/ssc_picc.h b/openpicc/application/ssc_picc.h index a9c87b7..0ba15d0 100644 --- a/openpicc/application/ssc_picc.h +++ b/openpicc/application/ssc_picc.h @@ -12,4 +12,15 @@ extern void ssc_fini(void); extern void ssc_rx_stop(void); extern void ssc_rx_unthrottle(void); +enum ssc_mode { + SSC_MODE_NONE, + SSC_MODE_14443A_SHORT, + SSC_MODE_14443A_STANDARD, + SSC_MODE_14443B, + SSC_MODE_EDGE_ONE_SHOT, + SSC_MODE_CONTINUOUS, +}; + +extern void ssc_rx_mode_set(enum ssc_mode ssc_mode); + #endif -- cgit v1.2.3