From 611eb120742d26af50ade7b0801af326e24b7bc6 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Wed, 12 Jun 2019 07:38:54 -0600 Subject: [PATCH] configs/makerlisp: Add Smart Flash Programmer project. Updae a README. --- configs/makerlisp/nsh/README.txt | 2 + configs/makerlisp/nsh/nsh.zfpproj | 314 ++++++++++++++++++++++++++++++ libs/libc/time/lib_gmtimer.c | 5 +- 3 files changed, 319 insertions(+), 2 deletions(-) create mode 100644 configs/makerlisp/nsh/nsh.zfpproj diff --git a/configs/makerlisp/nsh/README.txt b/configs/makerlisp/nsh/README.txt index 72e48fc2be..9b2f0809d7 100644 --- a/configs/makerlisp/nsh/README.txt +++ b/configs/makerlisp/nsh/README.txt @@ -3,3 +3,5 @@ README.txt nsh.zdsproj is a simple ZDS-II project that will allow you to use the ZDS-II debugger. +nsh.zfpproj is a simple project that will allow you to use the Smart Flash + Programming. diff --git a/configs/makerlisp/nsh/nsh.zfpproj b/configs/makerlisp/nsh/nsh.zfpproj new file mode 100644 index 0000000000..f28b7da62d --- /dev/null +++ b/configs/makerlisp/nsh/nsh.zfpproj @@ -0,0 +1,314 @@ + +eZ80F91 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/libs/libc/time/lib_gmtimer.c b/libs/libc/time/lib_gmtimer.c index 641a516752..6281d21325 100644 --- a/libs/libc/time/lib_gmtimer.c +++ b/libs/libc/time/lib_gmtimer.c @@ -217,8 +217,9 @@ static void clock_utc2calendar(time_t days, FAR int *year, FAR int *month, tmp = (leapyear ? 366 : 365); } - /* At this point, value has the year and days has number days into this - * year + /* At this point, 'value' has the years since 1970 and 'days' has number + * of days into that year. 'leapyear' is true if the year in 'value' is + * a leap year. */ *year = 1970 + value;