1
0
mirror of git://projects.qi-hardware.com/ben-wpan.git synced 2025-04-21 12:27:27 +03:00

atusb/fw/: convert functions returning "int" to "bool"

Firmware size is down from 5612 to 3590 bytes. Wow !
This commit is contained in:
Werner Almesberger
2013-03-29 19:14:11 -03:00
parent c9ab070ffd
commit a8db238cbb
15 changed files with 74 additions and 61 deletions

View File

@@ -1,8 +1,8 @@
/*
* fw/flash.c - Board-specific flash functions
*
* Written 2011 by Werner Almesberger
* Copyright 2011 Werner Almesberger
* Written 2011, 2013 by Werner Almesberger
* Copyright 2011, 2013 Werner Almesberger
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -11,6 +11,7 @@
*/
#include <stdbool.h>
#include <stdint.h>
#include <avr/boot.h>
@@ -29,7 +30,7 @@ void flash_start(void)
}
int flash_can_write(uint16_t size)
bool flash_can_write(uint16_t size)
{
return payload+size <= BOOT_ADDR;
}