summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
* altos/stm32f4: Working on USBKeith Packard2019-03-18
| | | | | | Reset now works, still no packets Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Wrong value for CK48MSEL_PLL_QKeith Packard2019-03-18
| | | | | | This meant that the USB clock wasn't actually getting started... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Need to read-back register after clock enableKeith Packard2019-03-18
| | | | | | | This was reported as necessary; I have no idea, but it's not expensive, so why not... Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm32f4: Add -mfloat-abi=hard compile optionKeith Packard2019-03-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: ARM ABI requires 8-byte aligned stackKeith Packard2019-03-18
| | | | | | This makes doubles on the stack (as for var-args functions) work Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/drivers/ao_led.c: Declare LED port as void * to allow any SoC to use ↵Keith Packard2019-03-12
| | | | | | | | this code The generic LED code needs a generic type for the GPIO port. Signed-off-by: Keith Packard <keithp@keithp.com>
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2019-02-25
|\
| * altos: add ao_time_ns APIKeith Packard2019-02-25
| | | | | | | | | | | | | | This provides nano-second resolution times by reading the systick value (which runs at 250ns ticks on stm). Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Change default time type to 32-bitsKeith Packard2019-02-25
| | | | | | | | | | | | | | Offers additional range for internal use without increasing cost on 32-bit platforms. Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Fix several mis-specified time typesKeith Packard2019-02-25
| | | | | | | | | | | | Make sure AO_TICK_TYPE is used "everywhere", instead of uint16_t or other. Signed-off-by: Keith Packard <keithp@keithp.com>
* | altos: ads124s0x successfully reading dataBdale Garbee2019-02-24
|/
* altos: snapshot - working on ads124x0x driverBdale Garbee2019-02-24
|
* altos: ADS124S0X driver compiles nowBdale Garbee2019-02-24
|
* altos: fix ads124s0x data structureBdale Garbee2019-02-24
|
* altos: first cut at ADS124S0X driver interrupt handlingBdale Garbee2019-02-24
|
* altos: Allow applications to override newlib printf selectionKeith Packard2019-02-21
| | | | | | | Re-defining NEWLIB_PRINTF_CFLAGS will allow applications to select printf with floating point support if desired. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix ISR declarations to make them non-weakKeith Packard2019-02-21
| | | | | | | | | | In my zeal to eliminate warnings, I added declarations of all ISR functions to a shared header file. However, I managed to include the 'weak' declaration, which meant that the intended ISR functions were as weak as the 'default' ISR functions. This left all interrupts non-functional, which doesn't make for a happy program. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v2.0: Remove build of ao_product.h from MakefileKeith Packard2019-02-21
| | | | | | This is built in common code now. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: first cut of code for telefireone-v2.0Bdale Garbee2019-02-18
|
* altos: Build telefireone-v1.0 by defaultKeith Packard2019-02-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Track ao_led_init API changeKeith Packard2019-02-18
| | | | | | No longer takes a parameter. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Set various ADC valuesKeith Packard2019-02-18
| | | | | | Reference voltage and divider resistor values. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Set AO_LOG_FORMATKeith Packard2019-02-18
| | | | | | | Use AO_LOG_FORMAT_TELFIRETWO for now; perhaps we'll have a new format at some point. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Turn off USE_INTERNAL_FLASHKeith Packard2019-02-18
| | | | | | This is for TeleMini v1.0 which stored log data to the program flash. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Clean up MakefileKeith Packard2019-02-18
| | | | | | | Follow other projects and remove common bits which are now in Makefile.defs Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/telefireone-v1.0: Doesn't have a beeperKeith Packard2019-02-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove AO_LOG_STATE from ao_log_telefiretwoKeith Packard2019-02-18
| | | | | | | | | | Telefiretwo never changes flight state, so these packets weren't going to be written. Also stop passing &log to ao_log_firetwo -- it always got the global anyways, just use it directly. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Move common build definitions to src/Makefile.defsKeith Packard2019-02-18
| | | | | | | | This cleans up the build process for all architectures, providing a common place to specify vpath, cflags and build rules for various common files. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/attiny: Mark 'mode' param to ao_exti_setup_port as usedKeith Packard2019-02-18
| | | | | | Retain API. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add -Wshadow to CFLAGSKeith Packard2019-02-18
| | | | | | And fix up the related messages. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm-demo: Make this build again after various API and CFLAGS changesKeith Packard2019-02-18
| | | | | | Deal with LED API change. Remove unused functions. Signed-off-by: Keith Packard <keithp@keithp.com>
* stm: Expose LCD font API in ao_lcd_font.hKeith Packard2019-02-18
| | | | | | | That required renaming the existing LCD font defintions from ao_lcd_font.h to ao_lcd_font_bits.h. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add a pile more compiler warningsKeith Packard2019-02-18
| | | | | | | | | | | Adds: -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Declare task stack as union of uint8_t and uint32_tKeith Packard2019-02-18
| | | | | | | Support -Wcast-align and -Wpointer-arith while still allowing architectures to pick whether they want an 8-bit or 32-bit stack. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Remove unused ao_adc_get from ao_adc_stm.cKeith Packard2019-02-18
| | | | Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Stop doing pointer arith on void *Keith Packard2019-02-18
| | | | | | Switch to uint8_t * instead. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add 'void' to function declarations with no params.Keith Packard2019-02-18
| | | | | | Support -Wstrict-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Declare all public functions in header filesKeith Packard2019-02-18
| | | | | | | Including interrupt vectors to catch mis-spellings. Working toward supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Mark local functions 'static'Keith Packard2019-02-18
| | | | | | Working towards supporting -Wmissing-prototypes Signed-off-by: Keith Packard <keithp@keithp.com>
* altos/stm: Note that ao_i2c_recv_dma_isr isn't actually usedKeith Packard2019-02-18
| | | | | | | | | This function resets the i2c transceiver after DMA completes, but it hasn't ever been hooked up. Some testing would be a good idea. For now, just add a comment and mark the function as referenced to avoid a compiler warning. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Fix spelling of stm_dma_ch4_5_6_isrKeith Packard2019-02-18
| | | | | | This spellingn error would have caused all DMA to these channels to fail. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: ADS124S0X driver compiles with initialization code maybe completedBdale Garbee2019-02-17
|
* altos: add initial support for TeleFireOne v2.0Bdale Garbee2019-02-17
|
* Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altosBdale Garbee2019-01-28
|\
| * altos/telefireeight-v2.0: Add flash loader MakefileKeith Packard2019-01-28
| | | | | | | | Signed-off-by: Keith Packard <keithp@keithp.com>
| * altos: Delete unused config bits for telefireeight-v2.0. Add MakefileKeith Packard2019-01-28
| | | | | | | | | | | | Clean up the config and set the copyright year. Signed-off-by: Keith Packard <keithp@keithp.com>
* | Makefiles, tooBdale Garbee2019-01-28
|/
* altos: add telefireeight-v2.0 to src/Makefile and to ReleasingBdale Garbee2019-01-27
|
* altos: add support for telefireeight-v2.0Bdale Garbee2019-01-27
|
* altos: Don't validate ADXL375 self test for maximum valueKeith Packard2018-12-30
| | | | | | | The data sheet says this is unreliable, and that we should be using an FFT anyways. Signed-off-by: Keith Packard <keithp@keithp.com>