diff options
author | Zach Eveland <zeveland@blacklabel-development.com> | 2012-01-10 15:51:44 -0500 |
---|---|---|
committer | Zach Eveland <zeveland@blacklabel-development.com> | 2012-01-10 15:51:44 -0500 |
commit | 94443a2a7700976c148843c2bb7d46e05744cff8 (patch) | |
tree | b622f43bdadd2ae07c0f4248ec12da7cb8da3d30 /bootloaders/diskloader/src/Platform.h | |
parent | dbec0f0058fdf33ef95b57f130c5ff8986f5c359 (diff) |
got rid of u8, u16, u32 typedefs in Diskloader
done to bring types in line with others in Arduino core
Diffstat (limited to 'bootloaders/diskloader/src/Platform.h')
-rw-r--r-- | bootloaders/diskloader/src/Platform.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/bootloaders/diskloader/src/Platform.h b/bootloaders/diskloader/src/Platform.h index 2e90334..57dc7d5 100644 --- a/bootloaders/diskloader/src/Platform.h +++ b/bootloaders/diskloader/src/Platform.h @@ -11,11 +11,6 @@ #include <stdlib.h> #include <string.h> -typedef unsigned char u8; -typedef unsigned short u16; -typedef unsigned long u32; - - #define CPU_PRESCALE(n) (CLKPR = 0x80, CLKPR = (n)) #define DISABLE_JTAG() MCUCR = (1 << JTD) | (1 << IVCE) | (0 << PUD); MCUCR = (1 << JTD) | (0 << IVSEL) | (0 << IVCE) | (0 << PUD); @@ -39,9 +34,9 @@ typedef unsigned long u32; #define TRANSFER_RELEASE 0x40 #define TRANSFER_ZERO 0x20 -void Transfer(u8 ep, const u8* data, int len); -void Recv(u8 ep, u8* dst, u8 len); -void Program(u8 ep, u16 page, u8 count); +void Transfer(uint8_t ep, const uint8_t* data, int len); +void Recv(uint8_t ep, uint8_t* dst, uint8_t len); +void Program(uint8_t ep, uint16_t page, uint8_t count); /* HID is not fully-supported in the bootloader - can be enabled for testing, but note the descriptor report and other parts are |