USBB low-level driver module.
- Warning
- Bit-masks are used instead of bit-fields because PB registers require 32-bit write accesses while AVR32-GCC 4.0.2 builds 8-bit accesses even when volatile unsigned int bit-fields are specified.
#define MAX_PEP_NB AVR32_USBB_EPT_NUM |
Maximal number of USBB pipes/endpoints.
This is the same value as the one produced by Usb_get_pipe_endpoint_max_nbr(). As it is constant and known for a given target, there is no need to decrease performance and to complexify program structure by using a value in memory. The use of MAX_PEP_NB is hence preferred here to the use of a variable initialized from Usb_get_pipe_endpoint_max_nbr().
Referenced by usb_general_interrupt().
#define Pep_fifo_access_16_post_inc |
( |
| ) |
++ |
#define Pep_fifo_access_32_post_inc |
( |
| ) |
|
#define Pep_fifo_access_64_post_inc |
( |
| ) |
|
Post-increment operations associated with 64-, 32-, 16- and 8-bit accesses to the FIFO data registers of pipes/endpoints.
- Note
- 64- and 32-bit accesses to FIFO data registers do not require pointer post-increment while 16- and 8-bit ones do.
-
Only for internal use.
#define Pep_fifo_access_8_post_inc |
( |
| ) |
++ |