diff options
author | Keith Packard <keithp@keithp.com> | 2016-11-20 00:04:27 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2016-11-20 00:04:27 -0800 |
commit | e6518cf1ddfc087ca25fa1494f993ce03e43e138 (patch) | |
tree | 8351ae428fcfcc70c210803eba8bc4fb912b8302 /src/stm/ao_i2c_stm.c | |
parent | 86f1c4b04946956f40755286bd9554828d5c8728 (diff) |
altos/stm-vga: Implement VGA out from the STM processor
Generates vsync/hsync using timers and pixel data using the SPI port.
320x240 video using 640x480 mode and a 24MHz "pixel" clock.
Includes the beginings of rendering code for the frame buffer,
including bitblt, solid fill and text with a 5x7 font.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/ao_i2c_stm.c')
-rw-r--r-- | src/stm/ao_i2c_stm.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stm/ao_i2c_stm.c b/src/stm/ao_i2c_stm.c index 29a8f173..59cad495 100644 --- a/src/stm/ao_i2c_stm.c +++ b/src/stm/ao_i2c_stm.c @@ -75,6 +75,9 @@ uint8_t ao_i2c_mutex[STM_NUM_I2C]; #if AO_PCLK1 == 16000000 # define AO_STM_I2C_CR2_FREQ STM_I2C_CR2_FREQ_16_MHZ #endif +#if AO_PCLK1 == 24000000 +# define AO_STM_I2C_CR2_FREQ STM_I2C_CR2_FREQ_24_MHZ +#endif #if AO_PCLK1 == 32000000 # define AO_STM_I2C_CR2_FREQ STM_I2C_CR2_FREQ_32_MHZ #endif |