We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 589ce11 commit 7045cc9Copy full SHA for 7045cc9
frdm-ke06z/source/CanNetbooting.hpp
@@ -38,7 +38,7 @@
38
#include "ProgramFlash.hpp"
39
40
41
-#define BUF_SIZE (256 + 48)
+constexpr const size_t BUF_SIZE = (256 + 48); // Page size plus some overhead
42
43
44
enum class NetbootingState {
frdm-ke06z/source/frdm-ke06z.cpp
@@ -19,9 +19,9 @@
19
#include <CanNetbooting.hpp>
20
/* TODO: insert other definitions and declarations here. */
21
22
-#define CAN_NODE_ID 0x801
23
-#define CAN_BAUDRATE 1000000U
24
-#define JUMP_ADDRESS 0x10000
+constexpr const uint32_t CAN_NODE_ID = 0x801;
+constexpr const uint32_t CAN_BAUDRATE = 1000000U;
+constexpr const uint32_t JUMP_ADDRESS = 0x10000;
25
26
/*
27
* @brief Application entry point.
0 commit comments