Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add MDR1986VE92 Tetris game on evaluation board
- Loading branch information
Showing
68 changed files
with
35,348 additions
and
0 deletions.
There are no files selected for viewing
58 changes: 58 additions & 0 deletions
58
Example_Projects/MDR1986VE92_Eval_Tetris/Config/MDR32F9Qx_board.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
/** | ||
****************************************************************************** | ||
* @file Demo\MDR32F9Qx_board.h | ||
* @author Phyton Application Team | ||
* @version V1.2.0 | ||
* @date 10.07.2010 | ||
* @brief Evaluation board configuration file. | ||
****************************************************************************** | ||
* <br><br> | ||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS | ||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE | ||
* TIME. AS A RESULT, PHYTON SHALL NOT BE HELD LIABLE FOR ANY | ||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING | ||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE | ||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. | ||
* | ||
* <h2><center>© COPYRIGHT 2010 Phyton</center></h2> | ||
*/ | ||
|
||
/* Define to prevent recursive inclusion -------------------------------------*/ | ||
#ifndef __MDR32F9Qx_BOARD_H | ||
#define __MDR32F9Qx_BOARD_H | ||
|
||
/* Uncomment the line corresponding to the Milandr evaluation board | ||
used to run the example */ | ||
#if !defined (USE_MDR32F9Q1_Rev0) && !defined (USE_MDR32F9Q1_Rev1) && \ | ||
!defined (USE_MDR32F9Q2_Rev0) && !defined (USE_MDR32F9Q2_Rev1) && \ | ||
!defined (USE_MDR32F9Q3_Rev0) && !defined (USE_MDR32F9Q3_Rev1) && \ | ||
!defined (USE_MDR1986VE1T) && !defined(USE_MDR1986BE7T) && \ | ||
!defined (USE_MDR1986VE3) && !defined(USE_MDR1986VE94) | ||
|
||
/* #define USE_MDR32F9Q1_Rev0 */ | ||
|
||
/* #define USE_MDR32F9Q2_Rev0 */ | ||
|
||
#define USE_MDR32F9Q2_Rev1 | ||
#define USE_MDR32F9Q2_Rev3 | ||
|
||
/* #define USE_MDR32F9Q3_Rev0 */ | ||
|
||
/* #define USE_MDR32F9Q3_Rev1 */ | ||
|
||
/* #define USE_MDR1986VE1T */ | ||
|
||
/* #define USE_MDR1986VE3 */ | ||
|
||
/* #define USE_MDR1986VE9x */ | ||
|
||
/* #define USE_MDR1986VE94 */ | ||
|
||
#endif | ||
|
||
#endif /* __MDR32F9Qx_BOARD_H */ | ||
|
||
/******************* (C) COPYRIGHT 2010 Phyton ********************************* | ||
* | ||
* END OF FILE MDR32F9Qx_board.h */ | ||
|
129 changes: 129 additions & 0 deletions
129
Example_Projects/MDR1986VE92_Eval_Tetris/Config/MDR32F9Qx_config.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
/** | ||
****************************************************************************** | ||
* @file MDR32F9Qx_Demo\Project\Demo\MDR32F9Qx_config.h | ||
* @author Milandr Application Team | ||
* @version V1.0.0 | ||
* @date 10/07/2010 | ||
* @brief Library configuration file. | ||
****************************************************************************** | ||
* <br><br> | ||
* THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS | ||
* WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE | ||
* TIME. AS A RESULT, MILANDR SHALL NOT BE HELD LIABLE FOR ANY | ||
* DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING | ||
* FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE | ||
* CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS. | ||
* | ||
* <h2><center>© COPYRIGHT 2011 Milandr</center></h2> | ||
*/ | ||
|
||
/* Define to prevent recursive inclusion -------------------------------------*/ | ||
#ifndef __MDR32F9Qx_CONFIG_H | ||
#define __MDR32F9Qx_CONFIG_H | ||
|
||
#include "MDR32F9Qx_lib.h" | ||
#include "stdint.h" | ||
|
||
/* Uncomment the line(s) below to define used JTAG port(s). Leave all commented | ||
* if there is no JTAG ports */ | ||
#define USE_JTAG_A | ||
/* #define USE_JTAG_B */ | ||
|
||
/* Target system parameters */ | ||
/* RST_CLK generators frequencies in HZ */ | ||
#define HSI_Value ((uint32_t)8000000) | ||
#define HSE_Value ((uint32_t)8000000) | ||
#define LSI_Value ((uint32_t)40000) | ||
#define LSE_Value ((uint32_t)32768) | ||
|
||
/* RST_CLK frequencies startup timeouts settings */ | ||
#define HSEonTimeOut ((uint16_t)0x0600) | ||
#define LSEonTimeOut ((uint16_t)0x0600) | ||
#define HSIonTimeOut ((uint16_t)0x0600) | ||
#define LSIonTimeOut ((uint16_t)0x0600) | ||
#define PLLCPUonTimeOut ((uint16_t)0x0600) | ||
#define PLLUSBonTimeOut ((uint16_t)0x0600) | ||
|
||
#define FLASH_PROG_FREQ_MHZ (8.0) | ||
|
||
/* RTC configuration parameters */ | ||
#define RTC_CalibratorValue 0 | ||
#define RTC_PRESCALER_VALUE 32768 | ||
|
||
/* DMA configuration parameters */ | ||
/* Number of DMA channels to use */ | ||
#define DMA_Channels_Number 32 /* This parameter is in range 1..32 */ | ||
|
||
/* Alternate Control Data Structure Usage */ | ||
/* This parameter can be a value of: | ||
0 = DMA_ALternateDataDisabled; | ||
1 = DMA_ALternateDataEnabled; */ | ||
/*#define DMA_AlternateData 0 */ /* DMA_AlternateDataDisabled */ | ||
#define DMA_AlternateData 1 /* DMA_AlternateDataEnabled */ | ||
|
||
/* USB configuration parameters ----------------------------------------------*/ | ||
/* Uncomment one of the lines below to select the Device Class. Leave all commented | ||
* if the desired device class is not currently supported by USB library */ | ||
#define USB_DEVICE_CLASS USB_DEVICE_CLASS_CDC | ||
|
||
/* USB Device management */ | ||
/* Uncomment the line below to enable appropriate functionality. */ | ||
/* #define USB_REMOTE_WAKEUP_SUPPORTED */ | ||
/* #define USB_SELF_POWERED_SUPPORTED */ | ||
|
||
/* Uncomment the line below to let the library provide USB interrupt handler. | ||
* Leave this line commented if you are willing to implement the handler yourself. */ | ||
#define USB_INT_HANDLE_REQUIRED | ||
|
||
/* USB CDC management */ | ||
/* Uncomment the lines below to enable appropriate functionality. */ | ||
#define USB_CDC_STATE_REPORTING_SUPPORTED | ||
/* #define USB_CDC_ENCAPSULATION_SUPPORTED */ | ||
/* #define USB_CDC_COMM_FEATURE_SUPPORTED */ | ||
#define USB_CDC_LINE_CODING_SUPPORTED | ||
/* #define USB_CDC_CONTROL_LINE_STATE_SUPPORTED */ | ||
/* #define USB_CDC_LINE_BREAK_SUPPORTED */ | ||
|
||
/* Known errors workaround control -------------------------------------------*/ | ||
/* MDR32F9Qx Series Errata Notice, Error 0002 */ | ||
#define WORKAROUND_MDR32F9QX_ERROR_0002 | ||
|
||
/* Parameter run-time check support ------------------------------------------*/ | ||
|
||
/* Select one of the following values of USE_ASSERT_INFO macro to control | ||
parameter checking in the Standard Peripheral Library drivers: | ||
0 - no parameter checks ("assert_param" macro is disabled); | ||
1 - check enabled, source file ID and line number are available; | ||
2 - check enabled, source file ID, line number and checking expression | ||
(as string) are available (increased code size). | ||
*/ | ||
#define USE_ASSERT_INFO 0 | ||
/* #define USE_ASSERT_INFO 1 */ | ||
/* #define USE_ASSERT_INFO 2 */ | ||
|
||
/** | ||
* @brief The assert_param macro is used for function's parameters check. | ||
* @param expr: If expr is false, it calls assert_failed user's function | ||
* which gets the source file ID (see MDR32F9Qx_lib.h), line number and | ||
* expression text (if USE_ASSERT_INFO == 2) of the call that failed. That | ||
* function should not return. If expr is true, nothing is done. | ||
* @retval None | ||
*/ | ||
#if (USE_ASSERT_INFO == 0) | ||
#define assert_param(expr) ((void)0) | ||
#elif (USE_ASSERT_INFO == 1) | ||
#define assert_param(expr) ((expr) ? (void)0 : assert_failed(ASSERT_INFO_FILE_ID, __LINE__)) | ||
void assert_failed(uint32_t file_id, uint32_t line); | ||
#elif (USE_ASSERT_INFO == 2) | ||
#define assert_param(expr) ((expr) ? (void)0 : assert_failed(ASSERT_INFO_FILE_ID, __LINE__, #expr)) | ||
void assert_failed(uint32_t file_id, uint32_t line, const uint8_t* expr); | ||
#else | ||
#error "Unsupported USE_ASSERT_INFO level" | ||
#endif /* USE_ASSERT_INFO */ | ||
|
||
#endif /* __MDR32F9Qx_CONFIG_H */ | ||
|
||
/******************* (C) COPYRIGHT 2011 Milandr ********************************* | ||
* | ||
* END OF FILE MDR32F9Qx_config.h */ | ||
|
Oops, something went wrong.