lpc1114热敏打印机源程序IC解密
lpc1114热敏打印机源程序IC解密程序预览:
- IC解密//本文件主要定义可程序的入口函数main, main函数里主要对系统、参数、硬件接口进新初始化,之后等待读取串口数据
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "LPC11xx.h" /* LPC11xx definitions */
- #include "uart.h"
- #include "timer32.h"
- #include"aw_print.h"
- #include"aw_init_printHead.h"
- #include "aw_config.h"
- #include "aw_font.h"
- #include"aw_key_led.h"
- #include "user.h"
- #include"aw_char_app.h"
- #include"aw_graph_app.h"
- #include"aw_barcode_app.h"
- #include "aw_command.h"
- #include "pmu.h"
- //初始化系统中的部分全局变量
- void init_Global_Variables(void)
- {
- current_char_index=0;
- DealBuffer_counter=0;
- memset((low_power_t *)&low_power_Paramter,0,sizeof(low_power_t));
- memset((printer_work_Parameter_t *)&printer_work_Parameter,0,sizeof(printer_work_Parameter_t));
- printer_work_Parameter.printer_work_model=PRINTER_IDLE;
- feed_dot_step=0;
- paper_out_flag=0;
- head_up_flag=0;
- clear_buffer();
- memset((Key_IRQ_Parameter *)key_IRQ_Parameter,0,KEY_NUM*sizeof(Key_IRQ_Parameter));
- }
- int main(void)
- {
- #if UART_DEBUG
- char buffer[1024];
- uint32_t counter,timer;
- SystemInit();
- Init_Sys_Parameter();
- init_Global_Varibles();
- UARTInit(sys_Parameter.uart_para.baudrate);
- #ifdef PROJECT_DEBUG
- printf("\n\r-- Printer_Project V1.0 --\n\r");
- printf("\n\r-- Serial Communication test --\n\r");
- #endif
- counter=0;
- timer=0;
- memset(buffer,0,1024);
- while(1)
- {
- if(UartBuffer_read()==1)
- {
- timer=0;memcpy(buffer+counter,&DealBuffer,DealBuffer_counter);
- counter+=DealBuffer_counter;
- }

芯片解密