From 751c29384cf680128ae7a3194f42a1b9d7ea4937 Mon Sep 17 00:00:00 2001 From: Kevin Townsend Date: Fri, 23 Mar 2012 18:26:55 +0100 Subject: [PATCH] Prep for v1.0.0 --- .../LPC1343 Workspace.workspace.session | 8 +++---- build/crossworks/LPC1343_CodeBase.hzp | 7 +----- build/crossworks/LPC1343_CodeBase.hzs | 17 ++++++-------- main.c | 22 +------------------ projectconfig.h | 7 ++++++ 5 files changed, 20 insertions(+), 41 deletions(-) diff --git a/build/codelite/LPC1343 Workspace.workspace.session b/build/codelite/LPC1343 Workspace.workspace.session index 22197ed..81974c2 100644 --- a/build/codelite/LPC1343 Workspace.workspace.session +++ b/build/codelite/LPC1343 Workspace.workspace.session @@ -5,8 +5,8 @@ - - + + @@ -17,8 +17,8 @@ - - + + diff --git a/build/crossworks/LPC1343_CodeBase.hzp b/build/crossworks/LPC1343_CodeBase.hzp index b44c622..cf2a5fd 100644 --- a/build/crossworks/LPC1343_CodeBase.hzp +++ b/build/crossworks/LPC1343_CodeBase.hzp @@ -114,11 +114,6 @@ - - - - - @@ -348,7 +343,7 @@ - + diff --git a/build/crossworks/LPC1343_CodeBase.hzs b/build/crossworks/LPC1343_CodeBase.hzs index 6e8f274..8676df3 100644 --- a/build/crossworks/LPC1343_CodeBase.hzs +++ b/build/crossworks/LPC1343_CodeBase.hzs @@ -25,12 +25,7 @@ - - - - - - + @@ -50,10 +45,10 @@ - - - + + + @@ -65,6 +60,8 @@ - + + + diff --git a/main.c b/main.c index 132f1fe..b4e63e7 100644 --- a/main.c +++ b/main.c @@ -7,7 +7,7 @@ Software License Agreement (BSD License) - Copyright (c) 2011, microBuilder SARL + Copyright (c) 2012, microBuilder SARL All rights reserved. Redistribution and use in source and binary forms, with or without @@ -43,8 +43,6 @@ #include "core/gpio/gpio.h" #include "core/systick/systick.h" -#include "drivers/displays/segment/as1115/as1115.h" - #ifdef CFG_INTERFACE #include "core/cmd/cmd.h" #endif @@ -63,24 +61,6 @@ int main(void) uint32_t currentSecond, lastSecond; currentSecond = lastSecond = 0; - // lcdTest(); - - - // as1115Test(); - - uint8_t displaybuffer[8]; - - displaybuffer[0] = 0x01 | 0x80; - displaybuffer[1] = 0x02 | 0x40; - displaybuffer[2] = 0x04 | 0x20; - displaybuffer[3] = 0x08 | 0x10; - displaybuffer[4] = 0x10 | 0x08, - displaybuffer[5] = 0x20 | 0x04; - displaybuffer[6] = 0x40 | 0X02; - displaybuffer[7] = 0x80 | 0X01; - - as1115WriteBuffer(displaybuffer); - while (1) { // Toggle LED once per second diff --git a/projectconfig.h b/projectconfig.h index ad7ad82..5b6c7ad 100644 --- a/projectconfig.h +++ b/projectconfig.h @@ -624,6 +624,7 @@ PRINTF REDIRECTION ----------------------------------------------------------------------- + CFG_PRINTF_MAXSTRINGSIZE Maximum size of string buffer for printf CFG_PRINTF_UART Will cause all printf statements to be redirected to UART CFG_PRINTF_USBCDC Will cause all printf statements to be @@ -635,36 +636,42 @@ output will be ignored. -----------------------------------------------------------------------*/ #ifdef CFG_BRD_LPC1343_REFDESIGN + #define CFG_PRINTF_MAXSTRINGSIZE (255) // #define CFG_PRINTF_UART #define CFG_PRINTF_USBCDC #define CFG_PRINTF_NEWLINE "\r\n" #endif #ifdef CFG_BRD_LPC1343_REFDESIGN_MINIMAL + #define CFG_PRINTF_MAXSTRINGSIZE (255) #define CFG_PRINTF_UART // #define CFG_PRINTF_USBCDC #define CFG_PRINTF_NEWLINE "\r\n" #endif #ifdef CFG_BRD_LPC1343_TFTLCDSTANDALONE_USB + #define CFG_PRINTF_MAXSTRINGSIZE (255) // #define CFG_PRINTF_UART #define CFG_PRINTF_USBCDC #define CFG_PRINTF_NEWLINE "\r\n" #endif #ifdef CFG_BRD_LPC1343_TFTLCDSTANDALONE_UART + #define CFG_PRINTF_MAXSTRINGSIZE (255) #define CFG_PRINTF_UART // #define CFG_PRINTF_USBCDC #define CFG_PRINTF_NEWLINE "\n" #endif #ifdef CFG_BRD_LPC1343_802154USBSTICK + #define CFG_PRINTF_MAXSTRINGSIZE (255) // #define CFG_PRINTF_UART #define CFG_PRINTF_USBCDC #define CFG_PRINTF_NEWLINE "\r\n" #endif #ifdef CFG_BRD_LPC1343_OLIMEX_P + #define CFG_PRINTF_MAXSTRINGSIZE (255) // #define CFG_PRINTF_UART #define CFG_PRINTF_USBCDC #define CFG_PRINTF_NEWLINE "\r\n" -- 2.20.1