Changeset - 81af28f44609
[Not reviewed]
cortex-f0
3 2 0
Ethan Zonca - 10 years ago 2015-01-03 00:01:13
ez@ethanzonca.com
Cleanup and includes fixes
5 files changed with 10 insertions and 278 deletions:
0 comments (0 inline, 0 general)
main.c
Show inline comments
 
#include "main.h"
 
#include "stm32l100c_discovery.h"
 
#include "ssd1306.h"
 
#include "config.h"
 
#include "eeprom_min.h"
 
@@ -7,11 +6,11 @@
 
#include "spi.h"
 
 
// USB includes
 
#include "hw_config.h"
 
#include "usb_lib.h"
 
#include "usb_desc.h"
 
#include "usb_pwr.h"
 
#include "stringhelpers.h"
 
//#include "hw_config.h"
 
//#include "usb_lib.h"
 
//#include "usb_desc.h"
 
//#include "usb_pwr.h"
 
//#include "stringhelpers.h"
 
 
// TODO: Grab buttonpresses with interrupts
 
 
@@ -102,6 +101,7 @@ int main(void)
 
    ssd1306_clearscreen();
 
 
    // Check for problems on startup
 
    uint8_t clock_fail = 0; // FIXME implement in system
 
    if(clock_fail) {
 
        //ssd1306_DrawStringBig("ERROR: Check Xtal", 2, 0);
 
        ssd1306_DrawStringBig("NO XTAL", 2, 0);
 
@@ -111,9 +111,9 @@ int main(void)
 
 
    // Init USB
 
    //Set_System(); // hw_config.h
 
    Set_USBClock();
 
    USB_Interrupts_Config();
 
    USB_Init();
 
    //Set_USBClock();
 
    //SB_Interrupts_Config();
 
    //SB_Init();
 
    //SYSCFG_USBPuCmd(ENABLE);
 
    //PowerOn();
 
main.h
Show inline comments
 
#ifndef __MAIN_H
 
#define __MAIN_H
 
 
#include "stm32l1xx.h"
 
#include "stm32l100c_discovery.h"
 
#include "stm32f0xx.h"
 
 
void TimingDelay_Decrement(void);
 
void delay(__IO uint32_t nTime);
stm32l100c_discovery.c
Show inline comments
 
deleted file
stm32l100c_discovery.h
Show inline comments
 
deleted file
stm32l1xx_conf.h
Show inline comments
 
deleted file
0 comments (0 inline, 0 general)