Skip to content

Commit

Permalink
First test on Sonar
Browse files Browse the repository at this point in the history
/ TODO add "sonar_handler.h/.c"
  • Loading branch information
Walter Lucetti committed Aug 28, 2014
1 parent 3019c7e commit e455e27
Show file tree
Hide file tree
Showing 186 changed files with 1,036,459 additions and 471 deletions.
Binary file added Board/Datasheets/74HC40670.pdf
Binary file not shown.
18 changes: 9 additions & 9 deletions Firmware/.mxproject

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions Firmware/Inc/Backup/button_handler.h.bak
@@ -0,0 +1,12 @@
#ifndef _BUTTON_HANDLER_H_
#define _BUTTON_HANDLER_H_
#include "gpio.h"

#define BUT_PRESSED 0
#define BUT_RELEASED 1

uint8_t getButtonDiscState(void);
uint8_t getButton1State(void);
uint8_t getButton2State(void);

#endif
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/dma.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : dma.h
* Date : 19/07/2014 11:48:42
* Date : 28/08/2014 16:39:56
* Description : This file contains all the function prototypes for
* the dma.c file
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/gpio.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : gpio.h
* Date : 19/07/2014 11:48:40
* Date : 28/08/2014 16:39:56
* Description : This file contains all the functions prototypes for
* the gpio
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/i2c.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : I2C.h
* Date : 19/07/2014 11:48:42
* Date : 28/08/2014 16:39:56
* Description : This file provides code for the configuration
* of the I2C instances.
******************************************************************************
Expand Down
31 changes: 22 additions & 9 deletions Firmware/Inc/Backup/leds_handler.h.bak
Expand Up @@ -8,14 +8,24 @@
#define LED_ON 0
#define LED_OFF 1

#define LED_RED 0
#define LED_GREEN 1
#define LED_BLUE 2
#define LED_YELLOW 3
#define LED_PURPLE 4
#define LED_CYAN 5
#define LED_WHITE 6
#define LED_BLACK 7
typedef struct _led_color
{
uint8_t R;
uint8_t G;
uint8_t B;
} LedColor;

#define LED_BLACK LedColor(0,0,0)
#define LED_RED LedColor(255,0,0)
#define LED_GREEN LedColor(0,255,0)
#define LED_BLUE LedColor(0,0,255)
#define LED_YELLOW LedColor(255,255,0)
#define LED_PURPLE LedColor(255,0,255)
#define LED_CYAN LedColor(0,255,255)
#define LED_WHITE LedColor(255,255,255)




// Initialize RGB Leds
void initRgbLeds( void );
Expand All @@ -39,6 +49,9 @@ void setLedDiscBlue( uint8_t state );
void toggleLedDiscBlue( void );

// Sets the state of one of the 16 RGB Leds on the RoboDiscovery
void setStateLedColor( uint8_t ledIdx, uint8_t color );
//void setStateLedColor( uint8_t ledIdx, uint8_t color );

// Sets the color of a LED
void setLedColor( uint8_t ledIdx, LedColor color );

#endif
3 changes: 2 additions & 1 deletion Firmware/Inc/Backup/stm32f4xx_it.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file stm32f4xx_it.h
* @date 19/07/2014 11:48:45
* @date 28/08/2014 16:39:57
* @brief This file contains the headers of the interrupt handlers.
******************************************************************************
*
Expand Down Expand Up @@ -51,6 +51,7 @@ void OTG_FS_IRQHandler(void);
void DMA1_Stream6_IRQHandler(void);
void SysTick_Handler(void);
void TIM7_IRQHandler(void);
void TIM8_BRK_TIM12_IRQHandler(void);
void DMA2_Stream7_IRQHandler(void);
void OTG_FS_WKUP_IRQHandler(void);
void DMA1_Stream5_IRQHandler(void);
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/tim.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : TIM.h
* Date : 19/07/2014 11:48:43
* Date : 28/08/2014 16:39:56
* Description : This file provides code for the configuration
* of the TIM instances.
******************************************************************************
Expand Down
3 changes: 3 additions & 0 deletions Firmware/Inc/Backup/tim_handler.h.bak
Expand Up @@ -2,5 +2,8 @@
#define _TIM_HANDLER_H_
#include "tim.h"

//void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
//void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim);


#endif
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/usart.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : USART.h
* Date : 19/07/2014 11:48:44
* Date : 28/08/2014 16:39:57
* Description : This file provides code for the configuration
* of the USART instances.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/usb_device.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file : USB_DEVICE
* @date : 19/07/2014 11:48:44
* @date : 28/08/2014 16:39:57
* @version : v1.0_Cube
* @brief : Header for usb_device file.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/usbd_conf.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file : usbd_conf.h
* @date : 19/07/2014 11:48:44
* @date : 28/08/2014 16:39:57
* @version : v1.0_Cube
* @brief : Header for usbd_conf file.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/Backup/usbd_desc.h.bak
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file : usbd_desc.h
* @date : 19/07/2014 11:48:44
* @date : 28/08/2014 16:39:57
* @version : v1.0_Cube
* @brief : Header for usbd_desc file.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/dma.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : dma.h
* Date : 20/08/2014 19:06:50
* Date : 28/08/2014 17:15:57
* Description : This file contains all the function prototypes for
* the dma.c file
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/gpio.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : gpio.h
* Date : 20/08/2014 19:06:49
* Date : 28/08/2014 17:15:56
* Description : This file contains all the functions prototypes for
* the gpio
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/i2c.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : I2C.h
* Date : 20/08/2014 19:06:50
* Date : 28/08/2014 17:15:57
* Description : This file provides code for the configuration
* of the I2C instances.
******************************************************************************
Expand Down
4 changes: 2 additions & 2 deletions Firmware/Inc/leds_handler.h
Expand Up @@ -19,8 +19,8 @@ typedef struct _led_color
#define LED_RED LedColor(255,0,0)
#define LED_GREEN LedColor(0,255,0)
#define LED_BLUE LedColor(0,0,255)
#define LED_YELLOW LedColor(255,255,0)
#define LED_PURPLE LedColor(255,0,255)
#define LED_YELLOW LedColor(255,255,0)
#define LED_PURPLE LedColor(255,0,255)
#define LED_CYAN LedColor(0,255,255)
#define LED_WHITE LedColor(255,255,255)

Expand Down
3 changes: 2 additions & 1 deletion Firmware/Inc/stm32f4xx_it.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file stm32f4xx_it.h
* @date 20/08/2014 19:06:51
* @date 28/08/2014 17:15:58
* @brief This file contains the headers of the interrupt handlers.
******************************************************************************
*
Expand Down Expand Up @@ -46,6 +46,7 @@
/* Exported macro ------------------------------------------------------------*/
/* Exported functions ------------------------------------------------------- */

void TIM8_BRK_TIM12_IRQHandler(void);
void DMA2_Stream2_IRQHandler(void);
void OTG_FS_IRQHandler(void);
void DMA1_Stream6_IRQHandler(void);
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/tim.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : TIM.h
* Date : 20/08/2014 19:06:50
* Date : 28/08/2014 17:15:57
* Description : This file provides code for the configuration
* of the TIM instances.
******************************************************************************
Expand Down
3 changes: 3 additions & 0 deletions Firmware/Inc/tim_handler.h
Expand Up @@ -2,5 +2,8 @@
#define _TIM_HANDLER_H_
#include "tim.h"

//void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim);
//void HAL_TIM_IC_CaptureCallback(TIM_HandleTypeDef *htim);


#endif
2 changes: 1 addition & 1 deletion Firmware/Inc/usart.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* File Name : USART.h
* Date : 20/08/2014 19:06:51
* Date : 28/08/2014 17:15:58
* Description : This file provides code for the configuration
* of the USART instances.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/usb_device.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file : USB_DEVICE
* @date : 20/08/2014 19:06:51
* @date : 28/08/2014 17:15:58
* @version : v1.0_Cube
* @brief : Header for usb_device file.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/usbd_conf.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file : usbd_conf.h
* @date : 20/08/2014 19:06:51
* @date : 28/08/2014 17:15:58
* @version : v1.0_Cube
* @brief : Header for usbd_conf file.
******************************************************************************
Expand Down
2 changes: 1 addition & 1 deletion Firmware/Inc/usbd_desc.h
@@ -1,7 +1,7 @@
/**
******************************************************************************
* @file : usbd_desc.h
* @date : 20/08/2014 19:06:51
* @date : 28/08/2014 17:15:58
* @version : v1.0_Cube
* @brief : Header for usbd_desc file.
******************************************************************************
Expand Down
6 changes: 6 additions & 0 deletions Firmware/Projects/EWARM/Project.eww
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="iso-8859-1" standalone="no" ?><workspace>
<project>
<path>$WS_DIR$\Sonar-Module.ewp</path>
</project>
<batchBuild/>
</workspace>
Binary file not shown.
Binary file not shown.

0 comments on commit e455e27

Please sign in to comment.