diff options
Diffstat (limited to 'pyecsca/codegen/simpleserial/simpleserial.h')
| -rw-r--r-- | pyecsca/codegen/simpleserial/simpleserial.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
