Diff
Not logged in

Differences From Artifact [239b5e5bc0]:

To Artifact [2822e6d241]:


26
27
28
29
30
31
32

33
34
35
36
37
38
39
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40







+







#include <uart.h>
#include <stimer.h>
#include <gpio.h>
#include "version.h"
#include "gs/gs.h"
#include "irqp.h"
#include "command.h"
#include "sdcard.h"

/*
 *
 */
int main(void)
{
    __enable_irq();
48
49
50
51
52
53
54





55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69

70
71
72
73
74







+
+
+
+
+









-





    dprint("sn",  "=");
    dprint("sn",  "= v"VERSION_STRING", "__DATE__" "__TIME__);
    dprint("sn",  "=================================");

    gs_init();
    command_init();

    if (sdcard_init() < 0)
    {
        debug_emsg("SD init error");
    }

#if 1
    gs_text_put(gs_get_layer(GS_LAYER_BACK_BUFFER), "LCD Controller, sw. version " VERSION_STRING,
            10, 10, 0, GS_COLOR_YELLOW, GS_DEFAULT_COLOR, (struct gs_font_t*)gs_data_font_ter32b);
    gs_cmd_flip();
#endif

    while (1)
    {
        command_process();

    }

    return 0;
}