board implementation cleanup

implemented proper C/C++ practices
other cleanup
This commit is contained in:
Ken Van Hoeylandt 2023-12-27 16:46:20 +01:00
parent 11f26d4980
commit 570df0640d
4 changed files with 18 additions and 11 deletions

View File

@ -1,6 +1,4 @@
#define NANOBAKE_BOARD_2432S024_H
#pragma once
#include "board_2432s024_display.h"
#include "board_2432s024_touch.h"
#endif // NANOBAKE_BOARD_2432S024_H

View File

@ -1,8 +1,13 @@
#ifndef NANOBAKE_BOARD_2432S024_DISPLAY_H
#define NANOBAKE_BOARD_2432S024_DISPLAY_H
#pragma once
#include "nb_display.h"
#ifdef __cplusplus
extern "C" {
#endif
extern NbDisplayDriver board_2432s024_create_display_driver();
#endif //NANOBAKE_BOARD_2432S024_DISPLAY_H
#ifdef __cplusplus
}
#endif

View File

@ -1,8 +1,13 @@
#ifndef NANOBAKE_BOARD_2432S024_TOUCH_H
#define NANOBAKE_BOARD_2432S024_TOUCH_H
#pragma once
#include "nb_touch.h"
#ifdef __cplusplus
extern "C" {
#endif
NbTouchDriver board_2432s024_create_touch_driver();
#endif // NANOBAKE_BOARD_2432S024_TOUCH_H
#ifdef __cplusplus
}
#endif

View File

@ -1,8 +1,7 @@
#include "nanobake.h"
// Hardware
#include "board_2432s024_touch.h"
#include "board_2432s024_display.h"
#include "board_2432s024.h"
// Apps
#include "hello_world/hello_world.h"