野火电子论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 17146|回复: 1

【原创】高斯消元法--基于STM32串口调试(中)

[复制链接]
发表于 2015-12-8 23:01:27 | 显示全部楼层 |阅读模式
本帖最后由 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);
}
回复

使用道具 举报

发表于 2015-12-13 11:35:52 | 显示全部楼层
帮顶                        
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

联系站长|手机版|野火电子官网|野火淘宝店铺|野火电子论坛 ( 粤ICP备14069197号 ) 大学生ARM嵌入式2群

GMT+8, 2024-5-15 02:44 , Processed in 0.029030 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表