From 730fa3711922ac4b7c44d205929289ffff9a7aaf Mon Sep 17 00:00:00 2001 From: Aren Elchinyan Date: Thu, 14 Dec 2023 11:33:10 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A6=D0=B2=D0=B5=D1=82=D0=BD=D0=B0=D1=8F=20?= =?UTF-8?q?=D0=B0=D0=BD=D0=B8=D0=BC=D0=B0=D1=86=D0=B8=D1=8F=20=D0=B8=D0=BD?= =?UTF-8?q?=D0=B4=D0=B8=D0=BA=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BA=D0=BB=D1=8E=D1=87=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B4=D0=B0=D1=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vscode/settings.json | 4 +++- include/version.h | 2 +- kernel/arch/pit.c | 7 +++++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.vscode/settings.json b/.vscode/settings.json index dcae607..2d289b8 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -15,6 +15,8 @@ "fb.h": "c", "system.h": "c", "mod.h": "c", - "modstd.h": "c" + "modstd.h": "c", + "stdbool.h": "c", + "stdint.h": "c" } } \ No newline at end of file diff --git a/include/version.h b/include/version.h index 45a23bc..798291b 100644 --- a/include/version.h +++ b/include/version.h @@ -1,3 +1,3 @@ #define VERSION_MAJOR 0 #define VERSION_MINOR 1 -#define VERSION_BUILD 837 +#define VERSION_BUILD 840 diff --git a/kernel/arch/pit.c b/kernel/arch/pit.c index 8defc1c..547bca6 100644 --- a/kernel/arch/pit.c +++ b/kernel/arch/pit.c @@ -13,15 +13,18 @@ #include static volatile uint64_t count = 0; +static volatile uint64_t test_color = 0x00D000; extern uint32_t width; static volatile void isr_local( ) { + if (test_color >= 0xFFFFFF) { test_color = 0x00D000; } uint32_t last = fb_get_text_color( ); - fb_set_text_color(0x00FF00 + count); + fb_set_text_color(test_color); fb_printf_at(SCREEN_WIDTH - 6 * 7, 0, "БМПОС"); fb_set_text_color(last); count++; + test_color += 0x010101; } void pit_set_interval(int hz) { @@ -33,5 +36,5 @@ void pit_set_interval(int hz) { void pit_init( ) { idt_set_int(32, isr_local); - pit_set_interval(10000); + pit_set_interval(10); } \ No newline at end of file