summaryrefslogtreecommitdiff
path: root/src/telemega-v2.0/ao_pins.h
Commit message (Collapse)AuthorAge
* altos/stm: Make beeper driver support all possible tim234 configsKeith Packard2018-10-19
| | | | | | And update all users to be explicit about the desired config. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Eliminate 'pin' field from GPIO functionsKeith Packard2018-10-13
| | | | | | | This was used with the 8051 bit-addressing mode to provide single-instruction access to GPIO pins. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Define AO_LOG_FORMAT in */ao_pins.h. Use in ao_cmd.cKeith Packard2017-10-22
| | | | | | | Instead of having a global variable define the log format, use a macro instead to save data space. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Require SPI speed to be declared for cc1200Keith Packard2017-02-20
| | | | | | | The cc1200 can't run SPI faster than 10MHz, so make sure every device picks a SPI clock slower than that. 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: Make sure AO_MMA655X_INVERT is declared where neededKeith Packard2016-05-02
| | | | | | | | Add #define AO_MMA655X_INVERT 0 to existing products which didn't declare it at all. This will make sure the value is set correctly for each new board. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Switch PWM constants to end up exposing µsecKeith Packard2016-01-10
| | | | | | | | This changes the constants so the clock runs at 1MHz, making the step 1µsec each. Then make the period 20000 steps, or 20ms for a 50Hz frequency as before. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set TeleMega v2.0 PWM to support servosKeith Packard2016-01-10
| | | | | | | | Typical servos use a 50Hz signal with less than 10% duty cycle. Set the divider to 10 and the range to 64000 to provide a reasonable level of detail down in the low range. Signed-off-by: Keith Packard <keithp@keithp.com>
* Switch TeleMega v2.0 to CC1200 radio chiptelemega-v2Keith Packard2016-01-09
| | | | | | That's what we're using, after all Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Set AO_PWM_TIMER_SCALE for telemega-v2.0Keith Packard2015-12-25
| | | | | | This is needed to configure the PWM timer correctly Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Get stm32l pwm driver workingKeith Packard2015-12-25
| | | | | | | | | | | | | Fix the CCMR1_OC1PE and CCMR2_OC3PE values. Disable clock when no PWM outputs are running. Fix the apb1enr value for the timer. Set ARR value to PWM_MAX - 1 -- ARR is off by one. Sets the GPIO pins to 40MHz bandwidth for sharper edges. Tested on EasyMega, but that code is not included as it breaks the companion protocol. Signed-off-by: Keith Packard <keithp@keithp.com>
* altos: Add TeleMega v2.0, including PWM driverKeith Packard2015-12-25
Signed-off-by: Keith Packard <keithp@keithp.com>