![](https://img-blog.csdnimg.cn/684981bc3bf4498697ea95acc8818147.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
c语言打怪升级
c语言编程练习
securitysun
分享个人历年来工作中整理的笔记
展开
-
c语言uart串口通信编程s3c2410为例
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <fcntl.h>#include <termios.h>//#include "gpio.h"//#define LED1 0x31//#define LED2 0x32//#define LED3 0x33//#define LEDOFF 0x34//#define LEDON 0x35.原创 2022-05-14 11:38:43 · 1188 阅读 · 0 评论 -
c语言多线程mutex pthread_cancel pthread_join sem_init
#include<stdio.h>#include<pthread.h>#include<unistd.h>pthread_mutex_t mutex=PTHREAD_MUTEX_INITIALIZER;void printer(char *str){// pthread_mutex_lock(&mutex); while(*str!='\0') { putchar(*str); fflush(stdout); str++; s.原创 2022-01-21 09:43:35 · 577 阅读 · 0 评论