Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(431)

Side by Side Diff: platforms/stm/disco_dartino/src/globals.h

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, the Dartino project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE.md file. 3 // BSD-style license that can be found in the LICENSE.md file.
4 4
5 #ifndef PLATFORMS_STM_DISCO_FLETCH_SRC_GLOBALS_H_ 5 #ifndef PLATFORMS_STM_DISCO_DARTINO_SRC_GLOBALS_H_
6 #define PLATFORMS_STM_DISCO_FLETCH_SRC_GLOBALS_H_ 6 #define PLATFORMS_STM_DISCO_DARTINO_SRC_GLOBALS_H_
7 7
8 // Use 4kb pages. 8 // Use 4kb pages.
9 #define PAGE_SIZE_SHIFT 12 9 #define PAGE_SIZE_SHIFT 12
10 #define PAGE_SIZE (1 << PAGE_SIZE_SHIFT) 10 #define PAGE_SIZE (1 << PAGE_SIZE_SHIFT)
11 11
12 #define MAX(a, b) ((a) > (b) ? (a) : (b)) 12 #define MAX(a, b) ((a) > (b) ? (a) : (b))
13 #define MIN(a, b) ((a) < (b) ? (a) : (b)) 13 #define MIN(a, b) ((a) < (b) ? (a) : (b))
14 #define ROUNDUP(a, b) (((a) + ((b) - 1)) & ~((b) - 1)) 14 #define ROUNDUP(a, b) (((a) + ((b) - 1)) & ~((b) - 1))
15 #define ROUNDDOWN(a, b) ((a) & ~((b) - 1)) 15 #define ROUNDDOWN(a, b) ((a) & ~((b) - 1))
16 #define ALIGN(a, b) ROUNDUP(a, b) 16 #define ALIGN(a, b) ROUNDUP(a, b)
17 #define IS_ALIGNED(a, b) (!(((uintptr_t)(a)) & (((uintptr_t)(b)) - 1))) 17 #define IS_ALIGNED(a, b) (!(((uintptr_t)(a)) & (((uintptr_t)(b)) - 1)))
18 #define PAGE_ALIGN(x) ALIGN(x, PAGE_SIZE) 18 #define PAGE_ALIGN(x) ALIGN(x, PAGE_SIZE)
19 #define IS_PAGE_ALIGNED(x) IS_ALIGNED(x, PAGE_SIZE) 19 #define IS_PAGE_ALIGNED(x) IS_ALIGNED(x, PAGE_SIZE)
20 20
21 #endif // PLATFORMS_STM_DISCO_FLETCH_SRC_GLOBALS_H_ 21 #endif // PLATFORMS_STM_DISCO_DARTINO_SRC_GLOBALS_H_
OLDNEW
« no previous file with comments | « platforms/stm/disco_dartino/src/freertos.cc ('k') | platforms/stm/disco_dartino/src/lcd_log_conf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698