mirror of
https://github.com/Proxmark/proxmark3.git
synced 2025-08-14 02:26:59 -07:00
Clean up data types, some header cleanup, etc.
This commit is contained in:
parent
8419248d2d
commit
f7e3ed8287
17 changed files with 410 additions and 398 deletions
|
@ -69,11 +69,11 @@ static void Fatal(void)
|
|||
for(;;);
|
||||
}
|
||||
|
||||
void UsbPacketReceived(BYTE *packet, int len)
|
||||
void UsbPacketReceived(uint8_t *packet, int len)
|
||||
{
|
||||
int i, dont_ack=0;
|
||||
UsbCommand *c = (UsbCommand *)packet;
|
||||
volatile DWORD *p;
|
||||
volatile uint32_t *p;
|
||||
|
||||
if(len != sizeof(*c)) {
|
||||
Fatal();
|
||||
|
@ -93,14 +93,14 @@ void UsbPacketReceived(BYTE *packet, int len)
|
|||
/* The temporary write buffer of the embedded flash controller is mapped to the
|
||||
* whole memory region, only the last 8 bits are decoded.
|
||||
*/
|
||||
p = (volatile DWORD *)&_flash_start;
|
||||
p = (volatile uint32_t *)&_flash_start;
|
||||
for(i = 0; i < 12; i++) {
|
||||
p[i+c->arg[0]] = c->d.asDwords[i];
|
||||
}
|
||||
break;
|
||||
|
||||
case CMD_FINISH_WRITE:
|
||||
p = (volatile DWORD *)&_flash_start;
|
||||
p = (volatile uint32_t *)&_flash_start;
|
||||
for(i = 0; i < 4; i++) {
|
||||
p[i+60] = c->d.asDwords[i];
|
||||
}
|
||||
|
|
|
@ -5,9 +5,9 @@ void __attribute__((section(".bootphase1"))) CopyBootToRAM(void)
|
|||
{
|
||||
int i;
|
||||
|
||||
volatile DWORD *s = (volatile DWORD *)&__bootphase2_src_start__;
|
||||
volatile DWORD *d = (volatile DWORD *)&__bootphase2_start__;
|
||||
volatile uint32_t *s = (volatile uint32_t *)&__bootphase2_src_start__;
|
||||
volatile uint32_t *d = (volatile uint32_t *)&__bootphase2_start__;
|
||||
unsigned int l = (int)&__bootphase2_end__ - (int)&__bootphase2_start__;
|
||||
|
||||
for(i = 0; i < l/sizeof(DWORD); i++) *d++ = *s++;
|
||||
for(i = 0; i < l/sizeof(uint32_t); i++) *d++ = *s++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue