From f78ff987ac2df62dbd8326ce33ae61c97673710e Mon Sep 17 00:00:00 2001 From: J08nY Date: Wed, 26 Feb 2020 14:28:52 +0100 Subject: Get stuff to work on STM32F0. --- pyecsca/codegen/simpleserial/simpleserial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyecsca/codegen/simpleserial/simpleserial.h') diff --git a/pyecsca/codegen/simpleserial/simpleserial.h b/pyecsca/codegen/simpleserial/simpleserial.h index a5dff81..224cc3b 100644 --- a/pyecsca/codegen/simpleserial/simpleserial.h +++ b/pyecsca/codegen/simpleserial/simpleserial.h @@ -27,7 +27,7 @@ void simpleserial_init(void); // - Returns 1 if either of these fail; otherwise 0 // - The callback function returns a number in [0x00, 0xFF] as a status code; // in protocol v1.1, this status code is returned through a "z" message -int simpleserial_addcmd(char c, unsigned int len, uint8_t (*fp)(uint8_t*, uint16_t)); +int simpleserial_addcmd(char c, uint32_t len, uint8_t (*fp)(uint8_t*, uint16_t)); // Attempt to process a command // If a full string is found, the relevant callback function is called @@ -40,6 +40,6 @@ int simpleserial_get(void); // Write some data to the serial port // Prepends the character c to the start of the line // Example: simpleserial_put('r', 16, ciphertext) -void simpleserial_put(char c, int size, uint8_t* output); +void simpleserial_put(char c, uint32_t size, uint8_t* output); #endif // SIMPLESERIAL_H -- cgit v1.3.1