comparison Discovery/Inc/crcmodel.h @ 776:45b8f3c2acce

Add support for a configurable compass declination in a range of -99 to 99 degrees. This allows the displayed compass reading to be configured to take into account the compass declination (difference between the measured magnetic North direction and the actual geographical North direction) that has different values for different locations around the globe. See https://magnetic-declination.com/ for more information. (mikeller)
author heinrichsweikamp
date Thu, 18 May 2023 09:49:17 +0200
parents 5f11787b4f42
children
comparison
equal deleted inserted replaced
775:46c6d2380d4e 776:45b8f3c2acce
110 /* would be cumbersome to distribute with this package. The DONE_STYLE is the */ 110 /* would be cumbersome to distribute with this package. The DONE_STYLE is the */
111 /* idempotence symbol used in my style header file. */ 111 /* idempotence symbol used in my style header file. */
112 112
113 #ifndef DONE_STYLE 113 #ifndef DONE_STYLE
114 114
115 #include <stdbool.h>
116
115 typedef unsigned long ulong; 117 typedef unsigned long ulong;
116 typedef unsigned bool;
117 typedef unsigned char * p_ubyte_; 118 typedef unsigned char * p_ubyte_;
118 119
119 #ifndef TRUE 120 #ifndef TRUE
120 #define FALSE 0 121 #define FALSE 0
121 #define TRUE 1 122 #define TRUE 1