X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Lib%2Fmk20dx.h;h=a8433636d3dd1922a86cd99cca47b9833d29e3c2;hb=8942ab63d50b578f39309b9d9c24d000c3698cec;hp=67c94c715b8374b67813318fb9842434ed7f7727;hpb=e41444304bad9c4654c1e11f3ea9f264efa5ebd4;p=kiibohd-controller.git diff --git a/Lib/mk20dx.h b/Lib/mk20dx.h index 67c94c7..a843363 100644 --- a/Lib/mk20dx.h +++ b/Lib/mk20dx.h @@ -1,7 +1,7 @@ /* Teensyduino Core Library * http://www.pjrc.com/teensy/ * Copyright (c) 2013 PJRC.COM, LLC. - * Modified by Jacob Alexander 2014 + * Modified by Jacob Alexander 2014-2015 * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the @@ -1343,6 +1343,10 @@ #define SPI_SR_TFFF (uint32_t)0x02000000 // Transmit FIFO Fill Flag #define SPI_SR_RFOF (uint32_t)0x00080000 // Receive FIFO Overflow Flag #define SPI_SR_RFDF (uint32_t)0x00020000 // Receive FIFO Drain Flag +#define SPI_SR_TXCTR (uint32_t)0x0000F000 // Transmit FIFO Counter +#define SPI_SR_TXNXTPTR (uint32_t)0x00000F00 // Transmit Next, Pointer +#define SPI_SR_RXCTR (uint32_t)0x000000F0 // Receive FIFO Counter +#define SPI_SR_POPNXTPTR (uint32_t)0x0000000F // Pop Next, Pointer #define SPI0_RSER *(volatile uint32_t *)0x4002C030 // DSPI DMA/Interrupt Request Select and Enable Register #define SPI_RSER_TCF_RE (uint32_t)0x80000000 // Transmission Complete Request Enable #define SPI_RSER_EOQF_RE (uint32_t)0x10000000 // DSPI Finished Request Request Enable