芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密

飞芯科技提供芯片解密,芯片破解,IC解密,单片机解密,MCU解密,STM解密逆向服务

IC解密TM32智能小车蓝牙控制程序

  1. IC解密#include "led.h"
  2. IC解密#include "delay.h"
  3. IC解密#include "sys.h"
  4. #include "pwm.h"
  5. #include "Motor.h"
  6. #include "key.h"
  7. #include "BlueTooth.h"
  8. #include "Engine.h"
  9. #include "ultrasonic.h"


  10. int main(void)
  11. {        
  12.          Motor_Init();                //电机初始化
  13.          delay_init();         
  14.    time3_initer(65535,7);   //pwm初始化
  15.    BlueBooth_Init();         //蓝牙初始化
  16.    sg90_Init();                //舵机初始化
  17.          Wave_IO_Init();        //超声波初始化
  18.    while(1)
  19.          {
复制代码

单片机解密

  1. #include "BlueTooth.h"
  2. #include "stm32f10x.h"
  3. #include "motor.h"
  4. #include "pwm.h"
  5. #include "Engine.h"
  6. #include "ultrasonic.h"

  7. #ifdef __GNUC__
  8.   /* With GCC/RAISONANCE, small printf (option LD Linker->Libraries->Small printf
  9.      set to 'Yes') calls __io_putchar() */
  10.   #define PUTCHAR_PROTOTYPE int __io_putchar(int ch)
  11. #else
  12.   #define PUTCHAR_PROTOTYPE int fputc(int ch, FILE *f)
  13. #endif /* __GNUC__ */


  14. u8 flag,i;

  15. void BlueBooth_Init(void)     //蓝牙初始化
  16. {

  17.      GPIO_InitTypeDef GPIO_InitStructure;
  18.     USART_InitTypeDef USART_InitStructure;
  19.     NVIC_InitTypeDef NVIC_InitStructure;

  20.     RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1|RCC_APB2Periph_GPIOA, ENABLE);
  21.         
  22. //   USART_DeInit(USART1);
  23. //  USART1_TX   PA.9                                                      //串口发送
  24.     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_9;                 //PA.9
  25.     GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;
  26.     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF_PP;     //推挽输出
  27.     GPIO_Init(GPIOA, &GPIO_InitStructure);                        //gpio初始化
  28.    

  29.     //USART1_RX          PA.10                                              //串口接收
  30.     GPIO_InitStructure.GPIO_Pin = GPIO_Pin_10;     
  31.     GPIO_InitStructure.GPIO_Mode = GPIO_Mode_IN_FLOATING;  //浮空输入
  32.     GPIO_Init(GPIOA, &GPIO_InitStructure);                     //gpio初始化

  33.      USART_InitStructure.USART_BaudRate = 9600;           //串口波特率
  34.                
  35.      USART_InitStructure.USART_WordLength = USART_WordLength_8b;        //字长为8位数据格式
  36.      USART_InitStructure.USART_StopBits = USART_StopBits_1;                    //一位停止位
  37.      USART_InitStructure.USART_Parity = USART_Parity_No;                        //无奇偶校验和
  38.      USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;  //无硬件数据流控制
  39.      USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;      //收发模式

  40.     USART_Init(USART1, &USART_InitStructure);                      //串口1初始化
  41.      USART_ITConfig(USART1, USART_IT_RXNE, ENABLE);             //开始串口接收中断

  42.     //Usart1 NVIC
  43.     NVIC_PriorityGroupConfig(NVIC_PriorityGroup_0);            //分组0
  44.     NVIC_InitStructure.NVIC_IRQChannel = USART1_IRQn;
  45.     NVIC_InitStructure.NVIC_IRQChannelPreemptionPriority=3 ;//3位抢占优先级
  46.     NVIC_InitStructure.NVIC_IRQChannelSubPriority = 3;          //3位子优先级
  47.     NVIC_InitStructure.NVIC_IRQChannelCmd = ENABLE;          //IRQ中断使能
  48.     NVIC_Init(&NVIC_InitStructure);        //NVIC初始化
  49.                
  50.     USART_Cmd(USART1, ENABLE);                



联系方式

地址:石家庄市新华区民族路77号华强广场D座2009
电话:0311-88816616/87087811
手机:13315190088
传真:0311-67901001
联系人:张工
网址:www.taihedz.cn
邮箱:feixindz@163.com
微信:xinpianjiemi
QQ:527263666/568069805

在线客服
热线电话

企业微信