Changeset - 577e97ae4dc1
[Not reviewed]
cortex-f0
0 4 0
Ethan Zonca - 10 years ago 2015-01-03 00:16:55
ez@ethanzonca.com
Remove discovery includes. Should probably just include _conf.h or something instead.
4 files changed with 0 insertions and 4 deletions:
0 comments (0 inline, 0 general)
eeprom_min.c
Show inline comments
 
#include "stm32l100c_discovery.h"
 

	
 
void Minimal_EEPROM_Unlock(void)
 
{
 
  if((FLASH->PECR & FLASH_PECR_PELOCK) != RESET)
 
  {
 
    /* Unlocking the Data memory and FLASH_PECR register access*/
 
    FLASH->PEKEYR = FLASH_PEKEY1;
 
    FLASH->PEKEYR = FLASH_PEKEY2;
 
  }
 
}
 

	
 
void Minimal_EEPROM_Lock(void)
gpio.c
Show inline comments
 
#include "stm32l100c_discovery.h"
 
#include "gpio.h"
 
#include "config.h"
 

	
 
extern volatile uint32_t ticks;
 

	
 
// Increase on each press, and increase at a fast rate after duration elapsed of continuously holding down... somehow...
 
uint32_t change_time_reset = 0;
 

	
 
void user_input(uint16_t* to_modify)
 
{
 
    if(CHANGE_ELAPSED) {
 
        if(!GPIO_ReadInputDataBit(SW_UP) ) {
spi.c
Show inline comments
 
#include "stm32l100c_discovery.h"
 

	
 
void init_spi(void)
 
{
 
    SPI_InitTypeDef  SPI_InitStructure;
 

	
 
    // OLED IC
 
    SPI_Cmd(SPI1, DISABLE); 
 
    SPI_InitStructure.SPI_Direction = SPI_Direction_1Line_Tx;
 
    SPI_InitStructure.SPI_Mode = SPI_Mode_Master;
 
    SPI_InitStructure.SPI_DataSize = SPI_DataSize_8b;
 
    SPI_InitStructure.SPI_CPOL = SPI_CPOL_High;
 
    SPI_InitStructure.SPI_CPHA = SPI_CPHA_2Edge;
ssd1306.c
Show inline comments
 
#include "stm32l100c_discovery.h"
 
#include "ssd1306.h"
 
 
// Write command to OLED
 
void WriteCommand(unsigned char command)
 
{
 
  SSD_A0_Low();
 
  SPI_SendByte(command);
 
  SPI_Wait();
 
}
 
 
// Write data to OLED
 
void WriteData(unsigned char data)
0 comments (0 inline, 0 general)