File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
31
31
class HMC ;
32
32
class InterruptCtrl ;
33
33
34
- # define PDM_VMODE_OFF 0x1F
34
+ constexpr auto PDM_VMODE_OFF = 0x1F ;
35
35
36
36
/* * Max. size of our framebuffer in bytes (RGB 13-inch, 16 bpp) */
37
- # define PDM_FB_SIZE_MAX (640 * 480 * 2 )
37
+ constexpr auto PDM_FB_SIZE_MAX = (640 * 480 * 2 );
38
38
39
39
/* * Fixed video modes supported by the PDM on-board video. */
40
40
enum PdmVideoMode : uint8_t {
@@ -50,14 +50,14 @@ class PdmOnboardVideo : public VideoCtrlBase {
50
50
PdmOnboardVideo ();
51
51
~PdmOnboardVideo () = default ;
52
52
53
- uint8_t get_video_mode () {
53
+ uint8_t get_video_mode () const {
54
54
return ((this ->video_mode & 0x1F ) | this ->blanking );
55
55
};
56
56
57
57
void set_video_mode (uint8_t new_mode);
58
58
void set_pixel_depth (uint8_t depth);
59
59
void set_vdac_config (uint8_t config);
60
- uint8_t get_vdac_config () {
60
+ uint8_t get_vdac_config () const {
61
61
return this ->vdac_mode ;
62
62
};
63
63
void set_clut_index (uint8_t index);
You can’t perform that action at this time.
0 commit comments