mirror of
https://github.com/WeActStudio/WeActStudio.EpaperModule.git
synced 2026-08-16 13:13:45 +02:00
first commit
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#ifndef __BOARD_H
|
||||
#define __BOARD_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include "apm32f10x.h"
|
||||
#include <stdio.h>
|
||||
|
||||
#define _value(value) #value
|
||||
#define printf_name(name) printf(_value(> #name)), printf("\r\n");
|
||||
#define printf_value(name, value) printf(_value(> #name)), printf(" "), printf(#value), printf(" :%d\r\n", value);
|
||||
|
||||
void board_usart_init(void);
|
||||
void board_led_init(void);
|
||||
void board_led_on(void);
|
||||
void board_led_off(void);
|
||||
void board_led_toggle(void);
|
||||
void board_button_init(void);
|
||||
uint8_t board_button_state_get(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user