This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this is a very basic mutex implementation | |
// its aim is to try to acquire access to a critical section or fail. | |
// there is no spinlock or event-waiting going on. | |
// in case it fails to acquire the lock, it simply returns false. | |
// | |
// | |
// relevant read: | |
// | |
// Synchronization primitives | |
// http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0552a/BABHCIHB.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (C) 2013 Ian McMahon <[email protected]> | |
* | |
* Virtual cape enabling SPIDEV on SPI0 on connector pins P9.22 P9.21 P9.18 P9.17 | |
* | |
* This program is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License version 2 as | |
* published by the Free Software Foundation. | |
*/ | |
/dts-v1/; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[0-9a-zA-Z]{2} | |
30-39,41-5a,61-7a | |
a:61 z:7a A:41 Z:5a 0:30 9:39 | |
MSP430 alphanumeric shellcode is hard. There's no way to write to memory, | |
no word-sized reg-reg operations, and all we have is add/sub/mov and a few conditional jumps. | |