Project

General

Profile

Revision 273

minor changes

View differences:

proj/include/hltp.h
1 1
#ifndef HLTP_H_INCLUDED
2 2
#define HLTP_H_INCLUDED
3 3

  
4
#include "nctp.h"
5

  
4 6
int hltp_send_string(int base_addr, const char *p);
5 7

  
6 8
int hltp_get_string(int base_addr, char **p);
proj/src/proj.c
13 13
#include "mouse.h"
14 14
#include "graph.h"
15 15
#include "rtc.h"
16
#include "hltp.h"
16 17
#include "interrupts_func.h"
17 18
#include "makecode_map.h"
18 19

  
......
31 32

  
32 33
#include "list.h"
33 34

  
34
#ifdef DIOGO
35
    #include "uart.h"
36
    #include "hltp.h"
37
#endif
38

  
39 35
int main(int argc, char* argv[]) {
40 36

  
41 37
    lcf_set_language("EN-US");
......
136 132
    message msg;
137 133
    int game_state = MENU;
138 134

  
139
    char buffer[1024]; // buffer
140
    int buffer_pos = 0;
135
    #ifdef DIOGO
136
        char buffer[1024]; // buffer
137
        int buffer_pos = 0;
138
    #endif
141 139

  
142 140
    #ifndef DIOGO
143 141
        int click = 0;
......
206 204
                                switch (game_state) {
207 205
                                case MENU:
208 206
                                    if ((scancode[0]) == ESC_BREAK_CODE) game_state = EXIT;
209

  
207
                                    #ifdef DIOGO
210 208
                                    else if ((scancode[0]) == ENTER_MAKE_CODE) {
211 209
                                        buffer[buffer_pos] = '\0';
212 210
                                        printf("\nSending string -%s-\n", buffer);
......
220 218
                                        buffer[buffer_pos++] = c;
221 219
                                        printf("%c", c);
222 220
                                    }
223

  
221
                                    #endif
224 222
                                    break;
225 223
                                case GAME:
226 224
                                    if ((scancode[0]) == ESC_BREAK_CODE) {

Also available in: Unified diff