summaryrefslogtreecommitdiff
path: root/src/attiny
Commit message (Collapse)AuthorAge
* altos/attiny: Add ADC implementationKeith Packard2017-12-19
| | | | | | It's primitive, but might serve to read ADC values. Untested. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch from GPLv2 to GPLv2+Keith Packard2016-07-12
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Declare port register type only in arch headerKeith Packard2014-11-06
| | | | | | | Instead of defaulting to 8 bits, explicitly require declaration of the type of the port register for each architecture. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix nanopeak compileKeith Packard2014-04-06
| | | | | | | Nanopeak uses port B bit 3 for the LED instead of bit 4. Fix the async code to support arbitrary bits for the serial LED. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Replace C code attiny async output with inline asmKeith Packard2014-04-06
| | | | | | | Using inline asm instead of C ensures that compiler changes will not affect the timing of the serial data. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move micropeak sources aroundKeith Packard2013-09-15
| | | | | | | | This sticks the micropeak sources in appropriate directories, rather than in the micropeak product directory so that they can be shared with future micropeak-style products. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Check for MS5607 MISO low before sleepingKeith Packard2013-08-26
| | | | | | | If the MISO line goes low before we manage to configure the interrupts, we'll miss it entirely unless we check the pin explicitly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add EXTI_PIN_NOCONFIGURE to exti interface, use for MS5607Keith Packard2013-05-19
| | | | | | | | This asks the EXTI code to not mess with the pin configuration so that the MS5607 driver can get interrupts on the MISO pin while still using it for SPI. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/attiny: Fix ao_spi_get_bit/ao_spi_put_bit macrosKeith Packard2013-05-19
| | | | | | | | These were never written, so just use ao_spi_get/put_mask. A precursor to changing how the MS5607 drives the SPI bus Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move ao_notask to coreKeith Packard2013-05-07
| | | | | | | The STM flash loader wants to be taskless too, share this very simple implementation of sleep/wakeup. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/attiny: Remove debugging code which frobs PB1Keith Packard2012-10-30
| | | | | | This was clearly stuck there to debug something; not a good idea... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/micropeak: Clock micropeak at 250kHz to save powerKeith Packard2012-10-30
| | | | | | | | | | This reduces average current consumption from 2mA to .4mA. This makes the battery last longer, but also gets the current under something that the typical CR1025 battery can support. Would be nice to reduce current even further; cheap CR1025 batteries still seem to fade a bit at this current level. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/attiny: Don't initialize the CS pin in the general SPI setupKeith Packard2012-10-30
| | | | | | | Let the CS pin be configured by the driver, which can set the correct value before enabling the output. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/attiny: Update to new interrupt macrosKeith Packard2012-10-29
| | | | | | Add ao_arch_block/release_interrupts macros to attiny architecture Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add attiny architecture filesKeith Packard2012-10-12
These are designed to work with the ATtiny85 processor, but can presuambly be easily adapted to others in that series Signed-off-by: Keith Packard <keithp@keithp.com>