From: asterix Date: Wed, 11 Jun 2008 17:19:00 +0000 (+0000) Subject: Reformat. X-Git-Tag: 2.0.0~484 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=cea014dab5c1bb6235dbe49ec768c1f238816811;p=bertos.git Reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1450 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/lcd_hd44.c b/bertos/drv/lcd_hd44.c index af834f6a..4f872473 100644 --- a/bertos/drv/lcd_hd44.c +++ b/bertos/drv/lcd_hd44.c @@ -33,6 +33,7 @@ * \brief LM044L type LCD hardware module (impl.) * * \version $Id$ + * * \author Bernardo Innocenti * \author Stefano Fedrigo */ diff --git a/bertos/drv/lcd_hd44.h b/bertos/drv/lcd_hd44.h index 04fccea6..347de140 100644 --- a/bertos/drv/lcd_hd44.h +++ b/bertos/drv/lcd_hd44.h @@ -33,6 +33,7 @@ * \brief Hitachi HD44780 and clones LCD module (interface) * * \version $Id$ + * * \author Bernardo Innocenti * \author Stefano Fedrigo */ diff --git a/bertos/drv/pwm.h b/bertos/drv/pwm.h index 8bc2bba4..f2c651b1 100644 --- a/bertos/drv/pwm.h +++ b/bertos/drv/pwm.h @@ -50,8 +50,8 @@ #include #define PWM_MAX_DUTY ((pwm_duty_t)0xFFFF) -#define PWM_MAX_PERIOD 0xFFFF -#define PWM_MAX_PERIOD_LOG2 16 +#define PWM_MAX_PERIOD 0xFFFF +#define PWM_MAX_PERIOD_LOG2 16 /** * PWM type define. diff --git a/bertos/fs/battfs.c b/bertos/fs/battfs.c index ff955df0..6df3d956 100644 --- a/bertos/fs/battfs.c +++ b/bertos/fs/battfs.c @@ -213,7 +213,7 @@ static void movePages(struct BattFsSuper *disk, pgcnt_t src, int offset) { pgcnt_t dst = src + offset; memmove(&disk->page_array[dst], &disk->page_array[src], (disk->page_count - MAX(dst, src)) * sizeof(pgcnt_t)); - + if (offset < 0) { /* Fill empty space in array with sentinel */