Skip to content

Commit 41e4c17

Browse files
committed
Change congiguration defines prefix from AMAST_ to AM_
1 parent df15ed3 commit 41e4c17

File tree

7 files changed

+13
-13
lines changed

7 files changed

+13
-13
lines changed

libs/ao/cooperative/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* SOFTWARE.
2323
*/
2424

25-
#ifdef AMAST_AO_COOPERATIVE
25+
#ifdef AM_AO_COOPERATIVE
2626

2727
#include <stdbool.h>
2828
#include <stddef.h>
@@ -113,4 +113,4 @@ void am_ao_notify_event_queue_empty(void *ao) {
113113
am_bit_u64_clear(&g_am_ao_state.ready_aos, ((struct am_ao *)ao)->prio);
114114
}
115115

116-
#endif /* AMAST_AO_COOPERATIVE */
116+
#endif /* AM_AO_COOPERATIVE */

libs/ao/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ ao_src = [files('ao.c')]
2626
ao_c_args = []
2727
if ao_type == 'cooperative'
2828
ao_src += [files('cooperative' / 'port.c')]
29-
ao_c_args += ['-DAMAST_AO_COOPERATIVE']
29+
ao_c_args += ['-DAM_AO_COOPERATIVE']
3030
elif ao_type == 'preemptive'
3131
ao_src += [files('preemptive' / 'port.c')]
32-
ao_c_args += ['-DAMAST_AO_PREEMPTIVE']
32+
ao_c_args += ['-DAM_AO_PREEMPTIVE']
3333
endif
3434
src += ao_src
3535

libs/ao/preemptive/port.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* SOFTWARE.
2323
*/
2424

25-
#ifdef AMAST_AO_PREEMPTIVE
25+
#ifdef AM_AO_PREEMPTIVE
2626

2727
#include <stdbool.h>
2828
#include <stddef.h>
@@ -138,4 +138,4 @@ void am_ao_wait(void *ao) {
138138
am_pal_task_wait(ao_->task_id);
139139
}
140140

141-
#endif /* AMAST_AO_PREEMPTIVE */
141+
#endif /* AM_AO_PREEMPTIVE */

libs/pal/freertos/pal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Platform abstraction layer (PAL) API implementation for FreeRTOS
2929
*/
3030

31-
#ifdef AMAST_PAL_FREERTOS
31+
#ifdef AM_PAL_FREERTOS
3232

3333
#include "FreeRTOS.h"
3434

@@ -134,4 +134,4 @@ void am_pal_sleep_ms(int ms) {
134134
vTaskDelay(ticks);
135135
}
136136

137-
#endif /* AMAST_PAL_FREERTOS */
137+
#endif /* AM_PAL_FREERTOS */

libs/pal/posix/meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
pal_src = [files('pal.c')]
2626
src += pal_src
2727

28-
libpal = library('pal', [pal_src], c_args: ['-DAMAST_PAL_POSIX'], include_directories: inc)
28+
libpal = library('pal', [pal_src], c_args: ['-DAM_PAL_POSIX'], include_directories: inc)
2929
libpal_dep = declare_dependency(
3030
link_with : libpal,
3131
include_directories : inc,

libs/pal/posix/pal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Platform abstraction layer (PAL) API posix implementation
2929
*/
3030

31-
#ifdef AMAST_PAL_POSIX
31+
#ifdef AM_PAL_POSIX
3232

3333
#define _GNU_SOURCE
3434

@@ -350,4 +350,4 @@ void am_pal_dtor(void) {
350350
}
351351
}
352352

353-
#endif /* AMAST_PAL_POSIX */
353+
#endif /* AM_PAL_POSIX */

libs/pal/stubs/pal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* Platform abstraction layer (PAL) API stubs
2929
*/
3030

31-
#ifdef AMAST_PAL_STUBS
31+
#ifdef AM_PAL_STUBS
3232

3333
#include <stddef.h>
3434
#include <stdint.h>
@@ -81,4 +81,4 @@ void am_pal_sleep_ticks(int domain, int ticks) {
8181

8282
void am_pal_sleep_ms(int ms) { (void)ms; }
8383

84-
#endif /* AMAST_PAL_STUBS */
84+
#endif /* AM_PAL_STUBS */

0 commit comments

Comments
 (0)