Skip to content
Permalink
Browse files

cleanup

  • Loading branch information
tehn committed Mar 29, 2016
1 parent e516698 commit 2b08a17c5962eefe7321f36a25b3906ebbe2d7c5
Showing with 15 additions and 39 deletions.
  1. +1 −1 libavr32
  2. +1 −37 src/README.md
  3. +13 −1 src/main.c
@@ -1,37 +1 @@
README // teletype

remove op text strings?


----> script tr execution clocked? on 1ms timer, where interrupts simply queue execution?
----> protect process() from ints? tele_tick??

v2//////////////
@ system ??
cv.set (kills slew, cuts to value)
input trigger state
i2c bidirectional
script dump: saving/loading to mass storage
NORMAL *** normal http://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform
http://c-faq.com/lib/gaussian.html
note names?
/C /C# /D
tracker data views
"note view"
bars (coarse) -- voltage
bars (fine) -- notes
bars (fine bipolar) -- notes relative
on/off boxes
hotkeys
CTL-ESC kill timers/slew

///////

use static for "local" functions, optimizes jump distance and may inline
const for pointer args that don't change.
division by constant has optimized shortcut, see google
use speed optimization on compiler
pre-increment
pre-mask counters on wrap
use unsigned for bit shifting optimization
count down for simple loops
README // teletype
@@ -1,3 +1,14 @@
/*
teletype!
todo:
- remove op text strings?
- script tr execution clocked? on 1ms timer, where interrupts simply queue execution?
- protect process() from ints? tele_tick??
*/

#include <stdio.h> //sprintf
#include <ctype.h> //toupper
#include <string.h> //memcpy
@@ -1816,7 +1827,7 @@ static void tele_mute(uint8_t i, uint8_t s) {
// usb disk

static void tele_usb_disk() {
uint8_t usb_retry = 10;
uint8_t usb_retry = 15;
print_dbg("\r\nusb");
while(usb_retry--) {
print_dbg(".");
@@ -1987,6 +1998,7 @@ static void tele_usb_disk() {
region_fill(&line[1], 0);
font_string_region_clip_tab(&line[1], input_buffer, 2, 0, 0xa, 0);
region_draw(&line[1]);
delay_ms(50);
if(nav_filelist_findname(filename,0)) {
print_dbg("\r\nfound: ");
print_dbg(filename);

0 comments on commit 2b08a17

Please sign in to comment.