mc8051fun/mc8051fun.h

22 lines
313 B
C
Raw Normal View History

2024-05-17 23:51:40 +02:00
#ifndef MC8051FUN_H
#define MC8051FUN_H
2024-05-19 01:00:51 +02:00
#include <stdint.h>
2024-05-17 23:51:40 +02:00
#include <8052.h>
2024-05-18 02:14:50 +02:00
2024-05-19 01:00:51 +02:00
2024-05-18 02:14:50 +02:00
void uart_init(long fosc, long baud);
void uart_send_chr(char tx_data);
void uart_send_str(const char *str);
2024-05-19 01:00:51 +02:00
int8_t rotary_encoder_stat(uint8_t b);
extern uint8_t sevenseg_dec[10];
extern uint8_t sevenseg_dec_inv[10];
2024-05-17 23:51:40 +02:00
#endif