-
OFDM_simln
Basic Model of Orthogonal Frequency Division MUltiplexing
- 2010-07-22 16:44:06下载
- 积分:1
-
first
first code in c++ i like it
- 2012-04-15 17:47:22下载
- 积分:1
-
STM32 74hc595(8片级联64路)
说明: STM32驱动74HC5958片级联64路(74hc5958 cascaded 64 way)
- 2021-01-11 11:18:49下载
- 积分:1
-
forecast1130
自己辛苦编写的双色球彩票统计预测程序. 为得到下载积分,忍痛贡献.
visual c++ 2010, 开发. windows 7 64bit, 16GByte内存需求, 4核处理器
并行计算, STL C++,
能够快速遍历计算全部号码分解组合的概率.
贡献出来心痛. 希望联系我,找份喜欢的工作.(souce codes of double Color ball lottery statistical forecasting program, desinged by myself.
visual c++ 2010 stl, parallel computing. operation requirement under windows 7 64bit, 16GByte memory and 4-core processor.
Rapidly traverse calculation of the the probability of all decomposition and all combination code numbers.
it have me heartache to contribute my codes for get download points. Hope to contact me, help me ge one job.)
- 2012-12-02 16:55:59下载
- 积分:1
-
839960162ADCs_DMA
两路ADC+DMA,stm32f103,双通道采集(ADC+DMA,stm32f103,2adc)
- 2019-06-24 15:21:07下载
- 积分:1
-
DirectX的游戏代码
弹球游戏(pinball game)
- 2020-07-04 23:20:01下载
- 积分:1
-
lightalda代码
海量数据LDA模型主题提取的轻量级服务器版本。
- 2022-09-09 11:20:03下载
- 积分:1
-
ATP-EMTP
电力系统电磁暂态仿真软件,提供图像界面搭建模型仿真(Power system electromagnetic transient simulation software that provides graphical interface to build simulation models)
- 2014-12-15 23:09:09下载
- 积分:1
-
FreeRTOS+FreeModbus+STM32F107VC
/*
* FreeModbus Libary: BARE Port
* Copyright (C) 2006 Christian Walter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*
* File: $Id: porttimer.c,v 1.1 2006/08/22 21:35:13 wolti Exp $
*/
/* ----------------------- Platform includes --------------------------------*/
#include
#include "port.h"
/* ----------------------- Modbus includes ----------------------------------*/
#include "mb.h"
#include "mbport.h"
/* ----------------------- static functions ---------------------------------*/
static void prvvTIMERExpiredISR( void );
/* ----------------------- Start implementation -----------------------------*/
BOOL
xMBPortTimersInit( USHORT usTim1Timerout50us )
{
NVIC_InitTypeDef NVIC_InitStructure;
TIM_TimeBaseInitTypeDef TIM_TimeBaseStructure;
USHORT PrescalerValue = 0;
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_1);
/* Enable the TIM5 gloabal Interrupt */
NVIC_InitStructure.NVIC_IRQChannel = TIM5_IRQn;
NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority = 0;
NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3;
NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;
NVIC_Init(&NVIC_InitStructure);
/* TIM5 clock enable */
RCC_APB1PeriphClockCmd(RCC_APB1Periph_TIM5, ENABLE);
PrescalerValue = (USHORT) (SystemCoreClock / 20000) - 1;
TIM_TimeBaseStructure.TIM_Period = usTim1Timerout50us;
TIM_TimeBaseStructure.TIM_Prescaler = PrescalerValue;
TIM_TimeBaseStructure.TIM_ClockDivision = 0;
TIM_TimeBaseStructure.TIM_CounterMode = TIM_CounterMode_Up;
TIM_TimeBaseInit(TIM5, &TIM_TimeBaseStructure);
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
//TIM_ITConfig(TIM5, TIM_IT_Update, DISABLE);
//TIM_Cmd(TIM5, ENABLE);
return TRUE;
}
void vMBPortTimersEnable( void )
{
/* Enable the timer with the timeout passed to xMBPortTimersInit( ) */
ENTER_CRITICAL_SECTION();
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
TIM_ITConfig(TIM5, TIM_IT_Update, ENABLE);
TIM_SetCounter(TIM5, 0x0000);
TIM_Cmd(TIM5, ENABLE);
EXIT_CRITICAL_SECTION();
}
void vMBPortTimersDisable( void )
{
/* Disable any pending timers. */
ENTER_CRITICAL_SECTION();
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
TIM_ITConfig(TIM5, TIM_IT_Update, DISABLE);
TIM_SetCounter(TIM5, 0x0000);
TIM_Cmd(TIM5, DISABLE);
EXIT_CRITICAL_SECTION();
}
/* Create an ISR which is called whenever the timer has expired. This function
* must then call pxMBPortCBTimerExpired( ) to notify the protocol stack that
* the timer has expired.
*/
static void prvvTIMERExpiredISR( void )
{
( void )pxMBPortCBTimerExpired( );
}
void TIM5_IRQHandler(void)
{
if (TIM_GetITStatus(TIM5, TIM_IT_Update) == SET) {
TIM_ClearITPendingBit(TIM5, TIM_IT_Update);
prvvTIMERExpiredISR();
}
}
- 2021-08-22 00:30:59下载
- 积分:1
-
5-CCMJ
网狐6.6长春麻将源码Changchun mahjong source network Fox 6.6(Changchun mahjong source network Fox 6.6)
- 2011-10-06 14:54:07下载
- 积分:1