board implementation cleanup
implemented proper C/C++ practices other cleanup
This commit is contained in:
parent
11f26d4980
commit
570df0640d
@ -1,6 +1,4 @@
|
|||||||
#define NANOBAKE_BOARD_2432S024_H
|
#pragma once
|
||||||
|
|
||||||
#include "board_2432s024_display.h"
|
#include "board_2432s024_display.h"
|
||||||
#include "board_2432s024_touch.h"
|
#include "board_2432s024_touch.h"
|
||||||
|
|
||||||
#endif // NANOBAKE_BOARD_2432S024_H
|
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
#ifndef NANOBAKE_BOARD_2432S024_DISPLAY_H
|
#pragma once
|
||||||
#define NANOBAKE_BOARD_2432S024_DISPLAY_H
|
|
||||||
|
|
||||||
#include "nb_display.h"
|
#include "nb_display.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
extern NbDisplayDriver board_2432s024_create_display_driver();
|
extern NbDisplayDriver board_2432s024_create_display_driver();
|
||||||
|
|
||||||
#endif //NANOBAKE_BOARD_2432S024_DISPLAY_H
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@ -1,8 +1,13 @@
|
|||||||
#ifndef NANOBAKE_BOARD_2432S024_TOUCH_H
|
#pragma once
|
||||||
#define NANOBAKE_BOARD_2432S024_TOUCH_H
|
|
||||||
|
|
||||||
#include "nb_touch.h"
|
#include "nb_touch.h"
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
extern "C" {
|
||||||
|
#endif
|
||||||
|
|
||||||
NbTouchDriver board_2432s024_create_touch_driver();
|
NbTouchDriver board_2432s024_create_touch_driver();
|
||||||
|
|
||||||
#endif // NANOBAKE_BOARD_2432S024_TOUCH_H
|
#ifdef __cplusplus
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|||||||
@ -1,8 +1,7 @@
|
|||||||
#include "nanobake.h"
|
#include "nanobake.h"
|
||||||
|
|
||||||
// Hardware
|
// Hardware
|
||||||
#include "board_2432s024_touch.h"
|
#include "board_2432s024.h"
|
||||||
#include "board_2432s024_display.h"
|
|
||||||
|
|
||||||
// Apps
|
// Apps
|
||||||
#include "hello_world/hello_world.h"
|
#include "hello_world/hello_world.h"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user