Subversion Repositories svn.mios32

Rev

Rev 1935 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1935 Rev 2578
Line 1... Line 1...
1
// $Id: mios32_board.c 1935 2014-01-18 12:39:23Z tk $
1
// $Id: mios32_board.c 2578 2018-05-07 18:57:43Z tk $
2
//! \defgroup MIOS32_BOARD
2
//! \defgroup MIOS32_BOARD
3
//!
3
//!
4
//! Development Board specific functions for MIOS32
4
//! Development Board specific functions for MIOS32
5
//!
5
//!
6
//! \{
6
//! \{
Line 459... Line 459...
459
459
460
  u32 p0 = LPC_GPIO0->FIOPIN;
460
  u32 p0 = LPC_GPIO0->FIOPIN;
461
  u32 p1 = LPC_GPIO1->FIOPIN;
461
  u32 p1 = LPC_GPIO1->FIOPIN;
462
  return
462
  return
463
    (((p0 >> (23-0)) & 0x000f) |
463
    (((p0 >> (23-0)) & 0x000f) |
464
     ((p0 >> (30-4)) & 0x0030) |
464
     ((p1 >> (30-4)) & 0x0030) |
465
     ((p1 << (6-3))  & 0x0040) |
465
     ((p0 << (6-3))  & 0x0040) |
466
     ((p1 << (7-2))  & 0x0080));
466
     ((p0 << (7-2))  & 0x0080));
467
# else
467
# else
468
# warning "Not prepared for this MIOS32_BOARD"
468
# warning "Not prepared for this MIOS32_BOARD"
469
  return -2; // board not supported
469
  return -2; // board not supported
470
# endif
470
# endif
471
#endif
471
#endif