Mercurial > public > hwos_code
comparison src/compass_calib.c @ 634:4050675965ea
3.10 stable release
author | heinrichsweikamp |
---|---|
date | Tue, 28 Apr 2020 17:34:31 +0200 |
parents | cd58f7fc86db |
children | bc214815deb2 |
comparison
equal
deleted
inserted
replaced
633:690c48db7b5b | 634:4050675965ea |
---|---|
1 ///////////////////////////////////////////////////////////////////////////// | 1 ///////////////////////////////////////////////////////////////////////////// |
2 // | 2 // |
3 // compass_calib.c next generation V3.03.4 | 3 // compass_calib.c next generation V3.09.4 |
4 // | 4 // |
5 // Calibrate hard-iron for magnetic compass measurements. | 5 // Calibrate hard-iron for magnetic compass measurements. |
6 // Copyright (c) 2012-2019, JD Gascuel, HeinrichsWeikamp, all rights reserved. | 6 // Copyright (c) 2012-2019, JD Gascuel, HeinrichsWeikamp, all rights reserved. |
7 // | 7 // |
8 ////////////////////////////////////////////////////////////////////////////// | 8 ////////////////////////////////////////////////////////////////////////////// |
29 _asm \ | 29 _asm \ |
30 LFSR 1, 0x800 \ | 30 LFSR 1, 0x800 \ |
31 LFSR 2, 0x800 \ | 31 LFSR 2, 0x800 \ |
32 _endasm | 32 _endasm |
33 # pragma udata overlay bank9_compass | 33 # pragma udata overlay bank9_compass |
34 # pragma code compass_cal | |
34 #else | 35 #else |
35 # define RESET_C_STACK | 36 # define RESET_C_STACK |
36 #endif | 37 #endif |
37 | 38 |
38 ////////////////////////////////////////////////////////////////////////////// | 39 ////////////////////////////////////////////////////////////////////////////// |