commit | 2bf27f5953cbdfa95ff3dec81f3db9f6c564e6e9 | [log] [tgz] |
---|---|---|
author | Paul He <pawpawhe@gmail.com> | Tue Nov 30 00:16:12 2021 +0800 |
committer | Carles CufĂ <carles.cufi@nordicsemi.no> | Thu Dec 02 10:53:55 2021 +0100 |
tree | cfaab84dbde16fc521b044da95b51550c321ae0c | |
parent | befac2a352493ecc3e2035dba3f2f1a1598baab0 [diff] |
samples: prod_consumer: use app_shared.h instead of main.h Normally main.c file doesn't have a header file, because it doesn't need to declare any interfaces to other modules. In this sample, it's better to put the shared variables in one place, and provide the interfaces to other modules, such as app_a, app_b, and main. Signed-off-by: Paul He <pawpawhe@gmail.com>