Skip to content

Commit

Permalink
more refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
carlossless committed Nov 12, 2023
1 parent 6839957 commit 1c4f350
Show file tree
Hide file tree
Showing 2 changed files with 261 additions and 232 deletions.
26 changes: 26 additions & 0 deletions src/sh68f90a.h
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,32 @@ enum sh68f90a_interrupt {
#define _ENUSB (1u<<7) ///< Bit 7
/**@}*/

/**
* \name Bits from register USBIF1
* @{
*/
#define _USBRSTIF (1u<<0) ///< Bit 0
#define _SUSPIF (1u<<1) ///< Bit 1
#define _RESMIF (1u<<2) ///< Bit 2
#define _SOFIF (1u<<3) ///< Bit 3
#define _SETUPIF (1u<<4) ///< Bit 4
#define _OW (1u<<5) ///< Bit 5
#define _OVERIF (1u<<6) ///< Bit 6
#define _PUPIF (1u<<7) ///< Bit 7
/**@}*/

/**
* \name Bits from register USBIF2
* @{
*/
#define _IEP0IF (1u<<0) ///< Bit 0
#define _IEP1IF (1u<<1) ///< Bit 1
#define _IEP2IF (1u<<2) ///< Bit 2
#define _OEP0IF (1u<<4) ///< Bit 4
#define _OEP1IF (1u<<5) ///< Bit 5
#define _OEP2IF (1u<<6) ///< Bit 6
/**@}*/

/**
* \name Bits from register USBIE1
* @{
Expand Down
Loading

0 comments on commit 1c4f350

Please sign in to comment.