1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-13 08:40:26 +01:00

cpu/cortexm_common: Make cpu.h IWYU clean

There is clearly no reason `cpu.h` should `#include <stdio.h>`.

Also add an export pragma to `cpu_conf.h`, as portable code is
expected to include `cpu.h` (which exists across MCU families in RIOT),
and not `cpu_conf.h` (which only exists for some MCU families).
This commit is contained in:
Marian Buschsieweke 2024-11-27 09:04:33 +01:00
parent c507ebff43
commit faa3727b1f
No known key found for this signature in database
GPG Key ID: 758BD52517F79C41

View File

@ -30,12 +30,10 @@
#ifndef CPU_H
#define CPU_H
#include <stdio.h>
#include "irq.h"
#include "sched.h"
#include "thread.h"
#include "cpu_conf.h"
#include "cpu_conf.h" /* IWYU pragma: export */
#ifdef __cplusplus
extern "C" {