本帖最后由 hkhkdyx 于 2015-12-8 23:14 编辑
/* Created by mazirong */ /*2015-12-8 */
gs_elim.h
#ifndef __GS_ELIM_H #define __GS_ELIM_H
#include "usart.h"
// 定义矩阵为N阶 #define N 4
void Gs_Elim(void);
#endif
main.c #include "led.h" #include "key.h" #include "bsp_lcd.h" #include "delay.h" #include "sys.h" #include "usart.h" //#include "includes.h" #include "malloc.h" #include "myiic.h" #include "24cxx_iic.h" #include "oled_iic.h"
#include "gs_elim.h"
int main(void) { delay_init(); // 延时函数初始化 NVIC_Configuration(); // 设置NVIC中断分组2:2位抢占优先级,2位响应优先级 uart_init(9600); // 串口初始化为9600 LED_Init(); KEY_Init(); LCD_Init();
// 高斯消元函数 Gs_Elim();
while(1); } |