add missing include
This commit is contained in:
@@ -46,7 +46,7 @@ static inline uint16_t swpw(uint16_t w)
|
|||||||
static inline uint32_t swpl(uint32_t l)
|
static inline uint32_t swpl(uint32_t l)
|
||||||
{
|
{
|
||||||
return ((l & 0xff000000) >> 24) | ((l & 0x00ff0000) >> 8) |
|
return ((l & 0xff000000) >> 24) | ((l & 0x00ff0000) >> 8) |
|
||||||
((l & 0x0000ff00) << 8) | (l << 24);
|
((l & 0x0000ff00) << 8) | (l << 24);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -133,20 +133,8 @@ void atari_io_test(void)
|
|||||||
|
|
||||||
void do_tests(void)
|
void do_tests(void)
|
||||||
{
|
{
|
||||||
volatile unsigned long *t1 = (volatile unsigned long *) 0xf0000000;
|
atari_io_test();
|
||||||
volatile unsigned short *t2 = (volatile unsigned short *) 0xf0000000;
|
firebee_io_test();
|
||||||
volatile unsigned short *t3 = (volatile unsigned short *) 0xf0000002;
|
|
||||||
long value = 0;
|
|
||||||
|
|
||||||
while (1)
|
|
||||||
{
|
|
||||||
*t1 = value;
|
|
||||||
*t2 = (short) value;
|
|
||||||
*t3 = (short) (value >> 16);
|
|
||||||
xprintf("W: 0x%lx R: 0x%lx W: 0x%04x R: 0x%04x W: 0x%04x R: 0x%04x\r\n", value, *t1,
|
|
||||||
(unsigned short) value, *t2, (unsigned short)(value >> 16), *t3);
|
|
||||||
value++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "usb.h"
|
#include "usb.h"
|
||||||
|
#include "exceptions.h"
|
||||||
|
|
||||||
// #define DEBUG
|
// #define DEBUG
|
||||||
#include "debug.h"
|
#include "debug.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user