Skip to content

Commit

Permalink
upload source code
Browse files Browse the repository at this point in the history
  • Loading branch information
ugers committed Apr 7, 2020
1 parent 0e8d412 commit 5af6d59
Show file tree
Hide file tree
Showing 10 changed files with 1,095 additions and 597 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Graphik_work
Graphik_work application for BipOS

More information about BipOS at https://myamazfit.ru/threads/bip-application-develop-for-bipos-sdk-en.1171/
Binary file added ResPack.exe
Binary file not shown.
17 changes: 15 additions & 2 deletions build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -50,20 +50,33 @@ SET LABEL = %PROGRAM_NAME%
@call :echoColor 0B "ˆâ®£®: "
@call :echoColor 0E "%n%" 1

@call :echoColor 0B "‘¡®àª ..."
@call :echoColor 0B "‘¡®àª :"
@call :echoColor 07 " ...ᮧ¤ ­¨¥ elf ä ©« " 1
%LD% -Map %PARTNAME%.map -o %PROGRAM_NAME%.elf %FILES_TO_COMPILE% %LD_OPT% %LIB_BIP%
@if errorlevel 1 goto :error

if exist label.txt (
@call :echoColor 07 " ...­ §¢ ­¨¥" 1
%OBJCOPY% %PROGRAM_NAME%.elf --add-section .elf.label=label.txt
)

@call :EchoN "%PROGRAM_NAME%" > name.txt
@call :echoColor 07 " ...elf_name" 1
%OBJCOPY% %PROGRAM_NAME%.elf --add-section .elf.name=name.txt
if exist name.txt del name.txt
@if errorlevel 1 goto :error

@call :echoColor 0A "OK" 1
if exist asset.res (
@call :echoColor 07 " ...à¥áãàáë" 1
%OBJCOPY% %PROGRAM_NAME%.elf --add-section .elf.resources=asset.res
)
if exist settings.bin (
@call :echoColor 07 " ...­ áâனª¨" 1
%OBJCOPY% %PROGRAM_NAME%.elf --add-section .elf.settings=settings.bin
)


@call :echoColor 0A "...OK" 1
@call :echoColor 0B "‘¡®àª  ®ª®­ç¥­ ." 1

:done_
Expand Down
2 changes: 2 additions & 0 deletions build_res.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@echo off
ResPack.exe -a MNVolkov_BipOS_0.5.2_Apps_Mili_chaohu.res.latin ./stock/MNVolkov_BipOS_0.5.2_Apps_Mili_chaohu.res.latin Graphik_work.elf
583 changes: 0 additions & 583 deletions calend.c

This file was deleted.

1,058 changes: 1,058 additions & 0 deletions graph_work.c

Large diffs are not rendered by default.

21 changes: 10 additions & 11 deletions calend.h → graph_work.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,14 @@
#define CALEND_COLOR_CUR_HOLY_FG 12 // цвет чисел текущего месяца выходные
#define CALEND_COLOR_TODAY_BG 13 // цвет чисел текущего дня
#define CALEND_COLOR_TODAY_FG 14 // фон чисел текущего дня
#define CALEND_COLOR_WORKDAY_BG 15 // цвет чисел рабочего дня
#define CALEND_COLOR_WORKDAY_FG 16 // фон чисел рабочего дня

// количество цыетовых схем
#define COLOR_SCHEME_COUNT 5

// адрес флэшпамяти для хранения настроек
#define OPTIONS_FLASH_ADDRESS 0x007810B0
// длина буфера в байтах
#define OPTIONS_FLASH_LIMIT 80
// смещение адреса для хранения настроек календаря
#define OPTIONS_OFFSET_CALEND 0
#define OPT_OFFSET_CALEND_OPT 0

#if FW_VERSION==latin_1_1_5_12 || FW_VERSION==latin_1_1_5_36
// параметры рисования цифр календаря
Expand Down Expand Up @@ -74,12 +72,13 @@ struct calend_opt_ {

// текущие данные просматриваемого/редактируемого календаря
struct calend_ {
void* ret_f; // адрес функции возврата
unsigned char color_scheme; // цветовая схема
// отображаемый месяц
unsigned int day; // день
unsigned int month; // месяц
unsigned int year; // год
Elf_proc_* proc; // указатель на данные запущенного процесса
void* ret_f; // адрес функции возврата
unsigned char color_scheme; // цветовая схема
// отображаемый месяц
unsigned int day; // день
unsigned int month; // месяц
unsigned int year; // год
};


Expand Down
7 changes: 6 additions & 1 deletion label.txt
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
Календарь
Timetable
RU График Работы
IT Orario di lavoro
ES Horario de trabajo
FR Horaire de travail
DE Zeitplan
Binary file added settings.bin
Binary file not shown.
Binary file not shown.

0 comments on commit 5af6d59

Please sign in to comment.