Add in new architecture attribute defines to selectively remove the EEPROM and FLASH...
[pub/USBasp.git] / LUFA / Drivers / USB / Core / PipeStream.h
index c579631..c914fc1 100644 (file)
                        /** \name Stream functions for EEPROM source/destination data */\r
                        //@{\r
                        \r
+                       #if defined(ARCH_HAS_EEPROM_ADDRESS_SPACE) || defined(__DOXYGEN__)\r
                        /** EEPROM buffer source version of \ref Pipe_Write_Stream_LE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        \r
                        /** EEPROM buffer source version of \ref Pipe_Write_Stream_BE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
 \r
                        /** EEPROM buffer source version of \ref Pipe_Read_Stream_LE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[out] Buffer          Pointer to the source data buffer to write to.\r
                         *  \param[in]  Length          Number of bytes to read for the currently selected pipe to read from.\r
                         *  \param[in]  BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        \r
                        /** EEPROM buffer source version of \ref Pipe_Read_Stream_BE().\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[out] Buffer          Pointer to the source data buffer to write to.\r
                         *  \param[in]  Length          Number of bytes to read for the currently selected pipe to read from.\r
                         *  \param[in]  BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        uint8_t Pipe_Read_EStream_BE(void* const Buffer,\r
                                                     uint16_t Length,\r
                                                     uint16_t* const BytesProcessed) ATTR_NON_NULL_PTR_ARG(1);\r
+                       #endif\r
                        //@}\r
 \r
                        /** \name Stream functions for PROGMEM source/destination data */\r
                        //@{\r
                        \r
+                       #if defined(ARCH_HAS_FLASH_ADDRESS_SPACE) || defined(__DOXYGEN__)\r
                        /** FLASH buffer source version of \ref Pipe_Write_Stream_LE().\r
                         *\r
                         *  \pre The FLASH data must be located in the first 64KB of FLASH for this function to work correctly.\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                         *\r
                         *  \pre The FLASH data must be located in the first 64KB of FLASH for this function to work correctly.\r
                         *\r
+                        *  \note This function is not available on all architectures.\r
+                        *\r
                         *  \param[in] Buffer          Pointer to the source data buffer to read from.\r
                         *  \param[in] Length          Number of bytes to read for the currently selected pipe into the buffer.\r
                         *  \param[in] BytesProcessed  Pointer to a location where the total number of bytes already processed should\r
                        uint8_t Pipe_Write_PStream_BE(const void* const Buffer,\r
                                                      uint16_t Length,\r
                                                      uint16_t* const BytesProcessed) ATTR_NON_NULL_PTR_ARG(1);\r
+                       #endif\r
                        //@}\r
 \r
        /* Disable C linkage for C++ Compilers: */\r