Browse Source

Updates

git-svn-id: https://bucket.mit.edu/svn/nilm/zoom@5374 ddd99763-3ecb-0310-9145-efcb8ce7c51f
tags/zoom-1.0
jim 16 years ago
parent
commit
a1afdee08a
3 changed files with 20 additions and 6 deletions
  1. +2
    -1
      firmware/uart.c
  2. +10
    -1
      firmware/zoom.c
  3. +8
    -4
      firmware/zoom.mcp

+ 2
- 1
firmware/uart.c View File

@@ -1,5 +1,6 @@
#include "config.h"
#include "uart.h"
#include "util.h"

void uart_init(int uart)
{
@@ -75,7 +76,7 @@ void uart_put_bin(int uart, uint8_t x)
}
}

void uart1_put_hex(int uart, uint8_t x)
void uart_put_hex(int uart, uint8_t x)
{
uart_put(uart, hex[x >> 4]);
uart_put(uart, hex[x & 15]);


+ 10
- 1
firmware/zoom.c View File

@@ -1,8 +1,17 @@
#include "config.h"
#include "uart.h"
#include <stdio.h>


int main(void)
{
config_init();

uart1_set_rate(115200);
uart1_init();
while(1) {
uart1_put_string("--> ");
printf("hello, world\r\n");
}
return 0;
}

+ 8
- 4
firmware/zoom.mcp View File

@@ -23,20 +23,24 @@ file_002=no
file_003=no
file_004=no
file_005=no
file_006=no
file_007=no
[FILE_INFO]
file_000=zoom.c
file_001=config.c
file_002=uart.c
file_003=config.h
file_004=uart.h
file_005=p33fj256gp710.gld
file_003=util.c
file_004=config.h
file_005=uart.h
file_006=util.h
file_007=p33fj256gp710.gld
[SUITE_INFO]
suite_guid={479DDE59-4D56-455E-855E-FFF59A3DB57E}
suite_state=
[TOOL_SETTINGS]
TS{7D9C6ECE-785D-44CB-BA22-17BF2E119622}=-g
TS{25AC22BD-2378-4FDB-BFB6-7345A15512D3}=-g -Wall
TS{7DAC9A1D-4C45-45D6-B25A-D117C74E8F5A}=-Map="$(BINDIR_)$(TARGETBASE).map" --report-mem -o"$(BINDIR_)$(TARGETBASE).$(TARGETSUFFIX)"
TS{7DAC9A1D-4C45-45D6-B25A-D117C74E8F5A}=--heap=1024 -Map="$(BINDIR_)$(TARGETBASE).map" --report-mem -o"$(BINDIR_)$(TARGETBASE).$(TARGETSUFFIX)"
TS{509E5861-1E2A-483B-8B6B-CA8DB7F2DD78}=
[INSTRUMENTED_TRACE]
enable=0


Loading…
Cancel
Save