summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* src-avr: Finish up telescience loggingKeith Packard2011-05-21
| | | | | | | Adds list and delete commands, making them compatible with telemetrum and telemini equivalents. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Log ADC data to eepromKeith Packard2011-05-21
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Clean up AVR ADC codeKeith Packard2011-05-21
| | | | | | Remove interrupt debug variables, print channel number in ao_adc_dump. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add ADC routines to telescienceKeith Packard2011-05-21
| | | | | | | Note that SLEEP mode must be disabled or extra ADC interrupts occur, which messes up saving ADC values to the right channel. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Reduce control connection interruptsKeith Packard2011-05-20
| | | | | | | Leave these disabled while processing stuff; otherwise we receive a steady stream of them. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Clean up the USB echo debug task a bitKeith Packard2011-05-20
|
* src-avr: Disable USB interrupts while we're not interestedKeith Packard2011-05-20
| | | | | | | | We leave USB data lying around until called for, which results in constant badgering if interrupts are enabled. Disable them until there isn't any data left. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add USB IRQ debug cmdKeith Packard2011-05-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Attempt to leave IN interrupts disabled most of the timeKeith Packard2011-05-20
|
* src-avr: Add 'sleep_cpu' to reduce power usage while idleKeith Packard2011-05-20
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add SPI modules to telescienceKeith Packard2011-05-19
| | | | | | And it works too! Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add telescience build targetKeith Packard2011-05-19
| | | | | | No serial output, just USB Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Get USB on AVR workingKeith Packard2011-05-18
| | | | | | | As usual, the key is to know when to send 0-length IN and OUT packets. Needs a bunch of cleanup, but it's working now. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Make avr-demo objects depend on ao_usb.hKeith Packard2011-05-18
| | | | | | Now that we have a usb driver, it's part of the build Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Trap accidental restartKeith Packard2011-05-18
| | | | | | | Use the LED output pin to notice when avr-demo accidentally restarts and print out an error message in that case. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Suspend interrupts while switching stacksKeith Packard2011-05-18
| | | | | | | | Setting the stack pointer takes two instructions, so make sure we don't get an interrupt in the middle of it. Let the restoration of SREG set the interrupt flag as appropriate. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: USB work in progressKeith Packard2011-05-17
| | | | | | Some packets are flowing, although it's not working right. Signed-off-by: Keith Packard <keithp@keithp.com>
* src-avr: Add a couple of missing filesKeith Packard2011-05-17
| | | | | | These are part of the ../src directory, I think Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Start writing USB driver.Keith Packard2011-05-15
| | | | | | Adapt ao_usb to new environment. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Enable command processor over serial line in demoKeith Packard2011-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos-avr: Initial OS port to AVRKeith Packard2011-05-13
| | | | | | This is working with output to the serial line Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: cleaner stack switching codeKeith Packard2011-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: clean up alternate stack codeKeith Packard2011-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: switching to alternate stack worksKeith Packard2011-05-13
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: Create common 'ao-bringup' interfacesKeith Packard2011-05-12
| | | | | | Initializes the clock, configures STDIO to talk to the UART Signed-off-by: Keith Packard <keithp@keithp.com>
* Add uart testKeith Packard2011-05-12
|
* Run on new stackKeith Packard2011-05-12
|
* ao-bringup-avr: Switch to ADC13Keith Packard2011-05-12
| | | | | | That's what Bdale has wired up in his test setup. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: Flip to 8MHz clock for TeleScienceKeith Packard2011-05-11
| | | | | | The Teensy uses a 16MHz crystal, but TeleScience has an 8MHz crystal. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: Make LED PWM from ADC0 valueKeith Packard2011-05-11
| | | | | | Test ADC inputs by adjusting the waveform using the ADC0 input. Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: Initialize crystal clock and 100Hz timer interruptKeith Packard2011-05-11
| | | | | | Just demonstrating further features of the chip Signed-off-by: Keith Packard <keithp@keithp.com>
* ao-bringup-avr: Enable crystal clock in blink demoKeith Packard2011-05-11
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'telebt' into telescienceKeith Packard2011-05-11
|\
| * Revert "altos: Debugging TBT issues -- check pin configuration after boot"Keith Packard2011-05-06
| | | | | | | | | | | | This reverts commit 514348055630edec12224c4b0964240b929759a3. Looks like this was never a problem.
| * altos: clear CPU port 1 interrupt flag when handledKeith Packard2011-05-06
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Hook up the P1 ISR for TeleBT v0.1 bt_link lineKeith Packard2011-05-06
| | | | | | | | | | | | Otherwise, we're heading off into the weeds... Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Initialize beeper for telebtKeith Packard2011-05-06
| | | | | | | | | | | | Needed to get sounds to come out Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Debugging TBT issues -- check pin configuration after bootKeith Packard2011-05-06
| | | | | | | | | | | | | | Make sure the serial pins are configured as peripherals Make sure the ser_reset and bt_link pins are going the right direction. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add beeper to TBT v0.1Keith Packard2011-05-06
| | | | | | | | | | | | It's available, let's use it. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: pull TBT v0.1 ser_reset line lowKeith Packard2011-05-06
| | | | | | | | | | | | This line resets the BT module if held low for three seconds. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Fix BT link status pin for real TBT hardwareKeith Packard2011-05-06
| | | | | | | | | | | | | | The prototype used P2_1, while the real hardware uses P1_7. Lots of defines to make this work... Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Use USART configuration 1 with flow control for TBTKeith Packard2011-05-06
| | | | | | | | | | | | It's just wired that way. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Add telebt-v0.1 to MakefileKeith Packard2011-05-06
| | | | | | | | | | | | Doesn't get built without it. Signed-off-by: Keith Packard <keithp@keithp.com>
| * first cut at a telebt turn on scriptBdale Garbee2011-05-06
| |
| * altos: Add preliminary telebt v0.1 definesKeith Packard2011-05-06
| | | | | | | | | | | | This should make the telebt v0.1 binary that works on the real hardware. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-bringup-avr: fix blinking code to actually drive the pin as outputKeith Packard2011-05-03
| | | | | | | | | | | | Mis-configured the DDR register setting the wrong pin to output. Signed-off-by: Keith Packard <keithp@keithp.com>
* | ao-bringup-avr: Add very primitive 'blink' to toggle the 32u4 B7 lineKeith Packard2011-05-03
|/ | | | | | This should permit basic testing of the chip. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Fix BT manage dialog so that the device lists resizeKeith Packard2011-04-25
| | | | | | | This makes the device scrolling lists fill any extra space when the window is resized. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Move AltosIgniteUI device open out of Swing threadKeith Packard2011-04-25
| | | | | | Eliminate more blocking code from the Swing thread. Signed-off-by: Keith Packard <keithp@keithp.com>
* altosui: Display reader name (usually the device) when an I/O error occursKeith Packard2011-04-25
| | | | | | | Access the reader name directly from the reader object instead of a local variable (which wasn't getting set anyways). Signed-off-by: Keith Packard <keithp@keithp.com>