Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int get_wp( void )
- {
- //int rv = ( ( ( int )J2[40] ) == 1 );
- #if defined FAT_CONF_5270
- #ifdef SB70LC
- int rv=( sim.gpio.ppdsdr_timer & 0x80 );
- #elif SB700EX
- int rv = FALSE;
- #elif PK70
- int rv = ( sim.eport.eppdr & 0x10 );
- #else
- int rv = ( sim.gpio.ppdsdr_qspi & 0x10 );
- #endif
- #elif defined FAT_CONF_5282
- int rv = ( sim.gpio.portqsp & 0x10 );
- #elif defined FAT_CONF_5272
- int rv = ( sim.padat & 0x0800 );
- #endif
- return (rv!=0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement