Skip to content

Commit 0cbaf59

Browse files
committed
Clean up trivial syntax
1 parent 9d14a40 commit 0cbaf59

14 files changed

Lines changed: 139 additions & 39 deletions

File tree

examples/chapter12_04/chapter12_04.cppproj

Lines changed: 86 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@
4242
<BootSegment>2</BootSegment>
4343
<AsfFrameworkConfig>
4444
<framework-data>
45-
<options />
46-
<configurations />
47-
<files />
48-
<documentation help="" />
49-
<offline-documentation help="" />
50-
<dependencies>
51-
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.39.0" />
52-
</dependencies>
53-
</framework-data>
45+
<options />
46+
<configurations />
47+
<files />
48+
<documentation help="" />
49+
<offline-documentation help="" />
50+
<dependencies>
51+
<content-extension eid="atmel.asf" uuidref="Atmel.ASF" version="3.39.0" />
52+
</dependencies>
53+
</framework-data>
5454
</AsfFrameworkConfig>
5555
<ResetRule>0</ResetRule>
5656
<EraseKey />
@@ -199,6 +199,12 @@
199199
<Compile Include="src\mcal\avr\mcal_cpu.h">
200200
<SubType>compile</SubType>
201201
</Compile>
202+
<Compile Include="src\mcal\avr\mcal_eep.cpp">
203+
<SubType>compile</SubType>
204+
</Compile>
205+
<Compile Include="src\mcal\avr\mcal_eep.h">
206+
<SubType>compile</SubType>
207+
</Compile>
202208
<Compile Include="src\mcal\avr\mcal_gpt.cpp">
203209
<SubType>compile</SubType>
204210
</Compile>
@@ -232,9 +238,39 @@
232238
<Compile Include="src\mcal\avr\mcal_port.h">
233239
<SubType>compile</SubType>
234240
</Compile>
241+
<Compile Include="src\mcal\avr\mcal_port_expander_microchip_mcp23s17.h">
242+
<SubType>compile</SubType>
243+
</Compile>
244+
<Compile Include="src\mcal\avr\mcal_port_pin_dummy.h">
245+
<SubType>compile</SubType>
246+
</Compile>
247+
<Compile Include="src\mcal\avr\mcal_port_word.h">
248+
<SubType>compile</SubType>
249+
</Compile>
250+
<Compile Include="src\mcal\avr\mcal_pwm.cpp">
251+
<SubType>compile</SubType>
252+
</Compile>
253+
<Compile Include="src\mcal\avr\mcal_pwm.h">
254+
<SubType>compile</SubType>
255+
</Compile>
256+
<Compile Include="src\mcal\avr\mcal_pwm_lcd.h">
257+
<SubType>compile</SubType>
258+
</Compile>
259+
<Compile Include="src\mcal\avr\mcal_pwm_timer1.h">
260+
<SubType>compile</SubType>
261+
</Compile>
235262
<Compile Include="src\mcal\avr\mcal_reg.h">
236263
<SubType>compile</SubType>
237264
</Compile>
265+
<Compile Include="src\mcal\avr\mcal_ser.h">
266+
<SubType>compile</SubType>
267+
</Compile>
268+
<Compile Include="src\mcal\avr\mcal_spi.cpp">
269+
<SubType>compile</SubType>
270+
</Compile>
271+
<Compile Include="src\mcal\avr\mcal_spi.h">
272+
<SubType>compile</SubType>
273+
</Compile>
238274
<Compile Include="src\mcal\avr\mcal_wdg.cpp">
239275
<SubType>compile</SubType>
240276
</Compile>
@@ -286,9 +322,6 @@
286322
<Compile Include="src\os\os_cfg.h">
287323
<SubType>compile</SubType>
288324
</Compile>
289-
<Compile Include="src\os\os_task_control_block.cpp">
290-
<SubType>compile</SubType>
291-
</Compile>
292325
<Compile Include="src\os\os_task_control_block.h">
293326
<SubType>compile</SubType>
294327
</Compile>
@@ -319,15 +352,18 @@
319352
<Compile Include="src\util\STL\impl\allocator_impl.h">
320353
<SubType>compile</SubType>
321354
</Compile>
322-
<Compile Include="src\util\STL\impl\avr\avr_atomic.h">
355+
<Compile Include="src\util\STL\impl\alloc_traits.h">
323356
<SubType>compile</SubType>
324357
</Compile>
325-
<Compile Include="src\util\STL\impl\avr\avr_float_limits.cpp">
358+
<Compile Include="src\util\STL\impl\avr\avr_atomic.h">
326359
<SubType>compile</SubType>
327360
</Compile>
328361
<Compile Include="src\util\STL\impl\cmath_impl_gamma.cpp">
329362
<SubType>compile</SubType>
330363
</Compile>
364+
<Compile Include="src\util\STL\impl\ptr_traits.h">
365+
<SubType>compile</SubType>
366+
</Compile>
331367
<Compile Include="src\util\STL\impl\stl_local_constexpr.h">
332368
<SubType>compile</SubType>
333369
</Compile>
@@ -417,12 +453,30 @@
417453
<None Include="src\util\STL\basic_string">
418454
<SubType>compile</SubType>
419455
</None>
456+
<None Include="src\util\STL\bitset">
457+
<SubType>compile</SubType>
458+
</None>
459+
<None Include="src\util\STL\cassert">
460+
<SubType>compile</SubType>
461+
</None>
462+
<None Include="src\util\STL\cerrno">
463+
<SubType>compile</SubType>
464+
</None>
420465
<None Include="src\util\STL\cfloat">
421466
<SubType>compile</SubType>
422467
</None>
468+
<None Include="src\util\STL\charconv">
469+
<SubType>compile</SubType>
470+
</None>
423471
<None Include="src\util\STL\chrono">
424472
<SubType>compile</SubType>
425473
</None>
474+
<None Include="src\util\STL\cinttypes">
475+
<SubType>compile</SubType>
476+
</None>
477+
<None Include="src\util\STL\ciso646">
478+
<SubType>compile</SubType>
479+
</None>
426480
<None Include="src\util\STL\climits">
427481
<SubType>compile</SubType>
428482
</None>
@@ -444,6 +498,9 @@
444498
<None Include="src\util\STL\cstdlib">
445499
<SubType>compile</SubType>
446500
</None>
501+
<None Include="src\util\STL\cstring">
502+
<SubType>compile</SubType>
503+
</None>
447504
<None Include="src\util\STL\ctime">
448505
<SubType>compile</SubType>
449506
</None>
@@ -465,9 +522,21 @@
465522
<None Include="src\util\STL\numeric">
466523
<SubType>compile</SubType>
467524
</None>
525+
<None Include="src\util\STL\random">
526+
<SubType>compile</SubType>
527+
</None>
468528
<None Include="src\util\STL\ratio">
469529
<SubType>compile</SubType>
470530
</None>
531+
<None Include="src\util\STL\span">
532+
<SubType>compile</SubType>
533+
</None>
534+
<None Include="src\util\STL\stdexcept">
535+
<SubType>compile</SubType>
536+
</None>
537+
<None Include="src\util\STL\stdfloat">
538+
<SubType>compile</SubType>
539+
</None>
471540
<None Include="src\util\STL\string">
472541
<SubType>compile</SubType>
473542
</None>
@@ -483,6 +552,9 @@
483552
<None Include="src\util\STL\vector">
484553
<SubType>compile</SubType>
485554
</None>
555+
<None Include="src\util\STL\version">
556+
<SubType>compile</SubType>
557+
</None>
486558
<None Include="src\util\STL_C++XX_stdfloat\cstdfloat">
487559
<SubType>compile</SubType>
488560
</None>

ref_app/src/app/led/app_led.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
namespace app { namespace led {
1212

13-
void task_init();
14-
void task_func();
13+
auto task_init() -> void;
14+
auto task_func() -> void;
1515

1616
} // namespace led
1717
} // namespace app

ref_app/src/math/constants/constants.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 2012 - 2018.
2+
// Copyright Christopher Kormanyos 2012 - 2025.
33
// Distributed under the Boost Software License,
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)
66
//
77

8-
#ifndef CONSTANTS_2012_01_09_H_
9-
#define CONSTANTS_2012_01_09_H_
8+
#ifndef CONSTANTS_2012_01_09_H
9+
#define CONSTANTS_2012_01_09_H
1010

1111
namespace math
1212
{
@@ -80,4 +80,4 @@
8080
}
8181
}
8282

83-
#endif // CONSTANTS_2012_01_09_H_
83+
#endif // CONSTANTS_2012_01_09_H

ref_app/src/math/functions/math_functions_bessel.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
21
///////////////////////////////////////////////////////////////////////////////
3-
// Copyright Christopher Kormanyos 2014 - 2018.
2+
// Copyright Christopher Kormanyos 2014 - 2025.
43
// Distributed under the Boost Software License,
54
// Version 1.0. (See accompanying file LICENSE_1_0.txt
65
// or copy at http://www.boost.org/LICENSE_1_0.txt)
76
//
87

9-
#ifndef MATH_FUNCTIONS_BESSEL_2014_04_30_H_
10-
#define MATH_FUNCTIONS_BESSEL_2014_04_30_H_
8+
#ifndef MATH_FUNCTIONS_BESSEL_2014_04_30_H
9+
#define MATH_FUNCTIONS_BESSEL_2014_04_30_H
1110

1211
#include <cmath>
1312

@@ -37,4 +36,4 @@
3736
}
3837
} // namespace math::functions
3938

40-
#endif // MATH_FUNCTIONS_BESSEL_2014_04_30_H_
39+
#endif // MATH_FUNCTIONS_BESSEL_2014_04_30_H

ref_app/src/math/functions/math_functions_hypergeometric.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 2014 - 2024.
2+
// Copyright Christopher Kormanyos 2014 - 2025.
33
// Distributed under the Boost Software License,
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)

ref_app/src/math/functions/math_functions_legendre.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
21
///////////////////////////////////////////////////////////////////////////////
3-
// Copyright Christopher Kormanyos 2014 - 2018.
2+
// Copyright Christopher Kormanyos 2014 - 2025.
43
// Distributed under the Boost Software License,
54
// Version 1.0. (See accompanying file LICENSE_1_0.txt
65
// or copy at http://www.boost.org/LICENSE_1_0.txt)
76
//
87

9-
#ifndef MATH_FUNCTIONS_LEGENDRE_2014_04_30_H_
10-
#define MATH_FUNCTIONS_LEGENDRE_2014_04_30_H_
8+
#ifndef MATH_FUNCTIONS_LEGENDRE_2014_04_30_H
9+
#define MATH_FUNCTIONS_LEGENDRE_2014_04_30_H
1110

1211
#include <cmath>
1312

@@ -46,4 +45,4 @@
4645
}
4746
} // namespace math::functions
4847

49-
#endif // MATH_FUNCTIONS_LEGENDRE_2014_04_30_H_
48+
#endif // MATH_FUNCTIONS_LEGENDRE_2014_04_30_H

ref_app/src/sys/idle/sys_idle.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 2007 - 2023.
2+
// Copyright Christopher Kormanyos 2007 - 2025.
33
// Distributed under the Boost Software License,
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -9,7 +9,7 @@
99

1010
namespace sys { namespace idle {
1111

12-
auto task_init() noexcept -> void;
12+
auto task_init() -> void;
1313
auto task_func() -> void;
1414

1515
} // namespace idle

ref_app/src/sys/mon/sys_mon.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 2007 - 2022.
2+
// Copyright Christopher Kormanyos 2007 - 2025.
33
// Distributed under the Boost Software License,
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)

ref_app/src/util/memory/util_factory.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
///////////////////////////////////////////////////////////////////////////////
2-
// Copyright Christopher Kormanyos 2007 - 2024.
2+
// Copyright Christopher Kormanyos 2007 - 2025.
33
// Distributed under the Boost Software License,
44
// Version 1.0. (See accompanying file LICENSE_1_0.txt
55
// or copy at http://www.boost.org/LICENSE_1_0.txt)

ref_app/target/app/make/app_files.gmk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#
2-
# Copyright Christopher Kormanyos 2007 - 2024.
2+
# Copyright Christopher Kormanyos 2007 - 2025.
33
# Distributed under the Boost Software License,
44
# Version 1.0. (See accompanying file LICENSE_1_0.txt
55
# or copy at http://www.boost.org/LICENSE_1_0.txt)

0 commit comments

Comments
 (0)