X-Git-Url: https://git.friedersdorff.com/?a=blobdiff_plain;f=ps2.c;h=8a05916210d77b4741c060c543a45fad75a102e2;hb=e65575d4a5f03a90adfa9850cb71a5d0448098cd;hp=99749cf6ba4fc1aac707fa81b791fd0b39192029;hpb=fb8d23c60c757d5d9c2270cb0123a53be2049a28;p=max%2Ftmk_keyboard.git diff --git a/ps2.c b/ps2.c index 99749cf6..8a059162 100644 --- a/ps2.c +++ b/ps2.c @@ -1,5 +1,5 @@ /* -Copyright (c) 2010,2011 Jun WAKO +Copyright 2010,2011 Jun WAKO This software is licensed with a Modified BSD License. All of this is supposed to be Free Software, Open Source, DFSG-free, @@ -34,6 +34,7 @@ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ + #include #include #include @@ -227,8 +228,13 @@ uint8_t ps2_host_recv(void) return pbuf_dequeue(); } +#if 0 #define DEBUGP_INIT() do { DDRC = 0xFF; } while (0) #define DEBUGP(x) do { PORTC = x; } while (0) +#else +#define DEBUGP_INIT() +#define DEBUGP(x) +#endif ISR(PS2_INT_VECT) { static enum {