diff --git a/devices/ble_hci/common-hal/_bleio/Adapter.h b/devices/ble_hci/common-hal/_bleio/Adapter.h index 9c849a8def410..fda1c11d6cb08 100644 --- a/devices/ble_hci/common-hal/_bleio/Adapter.h +++ b/devices/ble_hci/common-hal/_bleio/Adapter.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_ADAPTER_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_ADAPTER_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -75,5 +74,3 @@ uint16_t bleio_adapter_max_attribute_handle(bleio_adapter_obj_t *adapter); void bleio_adapter_background(bleio_adapter_obj_t *adapter); void bleio_adapter_gc_collect(bleio_adapter_obj_t *adapter); void bleio_adapter_reset(bleio_adapter_obj_t *adapter); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_ADAPTER_H diff --git a/devices/ble_hci/common-hal/_bleio/Attribute.h b/devices/ble_hci/common-hal/_bleio/Attribute.h index a838ba0e95d3c..5428c2282a334 100644 --- a/devices/ble_hci/common-hal/_bleio/Attribute.h +++ b/devices/ble_hci/common-hal/_bleio/Attribute.h @@ -4,12 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_ATTRIBUTE_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_ATTRIBUTE_H +#pragma once #include "shared-module/_bleio/Attribute.h" #include "shared-bindings/_bleio/UUID.h" bleio_uuid_obj_t *bleio_attribute_get_uuid(mp_obj_t *attribute); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_ATTRIBUTE_H diff --git a/devices/ble_hci/common-hal/_bleio/Characteristic.h b/devices/ble_hci/common-hal/_bleio/Characteristic.h index c30cd8bdfddda..d925c0e263a4e 100644 --- a/devices/ble_hci/common-hal/_bleio/Characteristic.h +++ b/devices/ble_hci/common-hal/_bleio/Characteristic.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CHARACTERISTIC_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CHARACTERISTIC_H +#pragma once #include "shared-bindings/_bleio/Attribute.h" #include "common-hal/_bleio/Descriptor.h" @@ -39,5 +38,3 @@ bool bleio_characteristic_set_local_value(bleio_characteristic_obj_t *self, mp_b void bleio_characteristic_set_observer(bleio_characteristic_obj_t *self, mp_obj_t observer); void bleio_characteristic_clear_observer(bleio_characteristic_obj_t *self); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CHARACTERISTIC_H diff --git a/devices/ble_hci/common-hal/_bleio/CharacteristicBuffer.h b/devices/ble_hci/common-hal/_bleio/CharacteristicBuffer.h index ee4d1a3f3d528..1a98df40b526a 100644 --- a/devices/ble_hci/common-hal/_bleio/CharacteristicBuffer.h +++ b/devices/ble_hci/common-hal/_bleio/CharacteristicBuffer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CHARACTERISTICBUFFER_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CHARACTERISTICBUFFER_H +#pragma once #include "py/ringbuf.h" #include "shared-bindings/_bleio/Characteristic.h" @@ -19,5 +18,3 @@ typedef struct { } bleio_characteristic_buffer_obj_t; void bleio_characteristic_buffer_update(bleio_characteristic_buffer_obj_t *self, mp_buffer_info_t *bufinfo); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CHARACTERISTICBUFFER_H diff --git a/devices/ble_hci/common-hal/_bleio/Connection.h b/devices/ble_hci/common-hal/_bleio/Connection.h index ce693edf25c71..04edb104ddcb2 100644 --- a/devices/ble_hci/common-hal/_bleio/Connection.h +++ b/devices/ble_hci/common-hal/_bleio/Connection.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CONNECTION_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CONNECTION_H +#pragma once #include @@ -66,5 +65,3 @@ uint16_t bleio_connection_get_conn_handle(bleio_connection_obj_t *self); mp_obj_t bleio_connection_new_from_internal(bleio_connection_internal_t *connection); bleio_connection_internal_t *bleio_conn_handle_to_connection(uint16_t conn_handle); void bleio_connection_clear(bleio_connection_internal_t *self); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_CONNECTION_H diff --git a/devices/ble_hci/common-hal/_bleio/Descriptor.h b/devices/ble_hci/common-hal/_bleio/Descriptor.h index fc17e532a5dc4..a34961352034b 100644 --- a/devices/ble_hci/common-hal/_bleio/Descriptor.h +++ b/devices/ble_hci/common-hal/_bleio/Descriptor.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_DESCRIPTOR_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_DESCRIPTOR_H +#pragma once #include "py/obj.h" @@ -29,5 +28,3 @@ typedef struct _bleio_descriptor_obj { bleio_attribute_security_mode_t write_perm; struct _bleio_descriptor_obj *next; } bleio_descriptor_obj_t; - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_DESCRIPTOR_H diff --git a/devices/ble_hci/common-hal/_bleio/PacketBuffer.h b/devices/ble_hci/common-hal/_bleio/PacketBuffer.h index 4ef764db8a259..563f365d21b01 100644 --- a/devices/ble_hci/common-hal/_bleio/PacketBuffer.h +++ b/devices/ble_hci/common-hal/_bleio/PacketBuffer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_PACKETBUFFER_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_PACKETBUFFER_H +#pragma once #include "py/ringbuf.h" #include "shared-bindings/_bleio/Characteristic.h" @@ -30,5 +29,3 @@ typedef struct { } bleio_packet_buffer_obj_t; void bleio_packet_buffer_update(bleio_packet_buffer_obj_t *self, mp_buffer_info_t *bufinfo); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_PACKETBUFFER_H diff --git a/devices/ble_hci/common-hal/_bleio/Service.h b/devices/ble_hci/common-hal/_bleio/Service.h index 8a58c91db23be..ccaba5704639f 100644 --- a/devices/ble_hci/common-hal/_bleio/Service.h +++ b/devices/ble_hci/common-hal/_bleio/Service.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_SERVICE_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_SERVICE_H +#pragma once #include "py/objlist.h" #include "common-hal/_bleio/UUID.h" @@ -30,5 +29,3 @@ typedef struct bleio_service_obj { } bleio_service_obj_t; void bleio_service_from_connection(bleio_service_obj_t *self, mp_obj_t connection); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_SERVICE_H diff --git a/devices/ble_hci/common-hal/_bleio/UUID.h b/devices/ble_hci/common-hal/_bleio/UUID.h index ee492e850f143..3549555521efa 100644 --- a/devices/ble_hci/common-hal/_bleio/UUID.h +++ b/devices/ble_hci/common-hal/_bleio/UUID.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_UUID_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_UUID_H +#pragma once #include "py/obj.h" @@ -34,5 +33,3 @@ typedef struct { } bleio_uuid_obj_t; uint16_t bleio_uuid_get_uuid16_or_unknown(bleio_uuid_obj_t *uuid); - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_UUID_H diff --git a/devices/ble_hci/common-hal/_bleio/__init__.h b/devices/ble_hci/common-hal/_bleio/__init__.h index 42f5d77af9dab..ae1d3c6559c93 100644 --- a/devices/ble_hci/common-hal/_bleio/__init__.h +++ b/devices/ble_hci/common-hal/_bleio/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_INIT_H -#define MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_INIT_H +#pragma once #include @@ -37,5 +36,3 @@ extern bool vm_used_ble; // UUID shared by all CCCD's. extern bleio_uuid_obj_t cccd_uuid; - -#endif // MICROPY_INCLUDED_BLE_HCI_COMMON_HAL_INIT_H diff --git a/devices/ble_hci/common-hal/_bleio/att.h b/devices/ble_hci/common-hal/_bleio/att.h index 0482bea178d77..99cedfbca7083 100644 --- a/devices/ble_hci/common-hal/_bleio/att.h +++ b/devices/ble_hci/common-hal/_bleio/att.h @@ -26,8 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef MICROPY_INCLUDED_DEVICES_BLE_HCI_COMMON_HAL_BLEIO_ATT_H -#define MICROPY_INCLUDED_DEVICES_BLE_HCI_COMMON_HAL_BLEIO_ATT_H +#pragma once #include #include @@ -59,5 +58,3 @@ void att_remove_connection(uint16_t conn_handle, uint8_t reason); void att_set_max_mtu(uint16_t max_mtu); void att_set_timeout(unsigned long timeout); void att_write_cmd(uint16_t conn_handle, uint16_t handle, const uint8_t *data, uint8_t data_len); - -#endif // MICROPY_INCLUDED_DEVICES_BLE_HCI_COMMON_HAL_BLEIO_ATT_H diff --git a/devices/ble_hci/common-hal/_bleio/hci.h b/devices/ble_hci/common-hal/_bleio/hci.h index 06e72482d63f9..fffed7ee15120 100644 --- a/devices/ble_hci/common-hal/_bleio/hci.h +++ b/devices/ble_hci/common-hal/_bleio/hci.h @@ -26,8 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef MICROPY_INCLUDED_DEVICES_BLE_HCI_COMMON_HAL_BLEIO_HCI_H -#define MICROPY_INCLUDED_DEVICES_BLE_HCI_COMMON_HAL_BLEIO_HCI_H +#pragma once #include @@ -86,5 +85,3 @@ hci_result_t hci_reset(void); hci_result_t hci_send_acl_pkt(uint16_t handle, uint8_t cid, uint16_t data_len, uint8_t *data); hci_result_t hci_set_event_mask(uint64_t event_mask); - -#endif // MICROPY_INCLUDED_DEVICES_BLE_HCI_COMMON_HAL_BLEIO_HCI_H diff --git a/devices/ble_hci/common-hal/_bleio/hci_include/addr.h b/devices/ble_hci/common-hal/_bleio/hci_include/addr.h index 5d28cecf5e99f..d21f1b484f187 100644 --- a/devices/ble_hci/common-hal/_bleio/hci_include/addr.h +++ b/devices/ble_hci/common-hal/_bleio/hci_include/addr.h @@ -11,8 +11,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ -#ifndef ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_ -#define ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_ +#pragma once #include #include @@ -93,5 +92,3 @@ static inline bool bt_addr_le_is_identity(const bt_addr_le_t *addr) { /** * @} */ - -#endif /* ZEPHYR_INCLUDE_BLUETOOTH_ADDR_H_ */ diff --git a/devices/ble_hci/common-hal/_bleio/hci_include/att.h b/devices/ble_hci/common-hal/_bleio/hci_include/att.h index 39a32d5e6dd34..5a69ce0969b33 100644 --- a/devices/ble_hci/common-hal/_bleio/hci_include/att.h +++ b/devices/ble_hci/common-hal/_bleio/hci_include/att.h @@ -10,8 +10,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ -#ifndef ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ -#define ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ +#pragma once /* Error codes for Error response PDU */ #define BT_ATT_ERR_INVALID_HANDLE 0x01 @@ -39,5 +38,3 @@ #define BT_ATT_ERR_CCC_IMPROPER_CONF 0xfd #define BT_ATT_ERR_PROCEDURE_IN_PROGRESS 0xfe #define BT_ATT_ERR_OUT_OF_RANGE 0xff - -#endif /* ZEPHYR_INCLUDE_BLUETOOTH_ATT_H_ */ diff --git a/devices/ble_hci/common-hal/_bleio/hci_include/hci.h b/devices/ble_hci/common-hal/_bleio/hci_include/hci.h index ffab0a54a56c2..f4626222bd9a4 100644 --- a/devices/ble_hci/common-hal/_bleio/hci_include/hci.h +++ b/devices/ble_hci/common-hal/_bleio/hci_include/hci.h @@ -9,8 +9,7 @@ * * SPDX-License-Identifier: Apache-2.0 */ -#ifndef ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_ -#define ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_ +#pragma once #include // for __packed @@ -1769,5 +1768,3 @@ struct bt_hci_evt_le_chan_sel_algo { #define BT_EVT_MASK_LE_CHAN_SEL_ALGO BT_EVT_BIT(19) // - -#endif /* ZEPHYR_INCLUDE_BLUETOOTH_HCI_H_ */ diff --git a/devices/ble_hci/common-hal/_bleio/hci_include/l2cap_internal.h b/devices/ble_hci/common-hal/_bleio/hci_include/l2cap_internal.h index f66bac3c3527d..aa993e93f52c2 100644 --- a/devices/ble_hci/common-hal/_bleio/hci_include/l2cap_internal.h +++ b/devices/ble_hci/common-hal/_bleio/hci_include/l2cap_internal.h @@ -11,6 +11,8 @@ * SPDX-License-Identifier: Apache-2.0 */ +#pragma once + #include // for __packed #include diff --git a/devices/ble_hci/supervisor/bluetooth.h b/devices/ble_hci/supervisor/bluetooth.h index 937bebc217fcc..3d48ccaab7da7 100644 --- a/devices/ble_hci/supervisor/bluetooth.h +++ b/devices/ble_hci/supervisor/bluetooth.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_DEVICE_BLE_HCI_SUPERVISOR_BLUETOOTH_H -#define MICROPY_INCLUDED_DEVICE_BLE_HCI_SUPERVISOR_BLUETOOTH_H +#pragma once void supervisor_start_bluetooth(void); bool supervisor_bluetooth_hook(ble_evt_t *ble_evt); void supervisor_bluetooth_background(void); - -#endif // MICROPY_INCLUDED_DEVICE_BLE_HCI_SUPERVISOR_BLUETOOTH_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_adc_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_adc_config.h index 38dd90b882a59..245c22822743d 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_adc_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_adc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_adc_config.h */ -#ifndef HPL_ADC_CONFIG_H -#define HPL_ADC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -298,5 +297,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_ADC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_dac_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_dac_config.h index 7fd61880b97ab..272008219db1d 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_dac_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_dac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dac_config.h */ -#ifndef HPL_DAC_CONFIG_H -#define HPL_DAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -88,5 +87,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_dmac_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_dmac_config.h index 84fde946324f1..d7cbb136ce339 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_dmac_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_dmac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dmac_config.h */ -#ifndef HPL_DMAC_CONFIG_H -#define HPL_DMAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -3059,5 +3058,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DMAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_gclk_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_gclk_config.h index 1b92d9754dd84..6a0cd2d4d1466 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_gclk_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_gclk_config.h @@ -17,8 +17,7 @@ /* Auto-generated config file hpl_gclk_config.h */ -#ifndef HPL_GCLK_CONFIG_H -#define HPL_GCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -711,5 +710,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_GCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_nvmctrl_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_nvmctrl_config.h index 9b2c815585ab4..1b1d499c940ab 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_nvmctrl_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_nvmctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_nvmctrl_config.h */ -#ifndef HPL_NVMCTRL_CONFIG_H -#define HPL_NVMCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -40,5 +39,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_NVMCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_pm_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_pm_config.h index 2a9285b4295d7..b7c5fcbf16f41 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_pm_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_pm_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_pm_config.h */ -#ifndef HPL_PM_CONFIG_H -#define HPL_PM_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -136,5 +135,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_PM_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_rtc_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_rtc_config.h index 1b7391b4a2a54..f81bc79a10b63 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_rtc_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_rtc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_rtc_config.h */ -#ifndef HPL_RTC_CONFIG_H -#define HPL_RTC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -127,5 +126,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_RTC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_sercom_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_sercom_config.h index a4b836801df8b..5979d1ee9979f 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_sercom_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_sercom_config.h @@ -21,8 +21,7 @@ #define PROTOTYPE_SERCOM_USART_ASYNC_CLOCK_FREQUENCY CONF_GCLK_SERCOM2_CORE_FREQUENCY /* Auto-generated config file hpl_sercom_config.h */ -#ifndef HPL_SERCOM_CONFIG_H -#define HPL_SERCOM_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -734,5 +733,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SERCOM_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h index c27511c71d5f4..43235bdee7201 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_sysctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_sysctrl_config.h */ -#ifndef HPL_SYSCTRL_CONFIG_H -#define HPL_SYSCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -680,5 +679,3 @@ #define CONF_DPLL_FILTER SYSCTRL_DPLLCTRLB_FILTER_DEFAULT_Val // <<< end of configuration section >>> - -#endif // HPL_SYSCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_systick_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_systick_config.h index 48280a3de7612..ccf06c5dc1f67 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_systick_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_systick_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_systick_config.h */ -#ifndef HPL_SYSTICK_CONFIG_H -#define HPL_SYSTICK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -20,5 +19,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_SYSTICK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/hpl_tc_config.h b/ports/atmel-samd/asf4_conf/samd21/hpl_tc_config.h index f44feb865bc50..f6a5046493c9b 100644 --- a/ports/atmel-samd/asf4_conf/samd21/hpl_tc_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/hpl_tc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_tc_config.h */ -#ifndef HPL_TC_CONFIG_H -#define HPL_TC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -183,5 +182,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd21/peripheral_clk_config.h b/ports/atmel-samd/asf4_conf/samd21/peripheral_clk_config.h index ce63a49f99abc..6679829fac06e 100644 --- a/ports/atmel-samd/asf4_conf/samd21/peripheral_clk_config.h +++ b/ports/atmel-samd/asf4_conf/samd21/peripheral_clk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file peripheral_clk_config.h */ -#ifndef PERIPHERAL_CLK_CONFIG_H -#define PERIPHERAL_CLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -435,5 +434,3 @@ #endif // <<< end of configuration section >>> - -#endif // PERIPHERAL_CLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_adc_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_adc_config.h index 3ba63a4141833..d4e2246beb4b1 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_adc_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_adc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_adc_config.h */ -#ifndef HPL_ADC_CONFIG_H -#define HPL_ADC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -305,5 +304,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_ADC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_dac_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_dac_config.h index 47924cf0955fc..9a80e18c57599 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_dac_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_dac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dac_config.h */ -#ifndef HPL_DAC_CONFIG_H -#define HPL_DAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -171,5 +170,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_dmac_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_dmac_config.h index 479965e59ed34..07a032571e977 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_dmac_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_dmac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dmac_config.h */ -#ifndef HPL_DMAC_CONFIG_H -#define HPL_DMAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -7279,5 +7278,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DMAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_gclk_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_gclk_config.h index 906dfac7f7c51..eac42117da1b2 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_gclk_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_gclk_config.h @@ -21,8 +21,7 @@ #define CIRCUITPY_GCLK_INIT_1ST 0xffff /* Auto-generated config file hpl_gclk_config.h */ -#ifndef HPL_GCLK_CONFIG_H -#define HPL_GCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -926,5 +925,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_GCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_mclk_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_mclk_config.h index 263898c6b11f2..e4d9ab3924f80 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_mclk_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_mclk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_mclk_config.h */ -#ifndef HPL_MCLK_CONFIG_H -#define HPL_MCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -106,5 +105,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_MCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_nvmctrl_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_nvmctrl_config.h index 26e8cf5580541..f490c92571913 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_nvmctrl_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_nvmctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_nvmctrl_config.h */ -#ifndef HPL_NVMCTRL_CONFIG_H -#define HPL_NVMCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -38,5 +37,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_NVMCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_osc32kctrl_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_osc32kctrl_config.h index d2a6b744a9a62..3e3499c3350e4 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_osc32kctrl_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_osc32kctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_osc32kctrl_config.h */ -#ifndef HPL_OSC32KCTRL_CONFIG_H -#define HPL_OSC32KCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -165,5 +164,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_OSC32KCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_oscctrl_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_oscctrl_config.h index e8d1a04128e9a..3d78515d4f206 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_oscctrl_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_oscctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_oscctrl_config.h */ -#ifndef HPL_OSCCTRL_CONFIG_H -#define HPL_OSCCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -636,5 +635,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_OSCCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_rtc_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_rtc_config.h index 16d6a53071699..d66f93e34ee3a 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_rtc_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_rtc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_rtc_config.h */ -#ifndef HPL_RTC_CONFIG_H -#define HPL_RTC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -147,5 +146,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_RTC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_sdhc_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_sdhc_config.h index cdf32e51f3283..8c692a7d83c49 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_sdhc_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_sdhc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_sdhc_config.h */ -#ifndef HPL_SDHC_CONFIG_H -#define HPL_SDHC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -26,5 +25,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SDHC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_sercom_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_sercom_config.h index c87a35cc7f3e9..e05560e635823 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_sercom_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_sercom_config.h @@ -21,8 +21,7 @@ #define PROTOTYPE_SERCOM_USART_ASYNC_CLOCK_FREQUENCY CONF_GCLK_SERCOM2_CORE_FREQUENCY /* Auto-generated config file hpl_sercom_config.h */ -#ifndef HPL_SERCOM_CONFIG_H -#define HPL_SERCOM_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -753,5 +752,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SERCOM_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_systick_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_systick_config.h index 48280a3de7612..ccf06c5dc1f67 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_systick_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_systick_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_systick_config.h */ -#ifndef HPL_SYSTICK_CONFIG_H -#define HPL_SYSTICK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -20,5 +19,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_SYSTICK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_tc_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_tc_config.h index b73f6143bfaec..c61ae5f8d3817 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_tc_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_tc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_tc_config.h */ -#ifndef HPL_TC_CONFIG_H -#define HPL_TC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -211,5 +210,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/hpl_trng_config.h b/ports/atmel-samd/asf4_conf/samd51/hpl_trng_config.h index e632208f74c3f..b247e6936c31a 100644 --- a/ports/atmel-samd/asf4_conf/samd51/hpl_trng_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/hpl_trng_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_trng_config.h */ -#ifndef HPL_TRNG_CONFIG_H -#define HPL_TRNG_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -29,5 +28,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TRNG_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h b/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h index 1dc0f8091e716..d6fe3b213a03b 100644 --- a/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h +++ b/ports/atmel-samd/asf4_conf/samd51/peripheral_clk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file peripheral_clk_config.h */ -#ifndef PERIPHERAL_CLK_CONFIG_H -#define PERIPHERAL_CLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -1172,5 +1171,3 @@ #endif // <<< end of configuration section >>> - -#endif // PERIPHERAL_CLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_adc_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_adc_config.h index 3ba63a4141833..d4e2246beb4b1 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_adc_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_adc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_adc_config.h */ -#ifndef HPL_ADC_CONFIG_H -#define HPL_ADC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -305,5 +304,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_ADC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_dac_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_dac_config.h index 47924cf0955fc..9a80e18c57599 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_dac_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_dac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dac_config.h */ -#ifndef HPL_DAC_CONFIG_H -#define HPL_DAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -171,5 +170,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_dmac_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_dmac_config.h index 479965e59ed34..07a032571e977 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_dmac_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_dmac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dmac_config.h */ -#ifndef HPL_DMAC_CONFIG_H -#define HPL_DMAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -7279,5 +7278,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DMAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_gclk_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_gclk_config.h index 906dfac7f7c51..eac42117da1b2 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_gclk_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_gclk_config.h @@ -21,8 +21,7 @@ #define CIRCUITPY_GCLK_INIT_1ST 0xffff /* Auto-generated config file hpl_gclk_config.h */ -#ifndef HPL_GCLK_CONFIG_H -#define HPL_GCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -926,5 +925,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_GCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_mclk_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_mclk_config.h index 263898c6b11f2..e4d9ab3924f80 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_mclk_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_mclk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_mclk_config.h */ -#ifndef HPL_MCLK_CONFIG_H -#define HPL_MCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -106,5 +105,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_MCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_nvmctrl_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_nvmctrl_config.h index 26e8cf5580541..f490c92571913 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_nvmctrl_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_nvmctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_nvmctrl_config.h */ -#ifndef HPL_NVMCTRL_CONFIG_H -#define HPL_NVMCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -38,5 +37,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_NVMCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_osc32kctrl_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_osc32kctrl_config.h index d2a6b744a9a62..3e3499c3350e4 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_osc32kctrl_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_osc32kctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_osc32kctrl_config.h */ -#ifndef HPL_OSC32KCTRL_CONFIG_H -#define HPL_OSC32KCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -165,5 +164,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_OSC32KCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_oscctrl_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_oscctrl_config.h index e8d1a04128e9a..3d78515d4f206 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_oscctrl_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_oscctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_oscctrl_config.h */ -#ifndef HPL_OSCCTRL_CONFIG_H -#define HPL_OSCCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -636,5 +635,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_OSCCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_rtc_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_rtc_config.h index 16d6a53071699..d66f93e34ee3a 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_rtc_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_rtc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_rtc_config.h */ -#ifndef HPL_RTC_CONFIG_H -#define HPL_RTC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -147,5 +146,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_RTC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_sdhc_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_sdhc_config.h index cdf32e51f3283..8c692a7d83c49 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_sdhc_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_sdhc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_sdhc_config.h */ -#ifndef HPL_SDHC_CONFIG_H -#define HPL_SDHC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -26,5 +25,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SDHC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_sercom_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_sercom_config.h index c87a35cc7f3e9..e05560e635823 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_sercom_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_sercom_config.h @@ -21,8 +21,7 @@ #define PROTOTYPE_SERCOM_USART_ASYNC_CLOCK_FREQUENCY CONF_GCLK_SERCOM2_CORE_FREQUENCY /* Auto-generated config file hpl_sercom_config.h */ -#ifndef HPL_SERCOM_CONFIG_H -#define HPL_SERCOM_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -753,5 +752,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SERCOM_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_systick_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_systick_config.h index 48280a3de7612..ccf06c5dc1f67 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_systick_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_systick_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_systick_config.h */ -#ifndef HPL_SYSTICK_CONFIG_H -#define HPL_SYSTICK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -20,5 +19,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_SYSTICK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_tc_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_tc_config.h index b73f6143bfaec..c61ae5f8d3817 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_tc_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_tc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_tc_config.h */ -#ifndef HPL_TC_CONFIG_H -#define HPL_TC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -211,5 +210,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/hpl_trng_config.h b/ports/atmel-samd/asf4_conf/same51/hpl_trng_config.h index e632208f74c3f..b247e6936c31a 100644 --- a/ports/atmel-samd/asf4_conf/same51/hpl_trng_config.h +++ b/ports/atmel-samd/asf4_conf/same51/hpl_trng_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_trng_config.h */ -#ifndef HPL_TRNG_CONFIG_H -#define HPL_TRNG_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -29,5 +28,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TRNG_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same51/peripheral_clk_config.h b/ports/atmel-samd/asf4_conf/same51/peripheral_clk_config.h index f62cf2b3add7d..16d85cf8f4eea 100644 --- a/ports/atmel-samd/asf4_conf/same51/peripheral_clk_config.h +++ b/ports/atmel-samd/asf4_conf/same51/peripheral_clk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file peripheral_clk_config.h */ -#ifndef PERIPHERAL_CLK_CONFIG_H -#define PERIPHERAL_CLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -1254,5 +1253,3 @@ #endif // <<< end of configuration section >>> - -#endif // PERIPHERAL_CLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_adc_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_adc_config.h index 3ba63a4141833..d4e2246beb4b1 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_adc_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_adc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_adc_config.h */ -#ifndef HPL_ADC_CONFIG_H -#define HPL_ADC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -305,5 +304,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_ADC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_dac_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_dac_config.h index 47924cf0955fc..9a80e18c57599 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_dac_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_dac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dac_config.h */ -#ifndef HPL_DAC_CONFIG_H -#define HPL_DAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -171,5 +170,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_dmac_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_dmac_config.h index 479965e59ed34..07a032571e977 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_dmac_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_dmac_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_dmac_config.h */ -#ifndef HPL_DMAC_CONFIG_H -#define HPL_DMAC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -7279,5 +7278,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_DMAC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_gclk_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_gclk_config.h index 906dfac7f7c51..eac42117da1b2 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_gclk_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_gclk_config.h @@ -21,8 +21,7 @@ #define CIRCUITPY_GCLK_INIT_1ST 0xffff /* Auto-generated config file hpl_gclk_config.h */ -#ifndef HPL_GCLK_CONFIG_H -#define HPL_GCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -926,5 +925,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_GCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_mclk_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_mclk_config.h index 263898c6b11f2..e4d9ab3924f80 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_mclk_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_mclk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_mclk_config.h */ -#ifndef HPL_MCLK_CONFIG_H -#define HPL_MCLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -106,5 +105,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_MCLK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_nvmctrl_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_nvmctrl_config.h index 26e8cf5580541..f490c92571913 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_nvmctrl_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_nvmctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_nvmctrl_config.h */ -#ifndef HPL_NVMCTRL_CONFIG_H -#define HPL_NVMCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -38,5 +37,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_NVMCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_osc32kctrl_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_osc32kctrl_config.h index d2a6b744a9a62..3e3499c3350e4 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_osc32kctrl_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_osc32kctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_osc32kctrl_config.h */ -#ifndef HPL_OSC32KCTRL_CONFIG_H -#define HPL_OSC32KCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -165,5 +164,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_OSC32KCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_oscctrl_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_oscctrl_config.h index e8d1a04128e9a..3d78515d4f206 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_oscctrl_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_oscctrl_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_oscctrl_config.h */ -#ifndef HPL_OSCCTRL_CONFIG_H -#define HPL_OSCCTRL_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -636,5 +635,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_OSCCTRL_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_rtc_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_rtc_config.h index 16d6a53071699..d66f93e34ee3a 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_rtc_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_rtc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_rtc_config.h */ -#ifndef HPL_RTC_CONFIG_H -#define HPL_RTC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -147,5 +146,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_RTC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_sdhc_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_sdhc_config.h index cdf32e51f3283..8c692a7d83c49 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_sdhc_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_sdhc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_sdhc_config.h */ -#ifndef HPL_SDHC_CONFIG_H -#define HPL_SDHC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -26,5 +25,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SDHC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_sercom_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_sercom_config.h index c87a35cc7f3e9..e05560e635823 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_sercom_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_sercom_config.h @@ -21,8 +21,7 @@ #define PROTOTYPE_SERCOM_USART_ASYNC_CLOCK_FREQUENCY CONF_GCLK_SERCOM2_CORE_FREQUENCY /* Auto-generated config file hpl_sercom_config.h */ -#ifndef HPL_SERCOM_CONFIG_H -#define HPL_SERCOM_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -753,5 +752,3 @@ #endif // <<< end of configuration section >>> - -#endif // HPL_SERCOM_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_systick_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_systick_config.h index 48280a3de7612..ccf06c5dc1f67 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_systick_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_systick_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_systick_config.h */ -#ifndef HPL_SYSTICK_CONFIG_H -#define HPL_SYSTICK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -20,5 +19,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_SYSTICK_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_tc_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_tc_config.h index b73f6143bfaec..c61ae5f8d3817 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_tc_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_tc_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_tc_config.h */ -#ifndef HPL_TC_CONFIG_H -#define HPL_TC_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -211,5 +210,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TC_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/hpl_trng_config.h b/ports/atmel-samd/asf4_conf/same54/hpl_trng_config.h index e632208f74c3f..b247e6936c31a 100644 --- a/ports/atmel-samd/asf4_conf/same54/hpl_trng_config.h +++ b/ports/atmel-samd/asf4_conf/same54/hpl_trng_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file hpl_trng_config.h */ -#ifndef HPL_TRNG_CONFIG_H -#define HPL_TRNG_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -29,5 +28,3 @@ // // <<< end of configuration section >>> - -#endif // HPL_TRNG_CONFIG_H diff --git a/ports/atmel-samd/asf4_conf/same54/peripheral_clk_config.h b/ports/atmel-samd/asf4_conf/same54/peripheral_clk_config.h index f62cf2b3add7d..16d85cf8f4eea 100644 --- a/ports/atmel-samd/asf4_conf/same54/peripheral_clk_config.h +++ b/ports/atmel-samd/asf4_conf/same54/peripheral_clk_config.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file peripheral_clk_config.h */ -#ifndef PERIPHERAL_CLK_CONFIG_H -#define PERIPHERAL_CLK_CONFIG_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -1254,5 +1253,3 @@ #endif // <<< end of configuration section >>> - -#endif // PERIPHERAL_CLK_CONFIG_H diff --git a/ports/atmel-samd/audio_dma.h b/ports/atmel-samd/audio_dma.h index 008272a98a9e3..284e2cbfd4f2b 100644 --- a/ports/atmel-samd/audio_dma.h +++ b/ports/atmel-samd/audio_dma.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_AUDIO_DMA_H -#define MICROPY_INCLUDED_ATMEL_SAMD_AUDIO_DMA_H +#pragma once #include "extmod/vfs_fat.h" #include "py/obj.h" @@ -82,5 +81,3 @@ void audio_dma_background(void); uint8_t find_sync_event_channel_raise(void); void audio_dma_evsys_handler(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_AUDIO_DMA_H diff --git a/ports/atmel-samd/background.h b/ports/atmel-samd/background.h index 67e82c83813dd..209029c6ad332 100644 --- a/ports/atmel-samd/background.h +++ b/ports/atmel-samd/background.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_BACKGROUND_H -#define MICROPY_INCLUDED_ATMEL_SAMD_BACKGROUND_H +#pragma once #include - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_BACKGROUND_H diff --git a/ports/atmel-samd/bindings/samd/Clock.h b/ports/atmel-samd/bindings/samd/Clock.h index 738b05cb4cc6c..b68d5829f9f87 100644 --- a/ports/atmel-samd/bindings/samd/Clock.h +++ b/ports/atmel-samd/bindings/samd/Clock.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_BINDINGS_SAMD_CLOCK_H -#define MICROPY_INCLUDED_ATMEL_SAMD_BINDINGS_SAMD_CLOCK_H +#pragma once #include "py/obj.h" @@ -53,5 +52,3 @@ typedef struct { extern const mp_obj_type_t samd_clock_type; extern const mp_obj_dict_t samd_clock_globals; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_BINDINGS_SAMD_CLOCK_H diff --git a/ports/atmel-samd/boards/8086_commander/mpconfigboard.h b/ports/atmel-samd/boards/8086_commander/mpconfigboard.h index 9a212c4ac9b84..4ec5981cc0639 100644 --- a/ports/atmel-samd/boards/8086_commander/mpconfigboard.h +++ b/ports/atmel-samd/boards/8086_commander/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "8086 Commander" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/mpconfigboard.h index a1739f2859f58..c4757b5b4caed 100644 --- a/ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_neokey_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit NeoKey Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/adafruit_pixel_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_pixel_trinkey_m0/mpconfigboard.h index 6483be72d9a58..67507f1e4b6d3 100644 --- a/ports/atmel-samd/boards/adafruit_pixel_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_pixel_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Pixel Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/adafruit_proxlight_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_proxlight_trinkey_m0/mpconfigboard.h index 3ba27ad17da00..2f4f5f808171d 100644 --- a/ports/atmel-samd/boards/adafruit_proxlight_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_proxlight_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit ProxLight Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/adafruit_rotary_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_rotary_trinkey_m0/mpconfigboard.h index 1766aaa69cd8d..a8bff01fead91 100644 --- a/ports/atmel-samd/boards/adafruit_rotary_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_rotary_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Rotary Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/adafruit_sht4x_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_sht4x_trinkey_m0/mpconfigboard.h index 564e504436faa..01f6a63a7957e 100644 --- a/ports/atmel-samd/boards/adafruit_sht4x_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_sht4x_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit SHT4x Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/adafruit_slide_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_slide_trinkey_m0/mpconfigboard.h index 5383e63f3ef31..be45400d64c83 100644 --- a/ports/atmel-samd/boards/adafruit_slide_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_slide_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Slide Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/adafruit_trrs_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/adafruit_trrs_trinkey_m0/mpconfigboard.h index 1ee236fad924f..8e53129679f2a 100644 --- a/ports/atmel-samd/boards/adafruit_trrs_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/adafruit_trrs_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit TRRS Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/aloriumtech_evo_m51/mpconfigboard.h b/ports/atmel-samd/boards/aloriumtech_evo_m51/mpconfigboard.h index 73abb6e495d0d..2cae7cc90373f 100644 --- a/ports/atmel-samd/boards/aloriumtech_evo_m51/mpconfigboard.h +++ b/ports/atmel-samd/boards/aloriumtech_evo_m51/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "AloriumTech Evo M51" #define MICROPY_HW_MCU_NAME "samd51p19" diff --git a/ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h b/ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h index d5ca3642f8ab8..4669b73563f28 100644 --- a/ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h +++ b/ports/atmel-samd/boards/arduino_mkr1300/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Arduino MKR1300" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.h b/ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.h index 11a21d513d0d3..2ef850e304615 100644 --- a/ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.h +++ b/ports/atmel-samd/boards/arduino_mkrzero/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Arduino MKR Zero" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.h b/ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.h index 0d22413629693..8e469e6bfc4e1 100644 --- a/ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.h +++ b/ports/atmel-samd/boards/arduino_nano_33_iot/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Arduino Nano 33 IoT" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/arduino_zero/mpconfigboard.h b/ports/atmel-samd/boards/arduino_zero/mpconfigboard.h index e4a4037ca8f04..eacfa97b1d863 100644 --- a/ports/atmel-samd/boards/arduino_zero/mpconfigboard.h +++ b/ports/atmel-samd/boards/arduino_zero/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Arduino Zero" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/bast_pro_mini_m0/mpconfigboard.h b/ports/atmel-samd/boards/bast_pro_mini_m0/mpconfigboard.h index 55bdd23923a36..6c13e3d917feb 100644 --- a/ports/atmel-samd/boards/bast_pro_mini_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/bast_pro_mini_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Electronic Cats Bast Pro Mini M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/bdmicro_vina_d21/mpconfigboard.h b/ports/atmel-samd/boards/bdmicro_vina_d21/mpconfigboard.h index 0e65168a5f795..ddee00daff73c 100644 --- a/ports/atmel-samd/boards/bdmicro_vina_d21/mpconfigboard.h +++ b/ports/atmel-samd/boards/bdmicro_vina_d21/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "BDMICRO VINA-D21" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/bdmicro_vina_d51/mpconfigboard.h b/ports/atmel-samd/boards/bdmicro_vina_d51/mpconfigboard.h index fb577ac650085..f934968b3efce 100644 --- a/ports/atmel-samd/boards/bdmicro_vina_d51/mpconfigboard.h +++ b/ports/atmel-samd/boards/bdmicro_vina_d51/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // More than one revision of this board is available. // This board specifies the most up to date PCB Revision diff --git a/ports/atmel-samd/boards/bdmicro_vina_d51_pcb7/mpconfigboard.h b/ports/atmel-samd/boards/bdmicro_vina_d51_pcb7/mpconfigboard.h index 6ec1c68a94ba9..dc7db514165ca 100644 --- a/ports/atmel-samd/boards/bdmicro_vina_d51_pcb7/mpconfigboard.h +++ b/ports/atmel-samd/boards/bdmicro_vina_d51_pcb7/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "BDMICRO VINA-D51" #define MICROPY_HW_MCU_NAME "samd51n20" diff --git a/ports/atmel-samd/boards/blm_badge/mpconfigboard.h b/ports/atmel-samd/boards/blm_badge/mpconfigboard.h index d87b3302f06dd..d05d2ed607291 100644 --- a/ports/atmel-samd/boards/blm_badge/mpconfigboard.h +++ b/ports/atmel-samd/boards/blm_badge/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit BLM Badge" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/capablerobot_usbhub/mpconfigboard.h b/ports/atmel-samd/boards/capablerobot_usbhub/mpconfigboard.h index 00f89cbd83a15..1f35f342588ac 100644 --- a/ports/atmel-samd/boards/capablerobot_usbhub/mpconfigboard.h +++ b/ports/atmel-samd/boards/capablerobot_usbhub/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Capable Robot Programmable USB Hub" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/catwan_usbstick/mpconfigboard.h b/ports/atmel-samd/boards/catwan_usbstick/mpconfigboard.h index 80fe04dd661e5..8b2a722fe97ff 100644 --- a/ports/atmel-samd/boards/catwan_usbstick/mpconfigboard.h +++ b/ports/atmel-samd/boards/catwan_usbstick/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Electronic Cats CatWAN USBStick" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.h b/ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.h index 1abbd8664d3bb..f2e7db086ea82 100755 --- a/ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/circuitbrains_basic_m0/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "CircuitBrains Basic" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/circuitbrains_deluxe_m4/mpconfigboard.h b/ports/atmel-samd/boards/circuitbrains_deluxe_m4/mpconfigboard.h index 6a105e698fec2..0dbff2cf29ab7 100755 --- a/ports/atmel-samd/boards/circuitbrains_deluxe_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/circuitbrains_deluxe_m4/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "CircuitBrains Deluxe" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h b/ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h index 09aaaa439c67a..f8c6f153cecb1 100644 --- a/ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/circuitplayground_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit CircuitPlayground Express" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h b/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h index e93216ae55b91..570269022b471 100644 --- a/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h +++ b/ports/atmel-samd/boards/circuitplayground_express_crickit/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit CircuitPlayground Express with Crickit libraries" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h b/ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h index ecbe363cab734..0ee533fff20c7 100644 --- a/ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h +++ b/ports/atmel-samd/boards/circuitplayground_express_displayio/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit CircuitPlayground Express with displayio" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/cp32-m4/mpconfigboard.h b/ports/atmel-samd/boards/cp32-m4/mpconfigboard.h index a7c33c377e44f..9f34e3e153db8 100644 --- a/ports/atmel-samd/boards/cp32-m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/cp32-m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "CP32-M4" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/cp_sapling_m0/mpconfigboard.h b/ports/atmel-samd/boards/cp_sapling_m0/mpconfigboard.h index 1754153039148..cf0b9926850c6 100644 --- a/ports/atmel-samd/boards/cp_sapling_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/cp_sapling_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "CP Sapling M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/cp_sapling_m0_revb/mpconfigboard.h b/ports/atmel-samd/boards/cp_sapling_m0_revb/mpconfigboard.h index 936f97e50765e..95a72194705ab 100644 --- a/ports/atmel-samd/boards/cp_sapling_m0_revb/mpconfigboard.h +++ b/ports/atmel-samd/boards/cp_sapling_m0_revb/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "CP Sapling M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/cp_sapling_m0_spiflash/mpconfigboard.h b/ports/atmel-samd/boards/cp_sapling_m0_spiflash/mpconfigboard.h index 41095430eda48..7b452b18dc3fb 100644 --- a/ports/atmel-samd/boards/cp_sapling_m0_spiflash/mpconfigboard.h +++ b/ports/atmel-samd/boards/cp_sapling_m0_spiflash/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "CP Sapling M0 w/ SPI Flash" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/datalore_ip_m4/mpconfigboard.h b/ports/atmel-samd/boards/datalore_ip_m4/mpconfigboard.h index cdcc3b96db429..7c009ac099b75 100644 --- a/ports/atmel-samd/boards/datalore_ip_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/datalore_ip_m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "TG-Boards' Datalore IP M4" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/datum_distance/mpconfigboard.h b/ports/atmel-samd/boards/datum_distance/mpconfigboard.h index e0cfbe06ec9a2..8b43ce2a06874 100644 --- a/ports/atmel-samd/boards/datum_distance/mpconfigboard.h +++ b/ports/atmel-samd/boards/datum_distance/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) #define MICROPY_HW_LED_TX &pin_PA27 diff --git a/ports/atmel-samd/boards/datum_imu/mpconfigboard.h b/ports/atmel-samd/boards/datum_imu/mpconfigboard.h index 7654daadf2ebf..9dfb9e5bc5f78 100644 --- a/ports/atmel-samd/boards/datum_imu/mpconfigboard.h +++ b/ports/atmel-samd/boards/datum_imu/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) #define MICROPY_HW_LED_TX &pin_PA27 diff --git a/ports/atmel-samd/boards/datum_light/mpconfigboard.h b/ports/atmel-samd/boards/datum_light/mpconfigboard.h index 4dde48a542780..b7b06d57b879d 100644 --- a/ports/atmel-samd/boards/datum_light/mpconfigboard.h +++ b/ports/atmel-samd/boards/datum_light/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) #define MICROPY_HW_LED_TX &pin_PA27 diff --git a/ports/atmel-samd/boards/datum_weather/mpconfigboard.h b/ports/atmel-samd/boards/datum_weather/mpconfigboard.h index 851414de96f28..3395a4403f8ae 100644 --- a/ports/atmel-samd/boards/datum_weather/mpconfigboard.h +++ b/ports/atmel-samd/boards/datum_weather/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) #define MICROPY_HW_LED_TX &pin_PA27 diff --git a/ports/atmel-samd/boards/dynalora_usb/mpconfigboard.h b/ports/atmel-samd/boards/dynalora_usb/mpconfigboard.h index 46f366d6b35bb..8e65074613d2d 100644 --- a/ports/atmel-samd/boards/dynalora_usb/mpconfigboard.h +++ b/ports/atmel-samd/boards/dynalora_usb/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "DynaLoRa_USB" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/dynossat_edu_eps/mpconfigboard.h b/ports/atmel-samd/boards/dynossat_edu_eps/mpconfigboard.h index e060a684c3ecf..cd6246c7dfbb4 100644 --- a/ports/atmel-samd/boards/dynossat_edu_eps/mpconfigboard.h +++ b/ports/atmel-samd/boards/dynossat_edu_eps/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "DynOSSAT-EDU-EPS" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/dynossat_edu_obc/mpconfigboard.h b/ports/atmel-samd/boards/dynossat_edu_obc/mpconfigboard.h index bc35a59399918..6610188d2c70f 100644 --- a/ports/atmel-samd/boards/dynossat_edu_obc/mpconfigboard.h +++ b/ports/atmel-samd/boards/dynossat_edu_obc/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "DynOSSAT-EDU-OBC" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/escornabot_makech/mpconfigboard.h b/ports/atmel-samd/boards/escornabot_makech/mpconfigboard.h index 6aec5fb788041..a6ca84fe921f8 100644 --- a/ports/atmel-samd/boards/escornabot_makech/mpconfigboard.h +++ b/ports/atmel-samd/boards/escornabot_makech/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Escornabot Makech" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/feather_m0_adalogger/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_adalogger/mpconfigboard.h index 575abe96accf8..dc43040a272d1 100644 --- a/ports/atmel-samd/boards/feather_m0_adalogger/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_adalogger/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) diff --git a/ports/atmel-samd/boards/feather_m0_basic/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_basic/mpconfigboard.h index b844999bf5d91..57be1eb3e1adc 100644 --- a/ports/atmel-samd/boards/feather_m0_basic/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_basic/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) diff --git a/ports/atmel-samd/boards/feather_m0_express/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_express/mpconfigboard.h index 682d594e3af6a..80d4b4b9c1d7b 100644 --- a/ports/atmel-samd/boards/feather_m0_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather M0 Express" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/feather_m0_express_crickit/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_express_crickit/mpconfigboard.h index b9e65240c63c4..63560dd7f9bb3 100644 --- a/ports/atmel-samd/boards/feather_m0_express_crickit/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_express_crickit/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather M0 Express with Crickit libraries" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/feather_m0_rfm69/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_rfm69/mpconfigboard.h index b1d909e8156f5..406e653c11867 100644 --- a/ports/atmel-samd/boards/feather_m0_rfm69/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_rfm69/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) diff --git a/ports/atmel-samd/boards/feather_m0_rfm9x/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_rfm9x/mpconfigboard.h index 52734fb6f4eba..00fccc0f89cd7 100644 --- a/ports/atmel-samd/boards/feather_m0_rfm9x/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_rfm9x/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // LEDs #define MICROPY_HW_LED_STATUS (&pin_PA17) diff --git a/ports/atmel-samd/boards/feather_m0_supersized/mpconfigboard.h b/ports/atmel-samd/boards/feather_m0_supersized/mpconfigboard.h index 0a1ffc162e33f..79285f8b3df3b 100644 --- a/ports/atmel-samd/boards/feather_m0_supersized/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m0_supersized/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + /* Adafruit Feather M0 Express with an 8MB SPI flash instead of the usual 2MB */ #define MICROPY_HW_BOARD_NAME "Hacked Feather M0 Express with 8Mbyte SPI flash" diff --git a/ports/atmel-samd/boards/feather_m4_can/mpconfigboard.h b/ports/atmel-samd/boards/feather_m4_can/mpconfigboard.h index 8c09216fa9b59..202c4f821661a 100644 --- a/ports/atmel-samd/boards/feather_m4_can/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m4_can/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather M4 CAN" #define MICROPY_HW_MCU_NAME "same51j19a" diff --git a/ports/atmel-samd/boards/feather_m4_express/mpconfigboard.h b/ports/atmel-samd/boards/feather_m4_express/mpconfigboard.h index 27c5e5a015c1d..9bba71b56aff3 100644 --- a/ports/atmel-samd/boards/feather_m4_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/feather_m4_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather M4 Express" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/fluff_m0/mpconfigboard.h b/ports/atmel-samd/boards/fluff_m0/mpconfigboard.h index ae3972984193b..d4980c1877a56 100644 --- a/ports/atmel-samd/boards/fluff_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/fluff_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Fluff M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/gemma_m0/mpconfigboard.h b/ports/atmel-samd/boards/gemma_m0/mpconfigboard.h index 5127848418ffc..e531bfb172bfb 100644 --- a/ports/atmel-samd/boards/gemma_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/gemma_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Gemma M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/grandcentral_m4_express/mpconfigboard.h b/ports/atmel-samd/boards/grandcentral_m4_express/mpconfigboard.h index c30f0307dc1cd..81d1288997991 100644 --- a/ports/atmel-samd/boards/grandcentral_m4_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/grandcentral_m4_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Grand Central M4 Express" #define MICROPY_HW_MCU_NAME "samd51p20" diff --git a/ports/atmel-samd/boards/hallowing_m0_express/mpconfigboard.h b/ports/atmel-samd/boards/hallowing_m0_express/mpconfigboard.h index 6645c6ca2d19d..c95f7f5050d69 100644 --- a/ports/atmel-samd/boards/hallowing_m0_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/hallowing_m0_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "HalloWing M0 Express" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/hallowing_m4_express/mpconfigboard.h b/ports/atmel-samd/boards/hallowing_m4_express/mpconfigboard.h index d2b946297896b..f7b16df76527d 100644 --- a/ports/atmel-samd/boards/hallowing_m4_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/hallowing_m4_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Hallowing M4 Express" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/huntercat_nfc/mpconfigboard.h b/ports/atmel-samd/boards/huntercat_nfc/mpconfigboard.h index 5855f2b2bc15f..09536225e1afd 100644 --- a/ports/atmel-samd/boards/huntercat_nfc/mpconfigboard.h +++ b/ports/atmel-samd/boards/huntercat_nfc/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Electronic Cats Hunter Cat NFC" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/itsybitsy_m0_express/mpconfigboard.h b/ports/atmel-samd/boards/itsybitsy_m0_express/mpconfigboard.h index 98689173d30d7..b1b554dc7559c 100644 --- a/ports/atmel-samd/boards/itsybitsy_m0_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/itsybitsy_m0_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit ItsyBitsy M0 Express" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.h b/ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.h index 9cbe4f2e227e6..bedeccba35622 100644 --- a/ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/itsybitsy_m4_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit ItsyBitsy M4 Express" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.h b/ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.h index 2f701784d73b6..7864a44ed8628 100644 --- a/ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.h +++ b/ports/atmel-samd/boards/kicksat-sprite/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Sprite_v2b" #define MICROPY_HW_MCU_NAME "samd51G19" diff --git a/ports/atmel-samd/boards/loc_ber_m4_base_board/mpconfigboard.h b/ports/atmel-samd/boards/loc_ber_m4_base_board/mpconfigboard.h index 2224cf0ceed68..60116296cc464 100644 --- a/ports/atmel-samd/boards/loc_ber_m4_base_board/mpconfigboard.h +++ b/ports/atmel-samd/boards/loc_ber_m4_base_board/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "LoC BeR M4 base board" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/matrixportal_m4/mpconfigboard.h b/ports/atmel-samd/boards/matrixportal_m4/mpconfigboard.h index b17c51a939a94..689ac026b8f4a 100644 --- a/ports/atmel-samd/boards/matrixportal_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/matrixportal_m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Matrix Portal M4" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/meowmeow/mpconfigboard.h b/ports/atmel-samd/boards/meowmeow/mpconfigboard.h index 8b0fceaae0dd4..c527331aa012c 100644 --- a/ports/atmel-samd/boards/meowmeow/mpconfigboard.h +++ b/ports/atmel-samd/boards/meowmeow/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Meow Meow" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/metro_m0_express/mpconfigboard.h b/ports/atmel-samd/boards/metro_m0_express/mpconfigboard.h index dd7a9dea45de9..4e193a329ffde 100644 --- a/ports/atmel-samd/boards/metro_m0_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/metro_m0_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Metro M0 Express" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/metro_m4_airlift_lite/mpconfigboard.h b/ports/atmel-samd/boards/metro_m4_airlift_lite/mpconfigboard.h index 1afa9259cf5a1..f29f0e192b0c0 100644 --- a/ports/atmel-samd/boards/metro_m4_airlift_lite/mpconfigboard.h +++ b/ports/atmel-samd/boards/metro_m4_airlift_lite/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Metro M4 Airlift Lite" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/metro_m4_express/mpconfigboard.h b/ports/atmel-samd/boards/metro_m4_express/mpconfigboard.h index c297d16a0a2a0..ebc8cae33f1c6 100644 --- a/ports/atmel-samd/boards/metro_m4_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/metro_m4_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Metro M4 Express" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/mini_sam_m4/mpconfigboard.h b/ports/atmel-samd/boards/mini_sam_m4/mpconfigboard.h index d16e6ab1bce55..3818adfde4954 100644 --- a/ports/atmel-samd/boards/mini_sam_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/mini_sam_m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Mini SAM M4" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/monster_m4sk/mpconfigboard.h b/ports/atmel-samd/boards/monster_m4sk/mpconfigboard.h index 8617a7f577a60..ad36187a69f6e 100644 --- a/ports/atmel-samd/boards/monster_m4sk/mpconfigboard.h +++ b/ports/atmel-samd/boards/monster_m4sk/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Monster M4SK" // Board is mislabeled as SAMD51J19. #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/ndgarage_ndbit6/mpconfigboard.h b/ports/atmel-samd/boards/ndgarage_ndbit6/mpconfigboard.h index a5ece93ec183b..79a51acb0ea83 100644 --- a/ports/atmel-samd/boards/ndgarage_ndbit6/mpconfigboard.h +++ b/ports/atmel-samd/boards/ndgarage_ndbit6/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "ndGarage[n°]Bit6:FeatherSnow" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/ndgarage_ndbit6_v2/mpconfigboard.h b/ports/atmel-samd/boards/ndgarage_ndbit6_v2/mpconfigboard.h index 4b5ab3c7b699e..e811c95c8ded5 100644 --- a/ports/atmel-samd/boards/ndgarage_ndbit6_v2/mpconfigboard.h +++ b/ports/atmel-samd/boards/ndgarage_ndbit6_v2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "ndGarage[n°] Bit6: FeatherSnow-v2" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h b/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h index cc658bf139e61..eeb4bb3cb63a2 100644 --- a/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/neopixel_trinkey_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit NeoPixel Trinkey M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.h b/ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.h index 09e143ce747a7..4bf4dc0034842 100644 --- a/ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.h +++ b/ports/atmel-samd/boards/nfc_copy_cat/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Electronic Cats NFC Copy Cat" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/openbook_m4/mpconfigboard.h b/ports/atmel-samd/boards/openbook_m4/mpconfigboard.h index 9a8ea22668e78..fec4b05fda49b 100644 --- a/ports/atmel-samd/boards/openbook_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/openbook_m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "The Open Book Feather" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/p1am_200/mpconfigboard.h b/ports/atmel-samd/boards/p1am_200/mpconfigboard.h index 6c272126fa2bc..27ccbe8413eeb 100644 --- a/ports/atmel-samd/boards/p1am_200/mpconfigboard.h +++ b/ports/atmel-samd/boards/p1am_200/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "P1AM-200" #define MICROPY_HW_MCU_NAME "samd51p20" diff --git a/ports/atmel-samd/boards/pewpew10/mpconfigboard.h b/ports/atmel-samd/boards/pewpew10/mpconfigboard.h index ad9d7d05523a9..83df9712ab71a 100644 --- a/ports/atmel-samd/boards/pewpew10/mpconfigboard.h +++ b/ports/atmel-samd/boards/pewpew10/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PewPew 10.2" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/pewpew_lcd/mpconfigboard.h b/ports/atmel-samd/boards/pewpew_lcd/mpconfigboard.h index 7410070995895..ab6b4ad9521d3 100644 --- a/ports/atmel-samd/boards/pewpew_lcd/mpconfigboard.h +++ b/ports/atmel-samd/boards/pewpew_lcd/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PewPew LCD" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/pewpew_m4/mpconfigboard.h b/ports/atmel-samd/boards/pewpew_m4/mpconfigboard.h index 4dd4aa170f277..18f8c9eb78c56 100644 --- a/ports/atmel-samd/boards/pewpew_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/pewpew_m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PewPew M4" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/picoplanet/mpconfigboard.h b/ports/atmel-samd/boards/picoplanet/mpconfigboard.h index 072177256c9e1..f2f2d3e3c3735 100644 --- a/ports/atmel-samd/boards/picoplanet/mpconfigboard.h +++ b/ports/atmel-samd/boards/picoplanet/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PicoPlanet" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/pybadge/mpconfigboard.h b/ports/atmel-samd/boards/pybadge/mpconfigboard.h index 30139c3e0a4c1..e96318c84b5ac 100644 --- a/ports/atmel-samd/boards/pybadge/mpconfigboard.h +++ b/ports/atmel-samd/boards/pybadge/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Pybadge" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/pycubed/mpconfigboard.h b/ports/atmel-samd/boards/pycubed/mpconfigboard.h index d0c32239e0283..fdc2c49fc81f0 100644 --- a/ports/atmel-samd/boards/pycubed/mpconfigboard.h +++ b/ports/atmel-samd/boards/pycubed/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyCubedv04" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/pycubed_mram/mpconfigboard.h b/ports/atmel-samd/boards/pycubed_mram/mpconfigboard.h index f35a147e4f926..fecf8780d954f 100644 --- a/ports/atmel-samd/boards/pycubed_mram/mpconfigboard.h +++ b/ports/atmel-samd/boards/pycubed_mram/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyCubedv04-MRAM" #define MICROPY_HW_MCU_NAME "samd51j19" #define CIRCUITPY_MCU_FAMILY samd51 diff --git a/ports/atmel-samd/boards/pycubed_mram_v05/mpconfigboard.h b/ports/atmel-samd/boards/pycubed_mram_v05/mpconfigboard.h index 98c307a107adf..336f7ff3a8d36 100644 --- a/ports/atmel-samd/boards/pycubed_mram_v05/mpconfigboard.h +++ b/ports/atmel-samd/boards/pycubed_mram_v05/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyCubedv05-MRAM" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/pycubed_v05/mpconfigboard.h b/ports/atmel-samd/boards/pycubed_v05/mpconfigboard.h index 7a699c7da61b2..ac968c76d551b 100644 --- a/ports/atmel-samd/boards/pycubed_v05/mpconfigboard.h +++ b/ports/atmel-samd/boards/pycubed_v05/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyCubedv05" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/pygamer/mpconfigboard.h b/ports/atmel-samd/boards/pygamer/mpconfigboard.h index 338c7c4bcbbef..e162c4e036fb6 100644 --- a/ports/atmel-samd/boards/pygamer/mpconfigboard.h +++ b/ports/atmel-samd/boards/pygamer/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit PyGamer" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/pyportal/mpconfigboard.h b/ports/atmel-samd/boards/pyportal/mpconfigboard.h index 8257328a8d4c2..b84bc7931703f 100644 --- a/ports/atmel-samd/boards/pyportal/mpconfigboard.h +++ b/ports/atmel-samd/boards/pyportal/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit PyPortal" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/pyportal_titano/mpconfigboard.h b/ports/atmel-samd/boards/pyportal_titano/mpconfigboard.h index 012b6dfa89ffa..2b497c5269ff7 100644 --- a/ports/atmel-samd/boards/pyportal_titano/mpconfigboard.h +++ b/ports/atmel-samd/boards/pyportal_titano/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit PyPortal Titano" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/pyruler/mpconfigboard.h b/ports/atmel-samd/boards/pyruler/mpconfigboard.h index 55e066d1e3857..19c44ec1f843c 100644 --- a/ports/atmel-samd/boards/pyruler/mpconfigboard.h +++ b/ports/atmel-samd/boards/pyruler/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit PyRuler" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/qtpy_m0/mpconfigboard.h b/ports/atmel-samd/boards/qtpy_m0/mpconfigboard.h index 4326ad7956408..075b6039fbdff 100644 --- a/ports/atmel-samd/boards/qtpy_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/qtpy_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit QT Py M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/qtpy_m0_haxpress/mpconfigboard.h b/ports/atmel-samd/boards/qtpy_m0_haxpress/mpconfigboard.h index 36eec93ffb0b6..0ed70a625bf77 100644 --- a/ports/atmel-samd/boards/qtpy_m0_haxpress/mpconfigboard.h +++ b/ports/atmel-samd/boards/qtpy_m0_haxpress/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit QT Py M0 Haxpress" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/robohatmm1_m4/mpconfigboard.h b/ports/atmel-samd/boards/robohatmm1_m4/mpconfigboard.h index 1a394ee30c56f..c3fa8e9995f60 100644 --- a/ports/atmel-samd/boards/robohatmm1_m4/mpconfigboard.h +++ b/ports/atmel-samd/boards/robohatmm1_m4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Robo HAT MM1 M4" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/sam32/mpconfigboard.h b/ports/atmel-samd/boards/sam32/mpconfigboard.h index 406e8046b90a9..84e9417d67995 100644 --- a/ports/atmel-samd/boards/sam32/mpconfigboard.h +++ b/ports/atmel-samd/boards/sam32/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SAM32v26" #define MICROPY_HW_MCU_NAME "samd51j20" #define CIRCUITPY_MCU_FAMILY samd51 diff --git a/ports/atmel-samd/boards/same54_xplained/mpconfigboard.h b/ports/atmel-samd/boards/same54_xplained/mpconfigboard.h index 0cc7cd25cd290..b748551dadb65 100644 --- a/ports/atmel-samd/boards/same54_xplained/mpconfigboard.h +++ b/ports/atmel-samd/boards/same54_xplained/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SAM E54 Xplained Pro" #define MICROPY_HW_MCU_NAME "same54p20" diff --git a/ports/atmel-samd/boards/seeeduino_wio_terminal/mpconfigboard.h b/ports/atmel-samd/boards/seeeduino_wio_terminal/mpconfigboard.h index 7d70cb5930ad4..474150e745c71 100644 --- a/ports/atmel-samd/boards/seeeduino_wio_terminal/mpconfigboard.h +++ b/ports/atmel-samd/boards/seeeduino_wio_terminal/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Seeeduino Wio Terminal" #define MICROPY_HW_MCU_NAME "samd51p19" diff --git a/ports/atmel-samd/boards/seeeduino_xiao/mpconfigboard.h b/ports/atmel-samd/boards/seeeduino_xiao/mpconfigboard.h index fa9cd3d8407ea..414adc5eba7fd 100644 --- a/ports/atmel-samd/boards/seeeduino_xiao/mpconfigboard.h +++ b/ports/atmel-samd/boards/seeeduino_xiao/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Seeeduino XIAO" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/seeeduino_xiao_kb/mpconfigboard.h b/ports/atmel-samd/boards/seeeduino_xiao_kb/mpconfigboard.h index 070bc9aae06b1..acd90b50ac16a 100644 --- a/ports/atmel-samd/boards/seeeduino_xiao_kb/mpconfigboard.h +++ b/ports/atmel-samd/boards/seeeduino_xiao_kb/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Seeeduino XIAO KB" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/sensebox_mcu/mpconfigboard.h b/ports/atmel-samd/boards/sensebox_mcu/mpconfigboard.h index d18b7f561dccb..71e4908b25617 100644 --- a/ports/atmel-samd/boards/sensebox_mcu/mpconfigboard.h +++ b/ports/atmel-samd/boards/sensebox_mcu/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "senseBox MCU" #define MICROPY_HW_MCU_NAME "senseBox" diff --git a/ports/atmel-samd/boards/serpente/mpconfigboard.h b/ports/atmel-samd/boards/serpente/mpconfigboard.h index cd38a8fbc3b04..d32e81c607198 100644 --- a/ports/atmel-samd/boards/serpente/mpconfigboard.h +++ b/ports/atmel-samd/boards/serpente/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Serpente" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/shirtty/mpconfigboard.h b/ports/atmel-samd/boards/shirtty/mpconfigboard.h index b0a52708d4abb..147b342cb8f44 100644 --- a/ports/atmel-samd/boards/shirtty/mpconfigboard.h +++ b/ports/atmel-samd/boards/shirtty/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "@sarfata shIRtty" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/silicognition-m4-shim/mpconfigboard.h b/ports/atmel-samd/boards/silicognition-m4-shim/mpconfigboard.h index 1c736c97731d3..fb51b35b60695 100644 --- a/ports/atmel-samd/boards/silicognition-m4-shim/mpconfigboard.h +++ b/ports/atmel-samd/boards/silicognition-m4-shim/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Silicognition LLC M4-Shim" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/snekboard/mpconfigboard.h b/ports/atmel-samd/boards/snekboard/mpconfigboard.h index 783a0525d2789..b7653b0a629f5 100644 --- a/ports/atmel-samd/boards/snekboard/mpconfigboard.h +++ b/ports/atmel-samd/boards/snekboard/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "keithp.com snekboard" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/sparkfun_lumidrive/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_lumidrive/mpconfigboard.h index 3e8cd15ddf5d4..f6d762f34bbd9 100644 --- a/ports/atmel-samd/boards/sparkfun_lumidrive/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_lumidrive/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun LUMIDrive" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/sparkfun_qwiic_micro_no_flash/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_qwiic_micro_no_flash/mpconfigboard.h index 2ef31edf76a9f..3b9fedd56ec12 100644 --- a/ports/atmel-samd/boards/sparkfun_qwiic_micro_no_flash/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_qwiic_micro_no_flash/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun Qwiic Micro" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/sparkfun_qwiic_micro_with_flash/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_qwiic_micro_with_flash/mpconfigboard.h index 054b7bcd3bfc0..93dc166baece5 100644 --- a/ports/atmel-samd/boards/sparkfun_qwiic_micro_with_flash/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_qwiic_micro_with_flash/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun Qwiic Micro" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/sparkfun_redboard_turbo/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_redboard_turbo/mpconfigboard.h index ee8781e47f6d4..3078c5794a47f 100644 --- a/ports/atmel-samd/boards/sparkfun_redboard_turbo/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_redboard_turbo/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun RedBoard Turbo" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/sparkfun_samd21_dev/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_samd21_dev/mpconfigboard.h index 5bb61b530022b..728088ee797a8 100644 --- a/ports/atmel-samd/boards/sparkfun_samd21_dev/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_samd21_dev/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun SAMD21 Dev Breakout" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/sparkfun_samd21_mini/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_samd21_mini/mpconfigboard.h index e396bcd0b5fb8..a4fb0155e14d4 100644 --- a/ports/atmel-samd/boards/sparkfun_samd21_mini/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_samd21_mini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun SAMD21 Mini Breakout" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/sparkfun_samd51_micromod/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_samd51_micromod/mpconfigboard.h index 984b3dfb8279e..835cc6f309d3f 100644 --- a/ports/atmel-samd/boards/sparkfun_samd51_micromod/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_samd51_micromod/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun MicroMod SAMD51 Processor" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/sparkfun_samd51_thing_plus/mpconfigboard.h b/ports/atmel-samd/boards/sparkfun_samd51_thing_plus/mpconfigboard.h index 5567750b790f4..cff2ba9ae474d 100644 --- a/ports/atmel-samd/boards/sparkfun_samd51_thing_plus/mpconfigboard.h +++ b/ports/atmel-samd/boards/sparkfun_samd51_thing_plus/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus - SAMD51" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/stackrduino_m0_pro/mpconfigboard.h b/ports/atmel-samd/boards/stackrduino_m0_pro/mpconfigboard.h index 1bd131b83ef46..3044dbbb30853 100644 --- a/ports/atmel-samd/boards/stackrduino_m0_pro/mpconfigboard.h +++ b/ports/atmel-samd/boards/stackrduino_m0_pro/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "StackRduino M0 PRO" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/stringcar_m0_express/mpconfigboard.h b/ports/atmel-samd/boards/stringcar_m0_express/mpconfigboard.h index af1715b467176..78bb0b7f57e4d 100644 --- a/ports/atmel-samd/boards/stringcar_m0_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/stringcar_m0_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Cedar Grove StringCar M0 Express" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/trellis_m4_express/mpconfigboard.h b/ports/atmel-samd/boards/trellis_m4_express/mpconfigboard.h index cca01e68157d7..c61335862b080 100644 --- a/ports/atmel-samd/boards/trellis_m4_express/mpconfigboard.h +++ b/ports/atmel-samd/boards/trellis_m4_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Trellis M4 Express" #define MICROPY_HW_MCU_NAME "samd51g19" diff --git a/ports/atmel-samd/boards/trinket_m0/mpconfigboard.h b/ports/atmel-samd/boards/trinket_m0/mpconfigboard.h index b74441a9187e2..bdee97537085c 100644 --- a/ports/atmel-samd/boards/trinket_m0/mpconfigboard.h +++ b/ports/atmel-samd/boards/trinket_m0/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Trinket M0" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h b/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h index 87db664a909fd..bc157d6c86bb3 100644 --- a/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h +++ b/ports/atmel-samd/boards/trinket_m0_haxpress/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Trinket M0 Haxpress" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/uartlogger2/mpconfigboard.h b/ports/atmel-samd/boards/uartlogger2/mpconfigboard.h index 311d65c57f110..3cbfa06b82ee7 100644 --- a/ports/atmel-samd/boards/uartlogger2/mpconfigboard.h +++ b/ports/atmel-samd/boards/uartlogger2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "UARTLogger II" #define MICROPY_HW_MCU_NAME "samd51j19" diff --git a/ports/atmel-samd/boards/uchip/mpconfigboard.h b/ports/atmel-samd/boards/uchip/mpconfigboard.h index 7ba507444f56a..7c1047b7c834b 100644 --- a/ports/atmel-samd/boards/uchip/mpconfigboard.h +++ b/ports/atmel-samd/boards/uchip/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "uChip" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/ugame10/mpconfigboard.h b/ports/atmel-samd/boards/ugame10/mpconfigboard.h index 4baf10dbfd229..47ace631e4248 100644 --- a/ports/atmel-samd/boards/ugame10/mpconfigboard.h +++ b/ports/atmel-samd/boards/ugame10/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "uGame10" #define MICROPY_HW_MCU_NAME "samd21e18" diff --git a/ports/atmel-samd/boards/winterbloom_big_honking_button/mpconfigboard.h b/ports/atmel-samd/boards/winterbloom_big_honking_button/mpconfigboard.h index e4a3e3038aff1..ed22eec1f24f9 100644 --- a/ports/atmel-samd/boards/winterbloom_big_honking_button/mpconfigboard.h +++ b/ports/atmel-samd/boards/winterbloom_big_honking_button/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Winterbloom Big Honking Button" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.h b/ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.h index bb02d31eba4a2..88f004e64bd5c 100644 --- a/ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.h +++ b/ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Winterbloom Sol" #define MICROPY_HW_MCU_NAME "samd51j20" diff --git a/ports/atmel-samd/boards/xinabox_cc03/mpconfigboard.h b/ports/atmel-samd/boards/xinabox_cc03/mpconfigboard.h index 3a712599b8192..96da809d3e3ce 100644 --- a/ports/atmel-samd/boards/xinabox_cc03/mpconfigboard.h +++ b/ports/atmel-samd/boards/xinabox_cc03/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "XinaBox CC03" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/boards/xinabox_cs11/mpconfigboard.h b/ports/atmel-samd/boards/xinabox_cs11/mpconfigboard.h index 0a3fcb573747c..1da95ddce263f 100644 --- a/ports/atmel-samd/boards/xinabox_cs11/mpconfigboard.h +++ b/ports/atmel-samd/boards/xinabox_cs11/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "XinaBox CS11" #define MICROPY_HW_MCU_NAME "samd21g18" diff --git a/ports/atmel-samd/common-hal/_pew/PewPew.h b/ports/atmel-samd/common-hal/_pew/PewPew.h index e7c4cc94fe02d..c3d1b52f297a8 100644 --- a/ports/atmel-samd/common-hal/_pew/PewPew.h +++ b/ports/atmel-samd/common-hal/_pew/PewPew.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_PEW_PEWPEW_H -#define MICROPY_INCLUDED_PEW_PEWPEW_H +#pragma once #include #include "shared-bindings/digitalio/DigitalInOut.h" @@ -25,5 +24,3 @@ void pew_init(void); void pewpew_interrupt_handler(uint8_t index); void pew_reset(void); uint16_t pew_get_ticks(void); - -#endif // MICROPY_INCLUDED_PEW_PEWPEW_H diff --git a/ports/atmel-samd/common-hal/_pew/__init__.h b/ports/atmel-samd/common-hal/_pew/__init__.h index 8552271ebe480..6759c05a3e252 100644 --- a/ports/atmel-samd/common-hal/_pew/__init__.h +++ b/ports/atmel-samd/common-hal/_pew/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_PEW_H -#define MICROPY_INCLUDED_PEW_H +#pragma once void pew_tick(void); - -#endif // MICROPY_INCLUDED_PEW_H diff --git a/ports/atmel-samd/common-hal/alarm/coproc/CoprocAlarm.h b/ports/atmel-samd/common-hal/alarm/coproc/CoprocAlarm.h index a7f2dfca2b672..f8921574865aa 100644 --- a/ports/atmel-samd/common-hal/alarm/coproc/CoprocAlarm.h +++ b/ports/atmel-samd/common-hal/alarm/coproc/CoprocAlarm.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // empty file diff --git a/ports/atmel-samd/common-hal/analogio/AnalogIn.h b/ports/atmel-samd/common-hal/analogio/AnalogIn.h index 2c92eccd5a4db..5d97ddcc15667 100644 --- a/ports/atmel-samd/common-hal/analogio/AnalogIn.h +++ b/ports/atmel-samd/common-hal/analogio/AnalogIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -19,5 +18,3 @@ typedef struct { } analogio_analogin_obj_t; void analogin_reset(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/atmel-samd/common-hal/analogio/AnalogOut.h b/ports/atmel-samd/common-hal/analogio/AnalogOut.h index a5aea945ffcc5..7260444d26e58 100644 --- a/ports/atmel-samd/common-hal/analogio/AnalogOut.h +++ b/ports/atmel-samd/common-hal/analogio/AnalogOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -22,5 +21,3 @@ typedef struct { } analogio_analogout_obj_t; void analogout_reset(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/atmel-samd/common-hal/audiobusio/I2SOut.h b/ports/atmel-samd/common-hal/audiobusio/I2SOut.h index 579a6db5dec97..617221adf2189 100644 --- a/ports/atmel-samd/common-hal/audiobusio/I2SOut.h +++ b/ports/atmel-samd/common-hal/audiobusio/I2SOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOBUSIO_I2SOUT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOBUSIO_I2SOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -32,5 +31,3 @@ typedef struct { void i2sout_reset(void); #endif // CIRCUITPY_AUDIOBUSIO_I2SOUT - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOBUSIO_I2SOUT_H diff --git a/ports/atmel-samd/common-hal/audiobusio/PDMIn.h b/ports/atmel-samd/common-hal/audiobusio/PDMIn.h index 29536cee345ab..4d2904e107582 100644 --- a/ports/atmel-samd/common-hal/audiobusio/PDMIn.h +++ b/ports/atmel-samd/common-hal/audiobusio/PDMIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -29,5 +28,3 @@ void pdmin_reset(void); void pdmin_evsys_handler(void); void pdmin_background(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H diff --git a/ports/atmel-samd/common-hal/audioio/AudioOut.h b/ports/atmel-samd/common-hal/audioio/AudioOut.h index 9ec1149ed2119..5b77206d3b9dc 100644 --- a/ports/atmel-samd/common-hal/audioio/AudioOut.h +++ b/ports/atmel-samd/common-hal/audioio/AudioOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOIO_AUDIOOUT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOIO_AUDIOOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -28,5 +27,3 @@ typedef struct { } audioio_audioout_obj_t; void audioout_background(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_AUDIOIO_AUDIOOUT_H diff --git a/ports/atmel-samd/common-hal/busio/I2C.h b/ports/atmel-samd/common-hal/busio/I2C.h index ebcba1d0daf0a..ef3031a6c6eef 100644 --- a/ports/atmel-samd/common-hal/busio/I2C.h +++ b/ports/atmel-samd/common-hal/busio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -23,5 +22,3 @@ typedef struct { extern Sercom *samd_i2c_get_sercom(const mcu_pin_obj_t *scl, const mcu_pin_obj_t *sda, uint8_t *sercom_index, uint32_t *sda_pinmux, uint32_t *scl_pinmux); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/atmel-samd/common-hal/busio/SPI.h b/ports/atmel-samd/common-hal/busio/SPI.h index 3839c101331f1..ed8bc220a3421 100644 --- a/ports/atmel-samd/common-hal/busio/SPI.h +++ b/ports/atmel-samd/common-hal/busio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_SPI_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_SPI_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -21,5 +20,3 @@ typedef struct { uint8_t MOSI_pin; uint8_t MISO_pin; } busio_spi_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_SPI_H diff --git a/ports/atmel-samd/common-hal/busio/UART.h b/ports/atmel-samd/common-hal/busio/UART.h index fd65b06ca1104..47d85b4227bb8 100644 --- a/ports/atmel-samd/common-hal/busio/UART.h +++ b/ports/atmel-samd/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_UART_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -27,5 +26,3 @@ typedef struct { uint32_t buffer_length; uint8_t *buffer; } busio_uart_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_UART_H diff --git a/ports/atmel-samd/common-hal/busio/__init__.h b/ports/atmel-samd/common-hal/busio/__init__.h index 293806014f30c..a87e38cb7bae2 100644 --- a/ports/atmel-samd/common-hal/busio/__init__.h +++ b/ports/atmel-samd/common-hal/busio/__init__.h @@ -4,12 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_INIT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_INIT_H +#pragma once void reset_sercoms(void); void allow_reset_sercom(Sercom *sercom); void never_reset_sercom(Sercom *sercom); - - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_INIT_H diff --git a/ports/atmel-samd/common-hal/countio/Counter.h b/ports/atmel-samd/common-hal/countio/Counter.h index 3f43e178c9986..839754ca6a855 100644 --- a/ports/atmel-samd/common-hal/countio/Counter.h +++ b/ports/atmel-samd/common-hal/countio/Counter.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNTER_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNTER_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -21,5 +20,3 @@ typedef struct { void counter_interrupt_handler(uint8_t channel); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNT_H diff --git a/ports/atmel-samd/common-hal/digitalio/DigitalInOut.h b/ports/atmel-samd/common-hal/digitalio/DigitalInOut.h index 71e0d59784bbb..8f8dcc3a8d6f4 100644 --- a/ports/atmel-samd/common-hal/digitalio/DigitalInOut.h +++ b/ports/atmel-samd/common-hal/digitalio/DigitalInOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "py/obj.h" @@ -16,5 +15,3 @@ typedef struct { bool output; bool open_drain; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.h b/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.h index 3c339b024d14a..8fd28b29c990f 100644 --- a/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.h +++ b/ports/atmel-samd/common-hal/frequencyio/FrequencyIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_FREQUENCYIO_FREQUENCYIN_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_FREQUENCYIO_FREQUENCYIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -27,6 +26,3 @@ typedef struct { void frequencyin_interrupt_handler(uint8_t index); void frequencyin_reset(void); - - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_FREQUENCYIO_FREQUENCYIN_H diff --git a/ports/atmel-samd/common-hal/i2ctarget/I2CTarget.h b/ports/atmel-samd/common-hal/i2ctarget/I2CTarget.h index bfb9f61d63828..160b97adec125 100644 --- a/ports/atmel-samd/common-hal/i2ctarget/I2CTarget.h +++ b/ports/atmel-samd/common-hal/i2ctarget/I2CTarget.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_I2C_TARGET_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_I2C_TARGET_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "py/obj.h" @@ -21,5 +20,3 @@ typedef struct { uint8_t sda_pin; bool writing; } i2ctarget_i2c_target_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_BUSIO_I2C_TARGET_H diff --git a/ports/atmel-samd/common-hal/imagecapture/__init__.h b/ports/atmel-samd/common-hal/imagecapture/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/atmel-samd/common-hal/imagecapture/__init__.h +++ b/ports/atmel-samd/common-hal/imagecapture/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/atmel-samd/common-hal/microcontroller/Pin.h b/ports/atmel-samd/common-hal/microcontroller/Pin.h index 7b8a7ad11016f..cce9d84ef3300 100644 --- a/ports/atmel-samd/common-hal/microcontroller/Pin.h +++ b/ports/atmel-samd/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include @@ -27,5 +26,3 @@ typedef struct { } mcu_pin_function_t; mcu_pin_function_t *mcu_find_pin_function(mcu_pin_function_t *table, const mcu_pin_obj_t *pin, int instance, uint16_t name); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/atmel-samd/common-hal/microcontroller/Processor.h b/ports/atmel-samd/common-hal/microcontroller/Processor.h index 23ee8fe5d0fdc..e4f5d023e2c02 100644 --- a/ports/atmel-samd/common-hal/microcontroller/Processor.h +++ b/ports/atmel-samd/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 16 @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; // Stores no state currently. } mcu_processor_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/atmel-samd/common-hal/nvm/ByteArray.h b/ports/atmel-samd/common-hal/nvm/ByteArray.h index 72b749ea15ff0..a293fc42ea5e0 100644 --- a/ports/atmel-samd/common-hal/nvm/ByteArray.h +++ b/ports/atmel-samd/common-hal/nvm/ByteArray.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_NVM_BYTEARRAY_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_NVM_BYTEARRAY_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { uint8_t *start_address; uint32_t len; } nvm_bytearray_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_NVM_BYTEARRAY_H diff --git a/ports/atmel-samd/common-hal/ps2io/Ps2.h b/ports/atmel-samd/common-hal/ps2io/Ps2.h index a55fea3e32c6f..0f806b12484c7 100644 --- a/ports/atmel-samd/common-hal/ps2io/Ps2.h +++ b/ports/atmel-samd/common-hal/ps2io/Ps2.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PS2IO_PS2_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PS2IO_PS2_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -37,5 +36,3 @@ typedef struct { } ps2io_ps2_obj_t; void ps2_interrupt_handler(uint8_t channel); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PS2IO_PS2_H diff --git a/ports/atmel-samd/common-hal/rgbmatrix/RGBMatrix.h b/ports/atmel-samd/common-hal/rgbmatrix/RGBMatrix.h index 0021692913222..56c32e5c24f8e 100644 --- a/ports/atmel-samd/common-hal/rgbmatrix/RGBMatrix.h +++ b/ports/atmel-samd/common-hal/rgbmatrix/RGBMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H +#pragma once #include "shared-module/rgbmatrix/RGBMatrix.h" @@ -13,5 +12,3 @@ void *common_hal_rgbmatrix_timer_allocate(rgbmatrix_rgbmatrix_obj_t *self); void common_hal_rgbmatrix_timer_enable(void *); void common_hal_rgbmatrix_timer_disable(void *); void common_hal_rgbmatrix_timer_free(void *); - -#endif diff --git a/ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.h b/ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.h index 347c692a7d7c6..f3e8fb0c65de1 100644 --- a/ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.h +++ b/ports/atmel-samd/common-hal/rotaryio/IncrementalEncoder.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ROTARYIO_INCREMENTALENCODER_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ROTARYIO_INCREMENTALENCODER_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -25,5 +24,3 @@ typedef struct { void incrementalencoder_interrupt_handler(uint8_t channel); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_ROTARYIO_INCREMENTALENCODER_H diff --git a/ports/atmel-samd/common-hal/rtc/RTC.h b/ports/atmel-samd/common-hal/rtc/RTC.h index 0d43ee850173c..daf2151646101 100644 --- a/ports/atmel-samd/common-hal/rtc/RTC.h +++ b/ports/atmel-samd/common-hal/rtc/RTC.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RTC_RTC_H #define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RTC_RTC_H diff --git a/ports/atmel-samd/common-hal/sdioio/__init__.h b/ports/atmel-samd/common-hal/sdioio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/atmel-samd/common-hal/sdioio/__init__.h +++ b/ports/atmel-samd/common-hal/sdioio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/atmel-samd/common-hal/touchio/TouchIn.h b/ports/atmel-samd/common-hal/touchio/TouchIn.h index 0d3a7dc876084..6029320e5ba91 100644 --- a/ports/atmel-samd/common-hal/touchio/TouchIn.h +++ b/ports/atmel-samd/common-hal/touchio/TouchIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_TOUCHIO_TOUCHIN_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_TOUCHIO_TOUCHIN_H +#pragma once // Native touchio only exists for SAMD21 #ifdef SAMD21 @@ -26,5 +25,3 @@ typedef struct { void touchin_reset(void); #endif // SAMD21 - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_TOUCHIO_TOUCHIN_H diff --git a/ports/atmel-samd/common-hal/watchdog/WatchDogTimer.h b/ports/atmel-samd/common-hal/watchdog/WatchDogTimer.h index 5999836e6e824..ea53104bcc51a 100644 --- a/ports/atmel-samd/common-hal/watchdog/WatchDogTimer.h +++ b/ports/atmel-samd/common-hal/watchdog/WatchDogTimer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H +#pragma once #include "py/obj.h" @@ -19,5 +18,3 @@ struct _watchdog_watchdogtimer_obj_t { mp_float_t timeout; watchdog_watchdogmode_t mode; }; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H diff --git a/ports/atmel-samd/mpconfigport.h b/ports/atmel-samd/mpconfigport.h index 2f7d1c5b3cd87..4100230815aad 100644 --- a/ports/atmel-samd/mpconfigport.h +++ b/ports/atmel-samd/mpconfigport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __INCLUDED_MPCONFIGPORT_H -#define __INCLUDED_MPCONFIGPORT_H +#pragma once // Definitions for which SAMD chip we're using. #include "include/sam.h" @@ -249,5 +248,3 @@ // due to limitations of chips is handled in mpconfigboard.mk #include "peripherals/samd/dma.h" - -#endif // __INCLUDED_MPCONFIGPORT_H diff --git a/ports/atmel-samd/mphalport.h b/ports/atmel-samd/mphalport.h index c5371e2f930da..c5cbbef85693a 100644 --- a/ports/atmel-samd/mphalport.h +++ b/ports/atmel-samd/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_MPHALPORT_H -#define MICROPY_INCLUDED_ATMEL_SAMD_MPHALPORT_H +#pragma once #include "py/obj.h" @@ -26,5 +25,3 @@ void mp_hal_set_interrupt_char(int c); void mp_hal_disable_all_interrupts(void); void mp_hal_enable_all_interrupts(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_MPHALPORT_H diff --git a/ports/atmel-samd/qstrdefsport.h b/ports/atmel-samd/qstrdefsport.h index b0f5566fabf2a..9ff78060068f9 100644 --- a/ports/atmel-samd/qstrdefsport.h +++ b/ports/atmel-samd/qstrdefsport.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port // *FORMAT-OFF* diff --git a/ports/atmel-samd/reset.h b/ports/atmel-samd/reset.h index 49eac14463e8d..c74d25fa01ea5 100644 --- a/ports/atmel-samd/reset.h +++ b/ports/atmel-samd/reset.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2017 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_RESET_H -#define MICROPY_INCLUDED_ATMEL_SAMD_RESET_H +#pragma once #include #include @@ -20,5 +19,3 @@ extern uint32_t _bootloader_dbl_tap; void reset_to_bootloader(void) NORETURN; void reset(void) NORETURN; bool bootloader_available(void); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_RESET_H diff --git a/ports/atmel-samd/samd_peripherals_config.h b/ports/atmel-samd/samd_peripherals_config.h index bfd015a7f86e6..fdf2bbfd047ba 100644 --- a/ports/atmel-samd/samd_peripherals_config.h +++ b/ports/atmel-samd/samd_peripherals_config.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_SAMD_PERIPHERALS_CONFIG_H -#define MICROPY_INCLUDED_ATMEL_SAMD_SAMD_PERIPHERALS_CONFIG_H +#pragma once #include "py/obj.h" @@ -13,6 +12,3 @@ extern const mp_obj_type_t mcu_pin_type; #define PIN_PREFIX_VALUES { &mcu_pin_type }, #define PIN_PREFIX_FIELDS mp_obj_base_t base; - - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_SAMD_PERIPHERALS_CONFIG_H diff --git a/ports/atmel-samd/sd_mmc/conf_sd_mmc.h b/ports/atmel-samd/sd_mmc/conf_sd_mmc.h index a695b6a8feec0..ab9cb15a342bb 100644 --- a/ports/atmel-samd/sd_mmc/conf_sd_mmc.h +++ b/ports/atmel-samd/sd_mmc/conf_sd_mmc.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT /* Auto-generated config file conf_sd_mmc.h */ -#ifndef CONF_SD_MMC_H -#define CONF_SD_MMC_H +#pragma once // <<< Use Configuration Wizard in Context Menu >>> @@ -81,5 +80,3 @@ #endif // <<< end of configuration section >>> - -#endif // CONF_SD_MMC_H diff --git a/ports/atmel-samd/sd_mmc/sd_mmc.h b/ports/atmel-samd/sd_mmc/sd_mmc.h index dd5a1ffb94976..cdc98e7108e2e 100644 --- a/ports/atmel-samd/sd_mmc/sd_mmc.h +++ b/ports/atmel-samd/sd_mmc/sd_mmc.h @@ -40,8 +40,7 @@ * Support and FAQ: visit Microchip Support */ -#ifndef SD_MMC_H_INCLUDED -#define SD_MMC_H_INCLUDED +#pragma once #include "compiler.h" #include "conf_sd_mmc.h" @@ -312,5 +311,3 @@ sd_mmc_err_t sdio_write_extended(uint8_t slot, uint8_t func_num, uint32_t addr, #ifdef __cplusplus } #endif - -#endif /* SD_MMC_H_INCLUDED */ diff --git a/ports/atmel-samd/sd_mmc/sd_mmc_protocol.h b/ports/atmel-samd/sd_mmc/sd_mmc_protocol.h index 9e96ebb3c8152..be84f2c5d49d9 100644 --- a/ports/atmel-samd/sd_mmc/sd_mmc_protocol.h +++ b/ports/atmel-samd/sd_mmc/sd_mmc_protocol.h @@ -40,8 +40,7 @@ * Support and FAQ: visit Microchip Support */ -#ifndef SD_MMC_PROTOCOL_H_INCLUDED -#define SD_MMC_PROTOCOL_H_INCLUDED +#pragma once #include "compiler.h" @@ -1002,5 +1001,3 @@ static inline uint32_t SDMMC_UNSTUFF_BITS(uint8_t *reg, uint16_t reg_size, uint1 #ifdef __cplusplus } #endif - -#endif /* SD_MMC_PROTOCOL_H_INCLUDED */ diff --git a/ports/atmel-samd/supervisor/internal_flash.h b/ports/atmel-samd/supervisor/internal_flash.h index af3219802321d..6fafa4bc8d4f2 100644 --- a/ports/atmel-samd/supervisor/internal_flash.h +++ b/ports/atmel-samd/supervisor/internal_flash.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_ATMEL_SAMD_INTERNAL_FLASH_H +#pragma once #include @@ -16,5 +15,3 @@ #define INTERNAL_FLASH_SYSTICK_MASK (0x1ff) // 512ms #define INTERNAL_FLASH_IDLE_TICK(tick) (((tick) & INTERNAL_FLASH_SYSTICK_MASK) == 2) - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_INTERNAL_FLASH_H diff --git a/ports/atmel-samd/timer_handler.h b/ports/atmel-samd/timer_handler.h index 2a44457eaa4cc..d8eb121eb27a6 100644 --- a/ports/atmel-samd/timer_handler.h +++ b/ports/atmel-samd/timer_handler.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_TIMER_HANDLER_H -#define MICROPY_INCLUDED_ATMEL_SAMD_TIMER_HANDLER_H +#pragma once #define TC_HANDLER_NO_INTERRUPT 0x0 #define TC_HANDLER_PULSEOUT 0x1 @@ -15,5 +14,3 @@ void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler); void shared_timer_handler(bool is_tc, uint8_t index); - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_TIMER_HANDLER_H diff --git a/ports/broadcom/background.h b/ports/broadcom/background.h index 30ed25c0fa756..fe71149ab4b42 100644 --- a/ports/broadcom/background.h +++ b/ports/broadcom/background.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_BACKGROUND_H -#define MICROPY_INCLUDED_BROADCOM_BACKGROUND_H +#pragma once #include - -#endif // MICROPY_INCLUDED_BROADCOM_BACKGROUND_H diff --git a/ports/broadcom/boards/diodes_delight_piunora/mpconfigboard.h b/ports/broadcom/boards/diodes_delight_piunora/mpconfigboard.h index d5690fe7a0ae3..298a94316ad8b 100644 --- a/ports/broadcom/boards/diodes_delight_piunora/mpconfigboard.h +++ b/ports/broadcom/boards/diodes_delight_piunora/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Diodes Delight Piunora" #define DEFAULT_I2C_BUS_SCL (&pin_GPIO3) diff --git a/ports/broadcom/boards/raspberrypi_cm4/mpconfigboard.h b/ports/broadcom/boards/raspberrypi_cm4/mpconfigboard.h index d34ed6924fe90..23b99342facb8 100644 --- a/ports/broadcom/boards/raspberrypi_cm4/mpconfigboard.h +++ b/ports/broadcom/boards/raspberrypi_cm4/mpconfigboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Compute Module 4" diff --git a/ports/broadcom/boards/raspberrypi_cm4io/mpconfigboard.h b/ports/broadcom/boards/raspberrypi_cm4io/mpconfigboard.h index e87636d1afeb6..2c02fabd9ec94 100644 --- a/ports/broadcom/boards/raspberrypi_cm4io/mpconfigboard.h +++ b/ports/broadcom/boards/raspberrypi_cm4io/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Compute Module 4 IO Board" #define DEFAULT_I2C_BUS_SCL (&pin_GPIO3) diff --git a/ports/broadcom/boards/raspberrypi_pi4b/mpconfigboard.h b/ports/broadcom/boards/raspberrypi_pi4b/mpconfigboard.h index dda8dad382a8d..45eeff3b59b43 100644 --- a/ports/broadcom/boards/raspberrypi_pi4b/mpconfigboard.h +++ b/ports/broadcom/boards/raspberrypi_pi4b/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi 4B" #define DEFAULT_I2C_BUS_SCL (&pin_GPIO3) diff --git a/ports/broadcom/boards/raspberrypi_zero/mpconfigboard.h b/ports/broadcom/boards/raspberrypi_zero/mpconfigboard.h index c03207468b04a..64da629317e7c 100644 --- a/ports/broadcom/boards/raspberrypi_zero/mpconfigboard.h +++ b/ports/broadcom/boards/raspberrypi_zero/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Zero" #define DEFAULT_I2C_BUS_SCL (&pin_GPIO3) diff --git a/ports/broadcom/boards/raspberrypi_zero2w/mpconfigboard.h b/ports/broadcom/boards/raspberrypi_zero2w/mpconfigboard.h index f0c90491d72e1..4168832fb8242 100644 --- a/ports/broadcom/boards/raspberrypi_zero2w/mpconfigboard.h +++ b/ports/broadcom/boards/raspberrypi_zero2w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Zero 2W" #define DEFAULT_I2C_BUS_SCL (&pin_GPIO3) diff --git a/ports/broadcom/boards/raspberrypi_zero_w/mpconfigboard.h b/ports/broadcom/boards/raspberrypi_zero_w/mpconfigboard.h index 468ea5b3f099c..526a152011e1c 100644 --- a/ports/broadcom/boards/raspberrypi_zero_w/mpconfigboard.h +++ b/ports/broadcom/boards/raspberrypi_zero_w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Zero W" #define DEFAULT_I2C_BUS_SCL (&pin_GPIO3) diff --git a/ports/broadcom/common-hal/busio/I2C.h b/ports/broadcom/common-hal/busio/I2C.h index 6747db7b09e12..11416c0203fa9 100644 --- a/ports/broadcom/common-hal/busio/I2C.h +++ b/ports/broadcom/common-hal/busio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -26,5 +25,3 @@ typedef struct { } busio_i2c_obj_t; void reset_i2c(void); - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/broadcom/common-hal/busio/SPI.h b/ports/broadcom/common-hal/busio/SPI.h index 659a26f408471..aec91263677c0 100644 --- a/ports/broadcom/common-hal/busio/SPI.h +++ b/ports/broadcom/common-hal/busio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_SPI_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_SPI_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -26,5 +25,3 @@ typedef struct { } busio_spi_obj_t; void reset_spi(void); - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_SPI_H diff --git a/ports/broadcom/common-hal/busio/UART.h b/ports/broadcom/common-hal/busio/UART.h index 8503fa045980c..866e64c4855d5 100644 --- a/ports/broadcom/common-hal/busio/UART.h +++ b/ports/broadcom/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_UART_H +#pragma once #include "py/obj.h" #include "py/ringbuf.h" @@ -24,5 +23,3 @@ typedef struct { } busio_uart_obj_t; extern void reset_uart(void); - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_BUSIO_UART_H diff --git a/ports/broadcom/common-hal/digitalio/DigitalInOut.h b/ports/broadcom/common-hal/digitalio/DigitalInOut.h index e002542a0b5cb..69520a92bff30 100644 --- a/ports/broadcom/common-hal/digitalio/DigitalInOut.h +++ b/ports/broadcom/common-hal/digitalio/DigitalInOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "py/obj.h" @@ -16,5 +15,3 @@ typedef struct { bool output; bool open_drain; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/broadcom/common-hal/microcontroller/Pin.h b/ports/broadcom/common-hal/microcontroller/Pin.h index 15e643b0629b1..4e0e2e2e65986 100644 --- a/ports/broadcom/common-hal/microcontroller/Pin.h +++ b/ports/broadcom/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include #include @@ -21,5 +20,3 @@ void reset_pin_number(uint8_t pin_number); void never_reset_pin_number(uint8_t pin_number); void claim_pin(const mcu_pin_obj_t *pin); bool pin_number_is_free(uint8_t pin_number); - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/broadcom/common-hal/microcontroller/Processor.h b/ports/broadcom/common-hal/microcontroller/Processor.h index 9850e2c148c92..0c9088f18810b 100644 --- a/ports/broadcom/common-hal/microcontroller/Processor.h +++ b/ports/broadcom/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #include "py/obj.h" @@ -15,5 +14,3 @@ typedef struct { } mcu_processor_obj_t; #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 8 - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/broadcom/common-hal/microcontroller/__init__.h b/ports/broadcom/common-hal/microcontroller/__init__.h index 7f7170129dff0..217a3de3c7a4f 100644 --- a/ports/broadcom/common-hal/microcontroller/__init__.h +++ b/ports/broadcom/common-hal/microcontroller/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER___INIT___H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER___INIT___H +#pragma once #define TOTAL_GPIO_COUNT 58 - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_MICROCONTROLLER___INIT___H diff --git a/ports/broadcom/common-hal/rtc/RTC.h b/ports/broadcom/common-hal/rtc/RTC.h index 7c71e373a1e6b..9f310488793f5 100644 --- a/ports/broadcom/common-hal/rtc/RTC.h +++ b/ports/broadcom/common-hal/rtc/RTC.h @@ -5,9 +5,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H -#define MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H +#pragma once extern void rtc_reset(void); - -#endif // MICROPY_INCLUDED_BROADCOM_COMMON_HAL_RTC_RTC_H diff --git a/ports/broadcom/common-hal/sdioio/__init__.h b/ports/broadcom/common-hal/sdioio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/broadcom/common-hal/sdioio/__init__.h +++ b/ports/broadcom/common-hal/sdioio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/broadcom/mpconfigport.h b/ports/broadcom/mpconfigport.h index 46a92cba9040a..b9990be75ec06 100644 --- a/ports/broadcom/mpconfigport.h +++ b/ports/broadcom/mpconfigport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __INCLUDED_MPCONFIGPORT_H -#define __INCLUDED_MPCONFIGPORT_H +#pragma once // Definitions that control circuitpy_mpconfig.h: @@ -36,5 +35,3 @@ // Definitions that can be overridden by mpconfigboard.h: //////////////////////////////////////////////////////////////////////////////////////////////////// - -#endif // __INCLUDED_MPCONFIGPORT_H diff --git a/ports/broadcom/mphalport.h b/ports/broadcom/mphalport.h index bde56ff517322..6a7cdb99db592 100644 --- a/ports/broadcom/mphalport.h +++ b/ports/broadcom/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_MPHALPORT_H -#define MICROPY_INCLUDED_BROADCOM_MPHALPORT_H +#pragma once #include #include "py/obj.h" @@ -27,5 +26,3 @@ void mp_hal_stdout_tx_strn(const char *str, size_t len); void usbkbd_setup(); #endif - -#endif // MICROPY_INCLUDED_BROADCOM_MPHALPORT_H diff --git a/ports/broadcom/qstrdefsport.h b/ports/broadcom/qstrdefsport.h index 3abaafc7fcc1a..738a4500f902e 100644 --- a/ports/broadcom/qstrdefsport.h +++ b/ports/broadcom/qstrdefsport.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port, only needed if they aren't auto-generated // Prevent uncrustify from modifying these lines. diff --git a/ports/broadcom/supervisor/internal_flash.h b/ports/broadcom/supervisor/internal_flash.h index 7239f2e94644e..94b1f0bc973fd 100644 --- a/ports/broadcom/supervisor/internal_flash.h +++ b/ports/broadcom/supervisor/internal_flash.h @@ -3,11 +3,8 @@ // SPDX-FileCopyrightText: Copyright (c) 2021 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BROADCOM_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_BROADCOM_INTERNAL_FLASH_H +#pragma once #include #include "mpconfigport.h" - -#endif // MICROPY_INCLUDED_BROADCOM_INTERNAL_FLASH_H diff --git a/ports/cxd56/alloca.h b/ports/cxd56/alloca.h index df19d3f109fb2..ec51b5e77d1ec 100644 --- a/ports/cxd56/alloca.h +++ b/ports/cxd56/alloca.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef _ALLOCA_H -#define _ALLOCA_H +#pragma once #define alloca __builtin_alloca - -#endif /* _ALLOCA_H */ diff --git a/ports/cxd56/background.h b/ports/cxd56/background.h index 6bff0f1e8eddf..35ac5b1d482fb 100644 --- a/ports/cxd56/background.h +++ b/ports/cxd56/background.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_CXD56_BACKGROUND_H #define MICROPY_INCLUDED_CXD56_BACKGROUND_H diff --git a/ports/cxd56/boards/spresense/mpconfigboard.h b/ports/cxd56/boards/spresense/mpconfigboard.h index 1b0f97fac19f1..2d334ef29b301 100644 --- a/ports/cxd56/boards/spresense/mpconfigboard.h +++ b/ports/cxd56/boards/spresense/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SPRESENSE" #define MICROPY_HW_MCU_NAME "CXD5602" diff --git a/ports/cxd56/common-hal/analogio/AnalogIn.h b/ports/cxd56/common-hal/analogio/AnalogIn.h index f70f7aff0c4b9..affc7f805e82e 100644 --- a/ports/cxd56/common-hal/analogio/AnalogIn.h +++ b/ports/cxd56/common-hal/analogio/AnalogIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "py/obj.h" @@ -18,5 +17,3 @@ typedef struct { } analogio_analogin_obj_t; void analogin_reset(void); - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/cxd56/common-hal/analogio/AnalogOut.h b/ports/cxd56/common-hal/analogio/AnalogOut.h index 00daf5f0bbda2..afeca0f2bcc5b 100644 --- a/ports/cxd56/common-hal/analogio/AnalogOut.h +++ b/ports/cxd56/common-hal/analogio/AnalogOut.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "py/obj.h" typedef struct { mp_obj_base_t base; } analogio_analogout_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/cxd56/common-hal/busio/I2C.h b/ports/cxd56/common-hal/busio/I2C.h index 61db1d9cd7fd6..6287837e53dcc 100644 --- a/ports/cxd56/common-hal/busio/I2C.h +++ b/ports/cxd56/common-hal/busio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "py/obj.h" @@ -19,5 +18,3 @@ typedef struct { const mcu_pin_obj_t *scl_pin; const mcu_pin_obj_t *sda_pin; } busio_i2c_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/cxd56/common-hal/busio/SPI.h b/ports/cxd56/common-hal/busio/SPI.h index 70e131cfff06e..028d9211c744d 100644 --- a/ports/cxd56/common-hal/busio/SPI.h +++ b/ports/cxd56/common-hal/busio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H +#pragma once #include @@ -25,5 +24,3 @@ typedef struct { const mcu_pin_obj_t *mosi_pin; const mcu_pin_obj_t *miso_pin; } busio_spi_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H diff --git a/ports/cxd56/common-hal/busio/UART.h b/ports/cxd56/common-hal/busio/UART.h index 7f8fd27dd7dc0..e642de7525788 100644 --- a/ports/cxd56/common-hal/busio/UART.h +++ b/ports/cxd56/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H +#pragma once #include "py/obj.h" @@ -21,5 +20,3 @@ typedef struct { } busio_uart_obj_t; void busio_uart_reset(void); - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H diff --git a/ports/cxd56/common-hal/camera/Camera.h b/ports/cxd56/common-hal/camera/Camera.h index 8e9a0b3911e51..c79fa29079cdc 100644 --- a/ports/cxd56/common-hal/camera/Camera.h +++ b/ports/cxd56/common-hal/camera/Camera.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_CAMERA_CAMERA_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_CAMERA_CAMERA_H +#pragma once #include "py/obj.h" typedef struct { mp_obj_base_t base; } camera_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_CAMERA_CAMERA_H diff --git a/ports/cxd56/common-hal/digitalio/DigitalInOut.h b/ports/cxd56/common-hal/digitalio/DigitalInOut.h index 6df87313d043b..2a28ed134d9e6 100644 --- a/ports/cxd56/common-hal/digitalio/DigitalInOut.h +++ b/ports/cxd56/common-hal/digitalio/DigitalInOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "py/obj.h" @@ -18,5 +17,3 @@ typedef struct { bool open_drain; uint8_t pull; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/cxd56/common-hal/gnss/GNSS.h b/ports/cxd56/common-hal/gnss/GNSS.h index 35e4084a41b92..a974d747c9533 100644 --- a/ports/cxd56/common-hal/gnss/GNSS.h +++ b/ports/cxd56/common-hal/gnss/GNSS.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_GNSS_GNSS_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_GNSS_GNSS_H +#pragma once #include @@ -21,5 +20,3 @@ typedef struct { struct cxd56_gnss_date_s date; struct cxd56_gnss_time_s time; } gnss_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_GNSS_GNSS_H diff --git a/ports/cxd56/common-hal/microcontroller/Pin.h b/ports/cxd56/common-hal/microcontroller/Pin.h index 0a4a8cb9fd300..8c27abe76f2e8 100644 --- a/ports/cxd56/common-hal/microcontroller/Pin.h +++ b/ports/cxd56/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include "py/obj.h" @@ -74,5 +73,3 @@ void never_reset_pin_number(uint8_t pin_number); void reset_pin_number(uint8_t pin_number); void reset_all_pins(void); void claim_pin(const mcu_pin_obj_t *pin); - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/cxd56/common-hal/microcontroller/Processor.h b/ports/cxd56/common-hal/microcontroller/Processor.h index 575ae3ad8efd0..1e77c35c777a1 100644 --- a/ports/cxd56/common-hal/microcontroller/Processor.h +++ b/ports/cxd56/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH CONFIG_BOARDCTL_UNIQUEID_SIZE @@ -16,5 +15,3 @@ typedef struct { } mcu_processor_obj_t; extern const mp_obj_type_t mcu_processor_type; - -#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/cxd56/common-hal/rtc/RTC.h b/ports/cxd56/common-hal/rtc/RTC.h index a61d52a25d031..e9bf051604163 100644 --- a/ports/cxd56/common-hal/rtc/RTC.h +++ b/ports/cxd56/common-hal/rtc/RTC.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_RTC_RTC_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_RTC_RTC_H diff --git a/ports/cxd56/common-hal/sdioio/SDCard.h b/ports/cxd56/common-hal/sdioio/SDCard.h index d772abd794fcb..ca2d3e7f0d97e 100644 --- a/ports/cxd56/common-hal/sdioio/SDCard.h +++ b/ports/cxd56/common-hal/sdioio/SDCard.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_SDIOIO_SDCARD_H -#define MICROPY_INCLUDED_CXD56_SDIOIO_SDCARD_H +#pragma once #include @@ -23,5 +22,3 @@ typedef struct { const mcu_pin_obj_t *clock_pin; const mcu_pin_obj_t *data_pins[4]; } sdioio_sdcard_obj_t; - -#endif // MICROPY_INCLUDED_CXD56_SDIOIO_SDCARD_H diff --git a/ports/cxd56/mpconfigport.h b/ports/cxd56/mpconfigport.h index 2460c75621869..3bcb252868786 100644 --- a/ports/cxd56/mpconfigport.h +++ b/ports/cxd56/mpconfigport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __INCLUDED_MPCONFIGPORT_H -#define __INCLUDED_MPCONFIGPORT_H +#pragma once #define MICROPY_PY_SYS_PLATFORM "CXD56" @@ -24,5 +23,3 @@ #include "py/circuitpy_mpconfig.h" #define MICROPY_BYTES_PER_GC_BLOCK (32) - -#endif // __INCLUDED_MPCONFIGPORT_H diff --git a/ports/cxd56/mphalport.h b/ports/cxd56/mphalport.h index 826912cb418b7..edd22d12c8f31 100644 --- a/ports/cxd56/mphalport.h +++ b/ports/cxd56/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_CXD56_MPHALPORT_H -#define MICROPY_INCLUDED_CXD56_MPHALPORT_H +#pragma once #include @@ -13,5 +12,3 @@ #include "supervisor/shared/tick.h" #define mp_hal_ticks_ms() ((mp_uint_t)supervisor_ticks_ms32()) - -#endif // MICROPY_INCLUDED_CXD56_MPHALPORT_H diff --git a/ports/cxd56/qstrdefsport.h b/ports/cxd56/qstrdefsport.h index b0f5566fabf2a..9ff78060068f9 100644 --- a/ports/cxd56/qstrdefsport.h +++ b/ports/cxd56/qstrdefsport.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port // *FORMAT-OFF* diff --git a/ports/cxd56/supervisor/internal_flash.h b/ports/cxd56/supervisor/internal_flash.h index 31e23a3890906..a1ca833402cfd 100644 --- a/ports/cxd56/supervisor/internal_flash.h +++ b/ports/cxd56/supervisor/internal_flash.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H #define MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H diff --git a/ports/espressif/background.h b/ports/espressif/background.h index bb815ed05e58f..5a5118116bddb 100644 --- a/ports/espressif/background.h +++ b/ports/espressif/background.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_BACKGROUND_H -#define MICROPY_INCLUDED_ESPRESSIF_BACKGROUND_H +#pragma once #include - -#endif // MICROPY_INCLUDED_ESPRESSIF_BACKGROUND_H diff --git a/ports/espressif/bindings/espidf/__init__.h b/ports/espressif/bindings/espidf/__init__.h index 779bd949b20d6..7c112abf7368c 100644 --- a/ports/espressif/bindings/espidf/__init__.h +++ b/ports/espressif/bindings/espidf/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_BINDINGS_ESPIDF___INIT___H -#define MICROPY_INCLUDED_ESPRESSIF_BINDINGS_ESPIDF___INIT___H +#pragma once #include "esp_err.h" #include "py/mpconfig.h" @@ -24,5 +23,3 @@ void raise_esp_error(esp_err_t err) NORETURN; size_t common_hal_espidf_get_total_psram(void); intptr_t common_hal_espidf_get_psram_start(void); intptr_t common_hal_espidf_get_psram_end(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_BINDINGS_ESPIDF___INIT___H diff --git a/ports/espressif/bindings/espulp/Architecture.h b/ports/espressif/bindings/espulp/Architecture.h index b3ba0dbc95072..27e6d44aa4e2d 100644 --- a/ports/espressif/bindings/espulp/Architecture.h +++ b/ports/espressif/bindings/espulp/Architecture.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_BINDINGS_ESPULP_ARCHITECTURE_H -#define MICROPY_INCLUDED_BINDINGS_ESPULP_ARCHITECTURE_H +#pragma once #include "py/enum.h" @@ -16,5 +15,3 @@ typedef enum { extern const mp_obj_type_t espulp_architecture_type; extern const cp_enum_obj_t architecture_FSM_obj; - -#endif // MICROPY_INCLUDED_BINDINGS_ESPULP_ARCHITECTURE_H diff --git a/ports/espressif/boards/01space_lcd042_esp32c3/mpconfigboard.h b/ports/espressif/boards/01space_lcd042_esp32c3/mpconfigboard.h index 54fcac8abd03b..bc02e85367b20 100644 --- a/ports/espressif/boards/01space_lcd042_esp32c3/mpconfigboard.h +++ b/ports/espressif/boards/01space_lcd042_esp32c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "01Space 0.42 OLED ESP32C3" #define MICROPY_HW_MCU_NAME "ESP32-C3FH4" diff --git a/ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.h b/ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.h index 643c7bb9315f7..25d08535dd6fd 100644 --- a/ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_esp32s3_camera/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Camera" #define MICROPY_HW_MCU_NAME "ESP32S3" diff --git a/ports/espressif/boards/adafruit_feather_esp32_v2/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32_v2/mpconfigboard.h index 5adedb7c057b5..38b014fd59f32 100644 --- a/ports/espressif/boards/adafruit_feather_esp32_v2/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32_v2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32 V2" diff --git a/ports/espressif/boards/adafruit_feather_esp32c6_4mbflash_nopsram/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32c6_4mbflash_nopsram/mpconfigboard.h index edabcd130c564..c3d168ac16d20 100644 --- a/ports/espressif/boards/adafruit_feather_esp32c6_4mbflash_nopsram/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32c6_4mbflash_nopsram/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32-C6 4MB Flash No PSRAM" diff --git a/ports/espressif/boards/adafruit_feather_esp32s2/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s2/mpconfigboard.h index 12324990db389..b80f354ade38d 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s2/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32S2" diff --git a/ports/espressif/boards/adafruit_feather_esp32s2_reverse_tft/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s2_reverse_tft/mpconfigboard.h index ef01942217382..42b51434edfd3 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s2_reverse_tft/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s2_reverse_tft/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32-S2 Reverse TFT" diff --git a/ports/espressif/boards/adafruit_feather_esp32s2_tft/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s2_tft/mpconfigboard.h index b3c630aadf458..c8009b0ea7559 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s2_tft/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s2_tft/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32-S2 TFT" diff --git a/ports/espressif/boards/adafruit_feather_esp32s3_4mbflash_2mbpsram/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s3_4mbflash_2mbpsram/mpconfigboard.h index 1936b1ab12c57..7abd61a7d4227 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s3_4mbflash_2mbpsram/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s3_4mbflash_2mbpsram/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32S3 4MB Flash 2MB PSRAM" diff --git a/ports/espressif/boards/adafruit_feather_esp32s3_nopsram/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s3_nopsram/mpconfigboard.h index 263e84fd397a8..a47bc8d859ee4 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s3_nopsram/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s3_nopsram/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32S3 No PSRAM" diff --git a/ports/espressif/boards/adafruit_feather_esp32s3_reverse_tft/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s3_reverse_tft/mpconfigboard.h index 80e219c100b33..c11780faf41ea 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s3_reverse_tft/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s3_reverse_tft/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32-S3 Reverse TFT" diff --git a/ports/espressif/boards/adafruit_feather_esp32s3_tft/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_esp32s3_tft/mpconfigboard.h index 884eda67e9853..243777fd8df33 100644 --- a/ports/espressif/boards/adafruit_feather_esp32s3_tft/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_esp32s3_tft/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather ESP32-S3 TFT" diff --git a/ports/espressif/boards/adafruit_feather_huzzah32/mpconfigboard.h b/ports/espressif/boards/adafruit_feather_huzzah32/mpconfigboard.h index 80bc691e7e389..9bd51044f4e87 100644 --- a/ports/espressif/boards/adafruit_feather_huzzah32/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_feather_huzzah32/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather HUZZAH32" diff --git a/ports/espressif/boards/adafruit_funhouse/mpconfigboard.h b/ports/espressif/boards/adafruit_funhouse/mpconfigboard.h index 59b11e7f8bb57..af2033e31b7b1 100644 --- a/ports/espressif/boards/adafruit_funhouse/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_funhouse/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit FunHouse" diff --git a/ports/espressif/boards/adafruit_huzzah32_breakout/mpconfigboard.h b/ports/espressif/boards/adafruit_huzzah32_breakout/mpconfigboard.h index 1e443e738a5d3..657918ab50b38 100644 --- a/ports/espressif/boards/adafruit_huzzah32_breakout/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_huzzah32_breakout/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit HUZZAH32 Breakout" diff --git a/ports/espressif/boards/adafruit_itsybitsy_esp32/mpconfigboard.h b/ports/espressif/boards/adafruit_itsybitsy_esp32/mpconfigboard.h index 1691290f1df64..9b20c5f73e3ed 100644 --- a/ports/espressif/boards/adafruit_itsybitsy_esp32/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_itsybitsy_esp32/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit ItsyBitsy ESP32" diff --git a/ports/espressif/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h b/ports/espressif/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h index 1c32da49de05f..0c69eba7c6824 100644 --- a/ports/espressif/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_magtag_2.9_grayscale/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit MagTag" diff --git a/ports/espressif/boards/adafruit_matrixportal_s3/mpconfigboard.h b/ports/espressif/boards/adafruit_matrixportal_s3/mpconfigboard.h index 66ac03485f6f0..059cfe5be6fee 100644 --- a/ports/espressif/boards/adafruit_matrixportal_s3/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_matrixportal_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit MatrixPortal S3" diff --git a/ports/espressif/boards/adafruit_metro_esp32s2/mpconfigboard.h b/ports/espressif/boards/adafruit_metro_esp32s2/mpconfigboard.h index a704e7b93e886..09d980c098b63 100644 --- a/ports/espressif/boards/adafruit_metro_esp32s2/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_metro_esp32s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Metro ESP32S2" diff --git a/ports/espressif/boards/adafruit_metro_esp32s3/mpconfigboard.h b/ports/espressif/boards/adafruit_metro_esp32s3/mpconfigboard.h index 68007def650ef..2442d28e71266 100644 --- a/ports/espressif/boards/adafruit_metro_esp32s3/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_metro_esp32s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Metro ESP32S3" diff --git a/ports/espressif/boards/adafruit_qtpy_esp32_pico/mpconfigboard.h b/ports/espressif/boards/adafruit_qtpy_esp32_pico/mpconfigboard.h index 7d7f4d4f1b512..799a53c5c789b 100644 --- a/ports/espressif/boards/adafruit_qtpy_esp32_pico/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_qtpy_esp32_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit QT Py ESP32 PICO" #define MICROPY_HW_MCU_NAME "ESP32" diff --git a/ports/espressif/boards/adafruit_qtpy_esp32c3/mpconfigboard.h b/ports/espressif/boards/adafruit_qtpy_esp32c3/mpconfigboard.h index 4a864396ca1c7..8fbdd1713e61b 100644 --- a/ports/espressif/boards/adafruit_qtpy_esp32c3/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_qtpy_esp32c3/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Adafruit QT Py ESP32C3" #define MICROPY_HW_MCU_NAME "ESP32-C3FN4" diff --git a/ports/espressif/boards/adafruit_qtpy_esp32s2/mpconfigboard.h b/ports/espressif/boards/adafruit_qtpy_esp32s2/mpconfigboard.h index d78e776fc2294..c59dbfc81c93d 100644 --- a/ports/espressif/boards/adafruit_qtpy_esp32s2/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_qtpy_esp32s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit QT Py ESP32S2" diff --git a/ports/espressif/boards/adafruit_qtpy_esp32s3_4mbflash_2mbpsram/mpconfigboard.h b/ports/espressif/boards/adafruit_qtpy_esp32s3_4mbflash_2mbpsram/mpconfigboard.h index c9e0bd0cd12c2..ad97ab057fb4d 100644 --- a/ports/espressif/boards/adafruit_qtpy_esp32s3_4mbflash_2mbpsram/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_qtpy_esp32s3_4mbflash_2mbpsram/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit QT Py ESP32-S3 4MB Flash 2MB PSRAM" diff --git a/ports/espressif/boards/adafruit_qtpy_esp32s3_nopsram/mpconfigboard.h b/ports/espressif/boards/adafruit_qtpy_esp32s3_nopsram/mpconfigboard.h index 26a7104357649..fcdefda3b4036 100644 --- a/ports/espressif/boards/adafruit_qtpy_esp32s3_nopsram/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_qtpy_esp32s3_nopsram/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit QT Py ESP32-S3 no psram" diff --git a/ports/espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.h b/ports/espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.h index 0664b3d19e176..1a79c63f3ff82 100644 --- a/ports/espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.h +++ b/ports/espressif/boards/adafruit_qualia_s3_rgb666/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit-Qualia-S3-RGB666" diff --git a/ports/espressif/boards/ai-thinker-esp32-cam/mpconfigboard.h b/ports/espressif/boards/ai-thinker-esp32-cam/mpconfigboard.h index 790718803f6e7..53ace45adbd56 100644 --- a/ports/espressif/boards/ai-thinker-esp32-cam/mpconfigboard.h +++ b/ports/espressif/boards/ai-thinker-esp32-cam/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Ai Thinker ESP32-CAM" #define MICROPY_HW_MCU_NAME "ESP32" diff --git a/ports/espressif/boards/ai_thinker_esp32-c3s-2m/mpconfigboard.h b/ports/espressif/boards/ai_thinker_esp32-c3s-2m/mpconfigboard.h index 0009a3fc60cd9..ebf3dd3090618 100644 --- a/ports/espressif/boards/ai_thinker_esp32-c3s-2m/mpconfigboard.h +++ b/ports/espressif/boards/ai_thinker_esp32-c3s-2m/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "AITHinker ESP32-C3S_Kit_2M" #define MICROPY_HW_MCU_NAME "ESP32-C3" diff --git a/ports/espressif/boards/ai_thinker_esp32-c3s/mpconfigboard.h b/ports/espressif/boards/ai_thinker_esp32-c3s/mpconfigboard.h index 2da84a10a3d00..ebd3cbe2d1de6 100644 --- a/ports/espressif/boards/ai_thinker_esp32-c3s/mpconfigboard.h +++ b/ports/espressif/boards/ai_thinker_esp32-c3s/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "AITHinker ESP32-C3S_Kit" #define MICROPY_HW_MCU_NAME "ESP32-C3FN4" diff --git a/ports/espressif/boards/ai_thinker_esp_12k_nodemcu/mpconfigboard.h b/ports/espressif/boards/ai_thinker_esp_12k_nodemcu/mpconfigboard.h index 379981dff5647..0537be575a67d 100644 --- a/ports/espressif/boards/ai_thinker_esp_12k_nodemcu/mpconfigboard.h +++ b/ports/espressif/boards/ai_thinker_esp_12k_nodemcu/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup // Same setup as the Saola board but with no Neopixel on board diff --git a/ports/espressif/boards/arduino_nano_esp32s3/mpconfigboard.h b/ports/espressif/boards/arduino_nano_esp32s3/mpconfigboard.h index 29653d2f1a844..6518da3566fd8 100644 --- a/ports/espressif/boards/arduino_nano_esp32s3/mpconfigboard.h +++ b/ports/espressif/boards/arduino_nano_esp32s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Arduino Nano ESP32" diff --git a/ports/espressif/boards/arduino_nano_esp32s3_inverted_statusled/mpconfigboard.h b/ports/espressif/boards/arduino_nano_esp32s3_inverted_statusled/mpconfigboard.h index dbd72b048dd2e..da20e04a973c3 100644 --- a/ports/espressif/boards/arduino_nano_esp32s3_inverted_statusled/mpconfigboard.h +++ b/ports/espressif/boards/arduino_nano_esp32s3_inverted_statusled/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Arduino Nano ESP32" diff --git a/ports/espressif/boards/artisense_rd00/mpconfigboard.h b/ports/espressif/boards/artisense_rd00/mpconfigboard.h index aa525ba5f077b..7f4de6fb5e962 100644 --- a/ports/espressif/boards/artisense_rd00/mpconfigboard.h +++ b/ports/espressif/boards/artisense_rd00/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup // Same setup as the Saola board but with no Neopixel on board diff --git a/ports/espressif/boards/atmegazero_esp32s2/mpconfigboard.h b/ports/espressif/boards/atmegazero_esp32s2/mpconfigboard.h index 5608c51669f71..8f20dc5bfe2ee 100644 --- a/ports/espressif/boards/atmegazero_esp32s2/mpconfigboard.h +++ b/ports/espressif/boards/atmegazero_esp32s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ATMegaZero ESP32-S2" diff --git a/ports/espressif/boards/beetle-esp32-c3/mpconfigboard.h b/ports/espressif/boards/beetle-esp32-c3/mpconfigboard.h index c35c6995dacad..cec05b0fb7ab9 100644 --- a/ports/espressif/boards/beetle-esp32-c3/mpconfigboard.h +++ b/ports/espressif/boards/beetle-esp32-c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "DFRobot Beetle ESP32-C3" diff --git a/ports/espressif/boards/bpi_bit_s2/mpconfigboard.h b/ports/espressif/boards/bpi_bit_s2/mpconfigboard.h index 52a0fcc60a115..71806d446b02b 100644 --- a/ports/espressif/boards/bpi_bit_s2/mpconfigboard.h +++ b/ports/espressif/boards/bpi_bit_s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "BPI-Bit-S2" diff --git a/ports/espressif/boards/bpi_leaf_s3/mpconfigboard.h b/ports/espressif/boards/bpi_leaf_s3/mpconfigboard.h index ef479def9ff3f..1384db64332b0 100644 --- a/ports/espressif/boards/bpi_leaf_s3/mpconfigboard.h +++ b/ports/espressif/boards/bpi_leaf_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "BPI-Leaf-S3" diff --git a/ports/espressif/boards/bpi_picow_s3/mpconfigboard.h b/ports/espressif/boards/bpi_picow_s3/mpconfigboard.h index 7ec1a381b4c2c..d1d0e72393f61 100644 --- a/ports/espressif/boards/bpi_picow_s3/mpconfigboard.h +++ b/ports/espressif/boards/bpi_picow_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "BPI-PicoW-S3" diff --git a/ports/espressif/boards/brainboardz_neuron/mpconfigboard.h b/ports/espressif/boards/brainboardz_neuron/mpconfigboard.h index 65ebd53e718d8..70bc3249fe663 100755 --- a/ports/espressif/boards/brainboardz_neuron/mpconfigboard.h +++ b/ports/espressif/boards/brainboardz_neuron/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Neuron" diff --git a/ports/espressif/boards/columbia-dsl-sensor/mpconfigboard.h b/ports/espressif/boards/columbia-dsl-sensor/mpconfigboard.h index c064ac6634dc4..63b0086d4b260 100644 --- a/ports/espressif/boards/columbia-dsl-sensor/mpconfigboard.h +++ b/ports/espressif/boards/columbia-dsl-sensor/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ColumbiaDSL-Sensor-Board-V1" diff --git a/ports/espressif/boards/crcibernetica-ideaboard/mpconfigboard.h b/ports/espressif/boards/crcibernetica-ideaboard/mpconfigboard.h index ce7c73b20cfc5..3315b93b64211 100644 --- a/ports/espressif/boards/crcibernetica-ideaboard/mpconfigboard.h +++ b/ports/espressif/boards/crcibernetica-ideaboard/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "CRCibernetica IdeaBoard" diff --git a/ports/espressif/boards/crumpspace_crumps2/mpconfigboard.h b/ports/espressif/boards/crumpspace_crumps2/mpconfigboard.h index 42e3101aef3a2..623c9bb2be712 100644 --- a/ports/espressif/boards/crumpspace_crumps2/mpconfigboard.h +++ b/ports/espressif/boards/crumpspace_crumps2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "CrumpS2" diff --git a/ports/espressif/boards/cytron_maker_feather_aiot_s3/mpconfigboard.h b/ports/espressif/boards/cytron_maker_feather_aiot_s3/mpconfigboard.h index ef7d295d2848a..943ec7625deb5 100644 --- a/ports/espressif/boards/cytron_maker_feather_aiot_s3/mpconfigboard.h +++ b/ports/espressif/boards/cytron_maker_feather_aiot_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Cytron Maker Feather AIoT S3" diff --git a/ports/espressif/boards/deneyap_kart/mpconfigboard.h b/ports/espressif/boards/deneyap_kart/mpconfigboard.h index 4ffccfd1a49b2..5374c9c789ed6 100644 --- a/ports/espressif/boards/deneyap_kart/mpconfigboard.h +++ b/ports/espressif/boards/deneyap_kart/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Deneyap Kart" diff --git a/ports/espressif/boards/deneyap_kart_1a/mpconfigboard.h b/ports/espressif/boards/deneyap_kart_1a/mpconfigboard.h index ee79699c05aa7..416eff32a9bcb 100644 --- a/ports/espressif/boards/deneyap_kart_1a/mpconfigboard.h +++ b/ports/espressif/boards/deneyap_kart_1a/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Deneyap Kart 1A" diff --git a/ports/espressif/boards/deneyap_kart_1a_v2/mpconfigboard.h b/ports/espressif/boards/deneyap_kart_1a_v2/mpconfigboard.h index 17cc694921184..8c0ff8e759810 100644 --- a/ports/espressif/boards/deneyap_kart_1a_v2/mpconfigboard.h +++ b/ports/espressif/boards/deneyap_kart_1a_v2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Deneyap Kart 1A v2" diff --git a/ports/espressif/boards/deneyap_kart_g/mpconfigboard.h b/ports/espressif/boards/deneyap_kart_g/mpconfigboard.h index 246375120eac1..1114415f65d8b 100644 --- a/ports/espressif/boards/deneyap_kart_g/mpconfigboard.h +++ b/ports/espressif/boards/deneyap_kart_g/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Deneyap Kart G" #define MICROPY_HW_MCU_NAME "ESP32-C3FN4" diff --git a/ports/espressif/boards/deneyap_mini/mpconfigboard.h b/ports/espressif/boards/deneyap_mini/mpconfigboard.h index 730147c47de32..4bd748c70c748 100644 --- a/ports/espressif/boards/deneyap_mini/mpconfigboard.h +++ b/ports/espressif/boards/deneyap_mini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Deneyap Mini" diff --git a/ports/espressif/boards/deneyap_mini_v2/mpconfigboard.h b/ports/espressif/boards/deneyap_mini_v2/mpconfigboard.h index 9fe706a6ee292..28c9abc7c9bba 100644 --- a/ports/espressif/boards/deneyap_mini_v2/mpconfigboard.h +++ b/ports/espressif/boards/deneyap_mini_v2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Deneyap Mini v2" diff --git a/ports/espressif/boards/doit_esp32_devkit_v1/mpconfigboard.h b/ports/espressif/boards/doit_esp32_devkit_v1/mpconfigboard.h index 5c3f14b3d35cd..c67d6ae03e1d9 100644 --- a/ports/espressif/boards/doit_esp32_devkit_v1/mpconfigboard.h +++ b/ports/espressif/boards/doit_esp32_devkit_v1/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32 Devkit V1" diff --git a/ports/espressif/boards/electroniccats_bastwifi/mpconfigboard.h b/ports/espressif/boards/electroniccats_bastwifi/mpconfigboard.h index a37d437e8683a..1d6a22ef0459c 100644 --- a/ports/espressif/boards/electroniccats_bastwifi/mpconfigboard.h +++ b/ports/espressif/boards/electroniccats_bastwifi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "BastWiFi" diff --git a/ports/espressif/boards/es3ink/mpconfigboard.h b/ports/espressif/boards/es3ink/mpconfigboard.h index 2ff1afd4cdeac..3d7eac94ddaae 100644 --- a/ports/espressif/boards/es3ink/mpconfigboard.h +++ b/ports/espressif/boards/es3ink/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ES3ink" diff --git a/ports/espressif/boards/espressif_esp32_devkitc_v4_wroom_32e/mpconfigboard.h b/ports/espressif/boards/espressif_esp32_devkitc_v4_wroom_32e/mpconfigboard.h index eb78d039cb02b..a5cc7b08ad3f9 100644 --- a/ports/espressif/boards/espressif_esp32_devkitc_v4_wroom_32e/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32_devkitc_v4_wroom_32e/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espressif ESP32 DevKitc V4 WROOM-32E" diff --git a/ports/espressif/boards/espressif_esp32_devkitc_v4_wrover/mpconfigboard.h b/ports/espressif/boards/espressif_esp32_devkitc_v4_wrover/mpconfigboard.h index ad09bffc1f94e..a9413b7d24ca8 100644 --- a/ports/espressif/boards/espressif_esp32_devkitc_v4_wrover/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32_devkitc_v4_wrover/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espressif ESP32 DevKitc V4 WROVER" diff --git a/ports/espressif/boards/espressif_esp32_eye/mpconfigboard.h b/ports/espressif/boards/espressif_esp32_eye/mpconfigboard.h index dcac55237c721..5e32db054088b 100644 --- a/ports/espressif/boards/espressif_esp32_eye/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32_eye/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espressif ESP32-EYE" diff --git a/ports/espressif/boards/espressif_esp32_lyrat/mpconfigboard.h b/ports/espressif/boards/espressif_esp32_lyrat/mpconfigboard.h index 209402c7db6aa..28eafc27a4e9c 100644 --- a/ports/espressif/boards/espressif_esp32_lyrat/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32_lyrat/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espressif ESP32-LyraT" diff --git a/ports/espressif/boards/espressif_esp32c3_devkitm_1_n4/mpconfigboard.h b/ports/espressif/boards/espressif_esp32c3_devkitm_1_n4/mpconfigboard.h index 02b4451f20f3c..55b7979e86bbf 100644 --- a/ports/espressif/boards/espressif_esp32c3_devkitm_1_n4/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32c3_devkitm_1_n4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "ESP32-C3-DevKitM-1" #define MICROPY_HW_MCU_NAME "ESP32-C3N4" diff --git a/ports/espressif/boards/espressif_esp32c6_devkitc_1_n8/mpconfigboard.h b/ports/espressif/boards/espressif_esp32c6_devkitc_1_n8/mpconfigboard.h index 3bc9c2a958073..e5f2606cf49fb 100644 --- a/ports/espressif/boards/espressif_esp32c6_devkitc_1_n8/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32c6_devkitc_1_n8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-C6-DevKitC-1-N8" diff --git a/ports/espressif/boards/espressif_esp32c6_devkitm_1_n4/mpconfigboard.h b/ports/espressif/boards/espressif_esp32c6_devkitm_1_n4/mpconfigboard.h index 3d777794af9e3..347cd58734846 100644 --- a/ports/espressif/boards/espressif_esp32c6_devkitm_1_n4/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32c6_devkitm_1_n4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "ESP32-C6-DevKitM-1" #define MICROPY_HW_MCU_NAME "ESP32-C6N4" diff --git a/ports/espressif/boards/espressif_esp32h2_devkitm_1_n4/mpconfigboard.h b/ports/espressif/boards/espressif_esp32h2_devkitm_1_n4/mpconfigboard.h index ca5cd8746ce75..e368af9d3a38a 100644 --- a/ports/espressif/boards/espressif_esp32h2_devkitm_1_n4/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32h2_devkitm_1_n4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "ESP32-H2-DevKitM-1" #define MICROPY_HW_MCU_NAME "ESP32-H2N4" diff --git a/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4/mpconfigboard.h index 182594284cbd5..baa8ab54ee5df 100644 --- a/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S2-DevKitC-1-N4" diff --git a/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4r2/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4r2/mpconfigboard.h index 0465ca3acca7d..b1996e7814a7c 100644 --- a/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4r2/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s2_devkitc_1_n4r2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S2-DevKitC-1-N4R2" diff --git a/ports/espressif/boards/espressif_esp32s2_devkitc_1_n8r2/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s2_devkitc_1_n8r2/mpconfigboard.h index e2eb368439b68..daa9890e8d34d 100644 --- a/ports/espressif/boards/espressif_esp32s2_devkitc_1_n8r2/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s2_devkitc_1_n8r2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S2-DevKitC-1-N8R2" diff --git a/ports/espressif/boards/espressif_esp32s3_box/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_box/mpconfigboard.h index 04338b59274aa..4c08a28b7d20e 100644 --- a/ports/espressif/boards/espressif_esp32s3_box/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_box/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-Box-2.5" diff --git a/ports/espressif/boards/espressif_esp32s3_box_lite/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_box_lite/mpconfigboard.h index f35ac643c6b32..fd85ee1ed3d2c 100644 --- a/ports/espressif/boards/espressif_esp32s3_box_lite/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_box_lite/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-Box-Lite" diff --git a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n32r8/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n32r8/mpconfigboard.h index e3e7d02c75768..fd2b8723eb664 100644 --- a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n32r8/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n32r8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-DevKitC-1-N32R8" diff --git a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8/mpconfigboard.h index 2ee339af97953..ab94251393772 100644 --- a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-DevKitC-1-N8" diff --git a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r2/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r2/mpconfigboard.h index b110d60a790aa..dcd737da119da 100644 --- a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r2/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-DevKitC-1-N8R2" diff --git a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8/mpconfigboard.h index 84b749f3d4e23..da7d018ee5f4c 100644 --- a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-DevKitC-1-N8R8" diff --git a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8_hacktablet/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8_hacktablet/mpconfigboard.h index aa8286b5bc6f2..d0b16b51b843b 100644 --- a/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8_hacktablet/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_devkitc_1_n8r8_hacktablet/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-DevKitC-1-N8R8-with-HACKTABLET" diff --git a/ports/espressif/boards/espressif_esp32s3_devkitm_1_n8/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_devkitm_1_n8/mpconfigboard.h index 3fe14423613c5..d6dba39b7ab3c 100644 --- a/ports/espressif/boards/espressif_esp32s3_devkitm_1_n8/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_devkitm_1_n8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-DevKitM-1-N8" diff --git a/ports/espressif/boards/espressif_esp32s3_eye/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_eye/mpconfigboard.h index 7fe7a53a162dc..24dca2e4ba2f3 100644 --- a/ports/espressif/boards/espressif_esp32s3_eye/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_eye/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-EYE" diff --git a/ports/espressif/boards/espressif_esp32s3_lcd_ev/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_lcd_ev/mpconfigboard.h index d88b8b615cbfb..345055629817a 100644 --- a/ports/espressif/boards/espressif_esp32s3_lcd_ev/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_lcd_ev/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espressif-ESP32-S3-LCD-EV-Board" diff --git a/ports/espressif/boards/espressif_esp32s3_usb_otg_n8/mpconfigboard.h b/ports/espressif/boards/espressif_esp32s3_usb_otg_n8/mpconfigboard.h index 8eb2507319b03..c5945c168f846 100644 --- a/ports/espressif/boards/espressif_esp32s3_usb_otg_n8/mpconfigboard.h +++ b/ports/espressif/boards/espressif_esp32s3_usb_otg_n8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ESP32-S3-USB-OTG-N8" diff --git a/ports/espressif/boards/espressif_hmi_devkit_1/mpconfigboard.h b/ports/espressif/boards/espressif_hmi_devkit_1/mpconfigboard.h index 55420507ca8b9..7c59e6d4decc9 100644 --- a/ports/espressif/boards/espressif_hmi_devkit_1/mpconfigboard.h +++ b/ports/espressif/boards/espressif_hmi_devkit_1/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "HMI-DevKit-1.1" diff --git a/ports/espressif/boards/espressif_kaluga_1.3/mpconfigboard.h b/ports/espressif/boards/espressif_kaluga_1.3/mpconfigboard.h index a0b080120374e..87536191e2351 100644 --- a/ports/espressif/boards/espressif_kaluga_1.3/mpconfigboard.h +++ b/ports/espressif/boards/espressif_kaluga_1.3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Kaluga 1" diff --git a/ports/espressif/boards/espressif_kaluga_1/mpconfigboard.h b/ports/espressif/boards/espressif_kaluga_1/mpconfigboard.h index d0dd8242f0c5e..28288fe8752d7 100644 --- a/ports/espressif/boards/espressif_kaluga_1/mpconfigboard.h +++ b/ports/espressif/boards/espressif_kaluga_1/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Kaluga 1" diff --git a/ports/espressif/boards/espressif_saola_1_wroom/mpconfigboard.h b/ports/espressif/boards/espressif_saola_1_wroom/mpconfigboard.h index 4f4536694a1e7..94e4b4fb71630 100644 --- a/ports/espressif/boards/espressif_saola_1_wroom/mpconfigboard.h +++ b/ports/espressif/boards/espressif_saola_1_wroom/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Saola 1 w/Wroom" diff --git a/ports/espressif/boards/espressif_saola_1_wrover/mpconfigboard.h b/ports/espressif/boards/espressif_saola_1_wrover/mpconfigboard.h index c22eedbd537c6..5f0b3ee71b1f8 100644 --- a/ports/espressif/boards/espressif_saola_1_wrover/mpconfigboard.h +++ b/ports/espressif/boards/espressif_saola_1_wrover/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Saola 1 w/Wrover" diff --git a/ports/espressif/boards/firebeetle2_esp32s3/mpconfigboard.h b/ports/espressif/boards/firebeetle2_esp32s3/mpconfigboard.h index f5f6a1ac01e49..490821c1ef764 100644 --- a/ports/espressif/boards/firebeetle2_esp32s3/mpconfigboard.h +++ b/ports/espressif/boards/firebeetle2_esp32s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "DFRobot FireBeetle 2 ESP32-S3" #define MICROPY_HW_MCU_NAME "ESP32S3" diff --git a/ports/espressif/boards/flipperzero_wifi_dev/mpconfigboard.h b/ports/espressif/boards/flipperzero_wifi_dev/mpconfigboard.h index a5bcb17c03214..c776221e60016 100644 --- a/ports/espressif/boards/flipperzero_wifi_dev/mpconfigboard.h +++ b/ports/espressif/boards/flipperzero_wifi_dev/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Flipper Zero Wi-Fi Dev" diff --git a/ports/espressif/boards/franzininho_wifi_wroom/mpconfigboard.h b/ports/espressif/boards/franzininho_wifi_wroom/mpconfigboard.h index 412dce4bd4a0f..6aad19182d90f 100644 --- a/ports/espressif/boards/franzininho_wifi_wroom/mpconfigboard.h +++ b/ports/espressif/boards/franzininho_wifi_wroom/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Franzininho WIFI w/Wroom" diff --git a/ports/espressif/boards/franzininho_wifi_wrover/mpconfigboard.h b/ports/espressif/boards/franzininho_wifi_wrover/mpconfigboard.h index f141085d5db8d..220d92e4a5129 100644 --- a/ports/espressif/boards/franzininho_wifi_wrover/mpconfigboard.h +++ b/ports/espressif/boards/franzininho_wifi_wrover/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Franzininho WIFI w/Wrover" diff --git a/ports/espressif/boards/gravitech_cucumber_m/mpconfigboard.h b/ports/espressif/boards/gravitech_cucumber_m/mpconfigboard.h index 288cb35e20013..95e3d8457311d 100644 --- a/ports/espressif/boards/gravitech_cucumber_m/mpconfigboard.h +++ b/ports/espressif/boards/gravitech_cucumber_m/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Gravitech Cucumber M" diff --git a/ports/espressif/boards/gravitech_cucumber_ms/mpconfigboard.h b/ports/espressif/boards/gravitech_cucumber_ms/mpconfigboard.h index b6287b5819821..ab597b73bed77 100644 --- a/ports/espressif/boards/gravitech_cucumber_ms/mpconfigboard.h +++ b/ports/espressif/boards/gravitech_cucumber_ms/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Gravitech Cucumber MS" diff --git a/ports/espressif/boards/gravitech_cucumber_r/mpconfigboard.h b/ports/espressif/boards/gravitech_cucumber_r/mpconfigboard.h index 6769e0d4c5713..58064f429445b 100644 --- a/ports/espressif/boards/gravitech_cucumber_r/mpconfigboard.h +++ b/ports/espressif/boards/gravitech_cucumber_r/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Gravitech Cucumber R" diff --git a/ports/espressif/boards/gravitech_cucumber_rs/mpconfigboard.h b/ports/espressif/boards/gravitech_cucumber_rs/mpconfigboard.h index 79b0f8642a205..005bb4ab230b6 100644 --- a/ports/espressif/boards/gravitech_cucumber_rs/mpconfigboard.h +++ b/ports/espressif/boards/gravitech_cucumber_rs/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Gravitech Cucumber RS" diff --git a/ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h b/ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h index 3cb5f7fe077c0..856184bba974b 100644 --- a/ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h +++ b/ports/espressif/boards/hardkernel_odroid_go/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Hardkernel Odroid Go" #define MICROPY_HW_MCU_NAME "ESP32" diff --git a/ports/espressif/boards/heltec_esp32s3_wifi_lora_v3/mpconfigboard.h b/ports/espressif/boards/heltec_esp32s3_wifi_lora_v3/mpconfigboard.h index c322866eea258..f986116a8e2ed 100644 --- a/ports/espressif/boards/heltec_esp32s3_wifi_lora_v3/mpconfigboard.h +++ b/ports/espressif/boards/heltec_esp32s3_wifi_lora_v3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Heltec ESP32-S3-WIFI-LoRa-V3" diff --git a/ports/espressif/boards/hexky_s2/mpconfigboard.h b/ports/espressif/boards/hexky_s2/mpconfigboard.h index 7f15c42670eb4..00400046690f3 100644 --- a/ports/espressif/boards/hexky_s2/mpconfigboard.h +++ b/ports/espressif/boards/hexky_s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "HexKyS2" diff --git a/ports/espressif/boards/hiibot_iots2/mpconfigboard.h b/ports/espressif/boards/hiibot_iots2/mpconfigboard.h index 144a68a7cdf3b..770f03c4810aa 100644 --- a/ports/espressif/boards/hiibot_iots2/mpconfigboard.h +++ b/ports/espressif/boards/hiibot_iots2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "IoTs2" diff --git a/ports/espressif/boards/lilygo_tdeck/mpconfigboard.h b/ports/espressif/boards/lilygo_tdeck/mpconfigboard.h index 41d8c9cf7874f..aca85d815e0ab 100644 --- a/ports/espressif/boards/lilygo_tdeck/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_tdeck/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO T-DECK" diff --git a/ports/espressif/boards/lilygo_tdisplay_s3/mpconfigboard.h b/ports/espressif/boards/lilygo_tdisplay_s3/mpconfigboard.h index 3b5dea2d6f55e..31cabb8e244c4 100644 --- a/ports/espressif/boards/lilygo_tdisplay_s3/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_tdisplay_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO T-DISPLAY S3 v1.2" diff --git a/ports/espressif/boards/lilygo_tembed_esp32s3/mpconfigboard.h b/ports/espressif/boards/lilygo_tembed_esp32s3/mpconfigboard.h index 642e7275347b1..18bf2ac67dee6 100644 --- a/ports/espressif/boards/lilygo_tembed_esp32s3/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_tembed_esp32s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO TEMBED ESP32S3" diff --git a/ports/espressif/boards/lilygo_ttgo_t-01c3/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_t-01c3/mpconfigboard.h index a524f39460198..0a04e5d5299e4 100644 --- a/ports/espressif/boards/lilygo_ttgo_t-01c3/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_t-01c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "LILYGO TTGO T-01C3" #define MICROPY_HW_MCU_NAME "ESP32-C3" diff --git a/ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.h index c4772c73be642..247e58d916d80 100644 --- a/ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_t-oi-plus/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "LILYGO TTGO T-OI PLUS" #define MICROPY_HW_MCU_NAME "ESP32-C3" diff --git a/ports/espressif/boards/lilygo_ttgo_t8_esp32_s2_wroom/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_t8_esp32_s2_wroom/mpconfigboard.h index b607422a4bdf6..ff898a35afcca 100644 --- a/ports/espressif/boards/lilygo_ttgo_t8_esp32_s2_wroom/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_t8_esp32_s2_wroom/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "TTGO T8 ESP32-S2-WROOM" diff --git a/ports/espressif/boards/lilygo_ttgo_t8_s2/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_t8_s2/mpconfigboard.h index 9ab674eefb924..7e5d5c00bf619 100644 --- a/ports/espressif/boards/lilygo_ttgo_t8_s2/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_t8_s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO TTGO T8 ESP32-S2" diff --git a/ports/espressif/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h index dfc64d86c5daf..de59659d4ae9c 100644 --- a/ports/espressif/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_t8_s2_st7789/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO TTGO T8 ESP32-S2 w/Display" diff --git a/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_16m/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_16m/mpconfigboard.h index 10b074bd9fcf3..75a875813db77 100644 --- a/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_16m/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_16m/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO TTGO T-DISPLAY v1.1" diff --git a/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m/mpconfigboard.h b/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m/mpconfigboard.h index b519954872f92..89be1f9e1d275 100644 --- a/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_ttgo_tdisplay_esp32_4m/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LILYGO TTGO T-DISPLAY v1.1 4M" diff --git a/ports/espressif/boards/lilygo_twatch_2020_v3/mpconfigboard.h b/ports/espressif/boards/lilygo_twatch_2020_v3/mpconfigboard.h index d499f3ec9da39..b943972b22c77 100644 --- a/ports/espressif/boards/lilygo_twatch_2020_v3/mpconfigboard.h +++ b/ports/espressif/boards/lilygo_twatch_2020_v3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Lilygo T-watch 2020 V3" diff --git a/ports/espressif/boards/lolin_c3_mini/mpconfigboard.h b/ports/espressif/boards/lolin_c3_mini/mpconfigboard.h index da141ad7007f5..0faf4e6775a43 100644 --- a/ports/espressif/boards/lolin_c3_mini/mpconfigboard.h +++ b/ports/espressif/boards/lolin_c3_mini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Wemos Lolin C3 Mini" // from Wemos MP diff --git a/ports/espressif/boards/lolin_c3_pico/mpconfigboard.h b/ports/espressif/boards/lolin_c3_pico/mpconfigboard.h index 767592c15a5af..2480030722308 100644 --- a/ports/espressif/boards/lolin_c3_pico/mpconfigboard.h +++ b/ports/espressif/boards/lolin_c3_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Wemos Lolin C3 Pico" // from Wemos MP diff --git a/ports/espressif/boards/lolin_s2_mini/mpconfigboard.h b/ports/espressif/boards/lolin_s2_mini/mpconfigboard.h index d170aef6a59a6..e89b644e11c12 100644 --- a/ports/espressif/boards/lolin_s2_mini/mpconfigboard.h +++ b/ports/espressif/boards/lolin_s2_mini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "S2Mini" diff --git a/ports/espressif/boards/lolin_s2_pico/mpconfigboard.h b/ports/espressif/boards/lolin_s2_pico/mpconfigboard.h index 146fb3efe15a2..cc6f1bcb9e530 100644 --- a/ports/espressif/boards/lolin_s2_pico/mpconfigboard.h +++ b/ports/espressif/boards/lolin_s2_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "S2Pico" diff --git a/ports/espressif/boards/lolin_s3/mpconfigboard.h b/ports/espressif/boards/lolin_s3/mpconfigboard.h index 2fe9197c4a000..f29f7551ce5d6 100644 --- a/ports/espressif/boards/lolin_s3/mpconfigboard.h +++ b/ports/espressif/boards/lolin_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LOLIN S3 16MB Flash 8MB PSRAM" diff --git a/ports/espressif/boards/lolin_s3_mini/mpconfigboard.h b/ports/espressif/boards/lolin_s3_mini/mpconfigboard.h index 3030473d4cb12..8e42bc8d76d33 100644 --- a/ports/espressif/boards/lolin_s3_mini/mpconfigboard.h +++ b/ports/espressif/boards/lolin_s3_mini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LOLIN S3 MINI 4MB Flash 2MB PSRAM" diff --git a/ports/espressif/boards/lolin_s3_pro/mpconfigboard.h b/ports/espressif/boards/lolin_s3_pro/mpconfigboard.h index b5964b18e5eaa..548f53af2ed1c 100755 --- a/ports/espressif/boards/lolin_s3_pro/mpconfigboard.h +++ b/ports/espressif/boards/lolin_s3_pro/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "LOLIN S3 PRO 16MB Flash 8MB PSRAM" diff --git a/ports/espressif/boards/luatos_core_esp32c3/mpconfigboard.h b/ports/espressif/boards/luatos_core_esp32c3/mpconfigboard.h index 5540b0feb3269..6d9b9db9c6dd2 100644 --- a/ports/espressif/boards/luatos_core_esp32c3/mpconfigboard.h +++ b/ports/espressif/boards/luatos_core_esp32c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Luatos Core-ESP32C3" diff --git a/ports/espressif/boards/luatos_core_esp32c3_ch343/mpconfigboard.h b/ports/espressif/boards/luatos_core_esp32c3_ch343/mpconfigboard.h index 1682f3b27f683..87fa0c13f65c3 100644 --- a/ports/espressif/boards/luatos_core_esp32c3_ch343/mpconfigboard.h +++ b/ports/espressif/boards/luatos_core_esp32c3_ch343/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Luatos Core-ESP32C3" diff --git a/ports/espressif/boards/m5stack_atom_echo/mpconfigboard.h b/ports/espressif/boards/m5stack_atom_echo/mpconfigboard.h index feb04e3b21b9b..56fc9db4cca98 100644 --- a/ports/espressif/boards/m5stack_atom_echo/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atom_echo/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Atom Echo" diff --git a/ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h b/ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h index ddaafdfef2160..35bc39b945717 100644 --- a/ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atom_lite/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Atom Lite" diff --git a/ports/espressif/boards/m5stack_atom_matrix/mpconfigboard.h b/ports/espressif/boards/m5stack_atom_matrix/mpconfigboard.h index 440eb44abe9e8..43ca2daff7519 100644 --- a/ports/espressif/boards/m5stack_atom_matrix/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atom_matrix/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Atom Matrix" diff --git a/ports/espressif/boards/m5stack_atom_u/mpconfigboard.h b/ports/espressif/boards/m5stack_atom_u/mpconfigboard.h index 8ab4234460e2d..96843a2e983dc 100644 --- a/ports/espressif/boards/m5stack_atom_u/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atom_u/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Atom U" diff --git a/ports/espressif/boards/m5stack_atoms3/mpconfigboard.h b/ports/espressif/boards/m5stack_atoms3/mpconfigboard.h index 4c0538977a571..76691f4c98ee5 100644 --- a/ports/espressif/boards/m5stack_atoms3/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atoms3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack AtomS3" diff --git a/ports/espressif/boards/m5stack_atoms3_lite/mpconfigboard.h b/ports/espressif/boards/m5stack_atoms3_lite/mpconfigboard.h index 3e31c4f973796..d57c3cb3c6815 100644 --- a/ports/espressif/boards/m5stack_atoms3_lite/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atoms3_lite/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack AtomS3 Lite" diff --git a/ports/espressif/boards/m5stack_atoms3u/mpconfigboard.h b/ports/espressif/boards/m5stack_atoms3u/mpconfigboard.h index 880e4896ca93e..9da6d1733b54a 100644 --- a/ports/espressif/boards/m5stack_atoms3u/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_atoms3u/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack AtomS3U" diff --git a/ports/espressif/boards/m5stack_cardputer/keymap.h b/ports/espressif/boards/m5stack_cardputer/keymap.h index 63147beb79f3f..08c278bf82bf1 100644 --- a/ports/espressif/boards/m5stack_cardputer/keymap.h +++ b/ports/espressif/boards/m5stack_cardputer/keymap.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define SHIFT_MOD 0x40 #define FN_MOD 0x80 diff --git a/ports/espressif/boards/m5stack_cardputer/mpconfigboard.h b/ports/espressif/boards/m5stack_cardputer/mpconfigboard.h index a24aa5bcf9025..8cd0d86db9a26 100644 --- a/ports/espressif/boards/m5stack_cardputer/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_cardputer/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5 Stack Cardputer" diff --git a/ports/espressif/boards/m5stack_core2/mpconfigboard.h b/ports/espressif/boards/m5stack_core2/mpconfigboard.h index 2650e86f724af..506736f4da39a 100755 --- a/ports/espressif/boards/m5stack_core2/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_core2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Core2" diff --git a/ports/espressif/boards/m5stack_core_basic/mpconfigboard.h b/ports/espressif/boards/m5stack_core_basic/mpconfigboard.h index 79da2cdbb80eb..ccdd0ae349f42 100755 --- a/ports/espressif/boards/m5stack_core_basic/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_core_basic/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Core Basic" diff --git a/ports/espressif/boards/m5stack_core_fire/mpconfigboard.h b/ports/espressif/boards/m5stack_core_fire/mpconfigboard.h index 05c788fba7ece..10e73e010f1fc 100755 --- a/ports/espressif/boards/m5stack_core_fire/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_core_fire/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Core Fire" diff --git a/ports/espressif/boards/m5stack_cores3/mpconfigboard.h b/ports/espressif/boards/m5stack_cores3/mpconfigboard.h index 9b1edc4ea7946..9af6ccf2fb427 100644 --- a/ports/espressif/boards/m5stack_cores3/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_cores3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack CoreS3" diff --git a/ports/espressif/boards/m5stack_dial/mpconfigboard.h b/ports/espressif/boards/m5stack_dial/mpconfigboard.h index c70c1c85dab56..0e0bc17c680b1 100644 --- a/ports/espressif/boards/m5stack_dial/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_dial/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Dial" diff --git a/ports/espressif/boards/m5stack_m5paper/mpconfigboard.h b/ports/espressif/boards/m5stack_m5paper/mpconfigboard.h index af41e5e05a38d..963bc916ee715 100644 --- a/ports/espressif/boards/m5stack_m5paper/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_m5paper/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack M5Paper" diff --git a/ports/espressif/boards/m5stack_stamp_c3/mpconfigboard.h b/ports/espressif/boards/m5stack_stamp_c3/mpconfigboard.h index 2a02b84a9254f..87f476e5fffcf 100644 --- a/ports/espressif/boards/m5stack_stamp_c3/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_stamp_c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "M5STACK STAMP-C3" diff --git a/ports/espressif/boards/m5stack_stick_c/mpconfigboard.h b/ports/espressif/boards/m5stack_stick_c/mpconfigboard.h index 12c56d5e02623..2e4d19a399f12 100644 --- a/ports/espressif/boards/m5stack_stick_c/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_stick_c/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Stick C" diff --git a/ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h b/ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h index e4ebe53a8d3bb..79f1f902d901e 100644 --- a/ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_stick_c_plus/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "M5Stack Stick C Plus" diff --git a/ports/espressif/boards/m5stack_timer_camera_x/mpconfigboard.h b/ports/espressif/boards/m5stack_timer_camera_x/mpconfigboard.h index c6f733ed64126..49b09c3383c31 100644 --- a/ports/espressif/boards/m5stack_timer_camera_x/mpconfigboard.h +++ b/ports/espressif/boards/m5stack_timer_camera_x/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "M5Stack Timer Camera X" #define MICROPY_HW_MCU_NAME "ESP32" diff --git a/ports/espressif/boards/magiclick_s3_n4r2/mpconfigboard.h b/ports/espressif/boards/magiclick_s3_n4r2/mpconfigboard.h index 6ad2df0b17bfc..ac5d98cba58fd 100644 --- a/ports/espressif/boards/magiclick_s3_n4r2/mpconfigboard.h +++ b/ports/espressif/boards/magiclick_s3_n4r2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "MagiClick S3 N4R2" diff --git a/ports/espressif/boards/maker_badge/mpconfigboard.h b/ports/espressif/boards/maker_badge/mpconfigboard.h index 2b4f68c6df8d8..5b55b6e918a27 100644 --- a/ports/espressif/boards/maker_badge/mpconfigboard.h +++ b/ports/espressif/boards/maker_badge/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Maker badge by Czech maker" diff --git a/ports/espressif/boards/makerfabs_tft7/mpconfigboard.h b/ports/espressif/boards/makerfabs_tft7/mpconfigboard.h index 6b22da260dcb9..aaae5c85b2765 100644 --- a/ports/espressif/boards/makerfabs_tft7/mpconfigboard.h +++ b/ports/espressif/boards/makerfabs_tft7/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "MakerFabs-ESP32-S3-Parallel-TFT-With-Touch-7inch" diff --git a/ports/espressif/boards/makergo_esp32c3_supermini/mpconfigboard.h b/ports/espressif/boards/makergo_esp32c3_supermini/mpconfigboard.h index 2306ce28f3432..6f3d33c29302b 100644 --- a/ports/espressif/boards/makergo_esp32c3_supermini/mpconfigboard.h +++ b/ports/espressif/boards/makergo_esp32c3_supermini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Maker Go ESP32C3 Supermini" diff --git a/ports/espressif/boards/microdev_micro_c3/mpconfigboard.h b/ports/espressif/boards/microdev_micro_c3/mpconfigboard.h index 6f8b1a04ddfa6..a6bc2b1aae848 100644 --- a/ports/espressif/boards/microdev_micro_c3/mpconfigboard.h +++ b/ports/espressif/boards/microdev_micro_c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "MicroDev microC3" #define MICROPY_HW_MCU_NAME "ESP32-C3FN4" diff --git a/ports/espressif/boards/microdev_micro_s2/mpconfigboard.h b/ports/espressif/boards/microdev_micro_s2/mpconfigboard.h index 4f4e0ea27c005..b7b327b23d3cd 100644 --- a/ports/espressif/boards/microdev_micro_s2/mpconfigboard.h +++ b/ports/espressif/boards/microdev_micro_s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "MicroDev microS2" #define MICROPY_HW_MCU_NAME "ESP32-S2" diff --git a/ports/espressif/boards/mixgo_ce_serial/mpconfigboard.h b/ports/espressif/boards/mixgo_ce_serial/mpconfigboard.h index fef88b284c424..faf376cd1884c 100644 --- a/ports/espressif/boards/mixgo_ce_serial/mpconfigboard.h +++ b/ports/espressif/boards/mixgo_ce_serial/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "MixGo CE" diff --git a/ports/espressif/boards/mixgo_ce_udisk/mpconfigboard.h b/ports/espressif/boards/mixgo_ce_udisk/mpconfigboard.h index fef88b284c424..faf376cd1884c 100644 --- a/ports/espressif/boards/mixgo_ce_udisk/mpconfigboard.h +++ b/ports/espressif/boards/mixgo_ce_udisk/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "MixGo CE" diff --git a/ports/espressif/boards/morpheans_morphesp-240/mpconfigboard.h b/ports/espressif/boards/morpheans_morphesp-240/mpconfigboard.h index 5091afa5cf16d..50998d4252880 100644 --- a/ports/espressif/boards/morpheans_morphesp-240/mpconfigboard.h +++ b/ports/espressif/boards/morpheans_morphesp-240/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "MORPHEANS MorphESP-240" diff --git a/ports/espressif/boards/muselab_nanoesp32_s2_wroom/mpconfigboard.h b/ports/espressif/boards/muselab_nanoesp32_s2_wroom/mpconfigboard.h index d3607bd37d06e..28924dde66c34 100644 --- a/ports/espressif/boards/muselab_nanoesp32_s2_wroom/mpconfigboard.h +++ b/ports/espressif/boards/muselab_nanoesp32_s2_wroom/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "nanoESP32-S2 w/Wroom" diff --git a/ports/espressif/boards/muselab_nanoesp32_s2_wrover/mpconfigboard.h b/ports/espressif/boards/muselab_nanoesp32_s2_wrover/mpconfigboard.h index 69003da8b40a4..d4a3dd09d1db3 100644 --- a/ports/espressif/boards/muselab_nanoesp32_s2_wrover/mpconfigboard.h +++ b/ports/espressif/boards/muselab_nanoesp32_s2_wrover/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "nanoESP32-S2 w/Wrover" diff --git a/ports/espressif/boards/odt_pixelwing_esp32_s2/mpconfigboard.h b/ports/espressif/boards/odt_pixelwing_esp32_s2/mpconfigboard.h index 5e256a1e1dca2..7697d6a98a8a7 100644 --- a/ports/espressif/boards/odt_pixelwing_esp32_s2/mpconfigboard.h +++ b/ports/espressif/boards/odt_pixelwing_esp32_s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Oak Dev Tech PixelWing ESP32S2" diff --git a/ports/espressif/boards/oxocard_artwork/mpconfigboard.h b/ports/espressif/boards/oxocard_artwork/mpconfigboard.h index f92b6dad4c1ef..73cbfbbb54ce6 100644 --- a/ports/espressif/boards/oxocard_artwork/mpconfigboard.h +++ b/ports/espressif/boards/oxocard_artwork/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Oxocard Artwork" diff --git a/ports/espressif/boards/oxocard_connect/mpconfigboard.h b/ports/espressif/boards/oxocard_connect/mpconfigboard.h index 3512a5a12f2df..d4c87c1d8a4ed 100644 --- a/ports/espressif/boards/oxocard_connect/mpconfigboard.h +++ b/ports/espressif/boards/oxocard_connect/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Oxocard Connect" diff --git a/ports/espressif/boards/oxocard_galaxy/mpconfigboard.h b/ports/espressif/boards/oxocard_galaxy/mpconfigboard.h index 7f68815b17f84..7f8e91ffc87ba 100644 --- a/ports/espressif/boards/oxocard_galaxy/mpconfigboard.h +++ b/ports/espressif/boards/oxocard_galaxy/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Oxocard Galaxy" diff --git a/ports/espressif/boards/oxocard_science/mpconfigboard.h b/ports/espressif/boards/oxocard_science/mpconfigboard.h index 78095ff4e24cb..ac20d9e9b2ecd 100644 --- a/ports/espressif/boards/oxocard_science/mpconfigboard.h +++ b/ports/espressif/boards/oxocard_science/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Oxocard Science" diff --git a/ports/espressif/boards/seeed_xiao_esp32c3/mpconfigboard.h b/ports/espressif/boards/seeed_xiao_esp32c3/mpconfigboard.h index d4d0007d20247..29f933465b55a 100644 --- a/ports/espressif/boards/seeed_xiao_esp32c3/mpconfigboard.h +++ b/ports/espressif/boards/seeed_xiao_esp32c3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Seeed Studio XIAO ESP32C3" #define MICROPY_HW_MCU_NAME "ESP32-C3FN4" diff --git a/ports/espressif/boards/sensebox_mcu_esp32s2/mpconfigboard.h b/ports/espressif/boards/sensebox_mcu_esp32s2/mpconfigboard.h index 1835e5d5a5979..9213a260ab86e 100644 --- a/ports/espressif/boards/sensebox_mcu_esp32s2/mpconfigboard.h +++ b/ports/espressif/boards/sensebox_mcu_esp32s2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "senseBox MCU-S2 ESP32S2" diff --git a/ports/espressif/boards/smartbeedesigns_bee_data_logger/mpconfigboard.h b/ports/espressif/boards/smartbeedesigns_bee_data_logger/mpconfigboard.h index 1923c84cf9bbc..ed94367c4aac9 100644 --- a/ports/espressif/boards/smartbeedesigns_bee_data_logger/mpconfigboard.h +++ b/ports/espressif/boards/smartbeedesigns_bee_data_logger/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Bee-Data-Logger" diff --git a/ports/espressif/boards/smartbeedesigns_bee_motion_s3/mpconfigboard.h b/ports/espressif/boards/smartbeedesigns_bee_motion_s3/mpconfigboard.h index 92b8aa09d4d47..f24da9bb5ddb7 100644 --- a/ports/espressif/boards/smartbeedesigns_bee_motion_s3/mpconfigboard.h +++ b/ports/espressif/boards/smartbeedesigns_bee_motion_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Bee-Motion-S3" diff --git a/ports/espressif/boards/smartbeedesigns_bee_s3/mpconfigboard.h b/ports/espressif/boards/smartbeedesigns_bee_s3/mpconfigboard.h index c1de8d155abc7..38d7fb9d5d07a 100644 --- a/ports/espressif/boards/smartbeedesigns_bee_s3/mpconfigboard.h +++ b/ports/espressif/boards/smartbeedesigns_bee_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Bee-S3" diff --git a/ports/espressif/boards/spotpear_esp32c3_lcd_1_44/mpconfigboard.h b/ports/espressif/boards/spotpear_esp32c3_lcd_1_44/mpconfigboard.h index 652eb7aaa2af9..fcc5a74ea9fe0 100644 --- a/ports/espressif/boards/spotpear_esp32c3_lcd_1_44/mpconfigboard.h +++ b/ports/espressif/boards/spotpear_esp32c3_lcd_1_44/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Spotpear ESP32C3 LCD 1.44" #define MICROPY_HW_MCU_NAME "ESP32-C3FH4" diff --git a/ports/espressif/boards/sqfmi_watchy/mpconfigboard.h b/ports/espressif/boards/sqfmi_watchy/mpconfigboard.h index 21a93b0b8f189..b6b375f14282d 100644 --- a/ports/espressif/boards/sqfmi_watchy/mpconfigboard.h +++ b/ports/espressif/boards/sqfmi_watchy/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "SQFMI Watchy" diff --git a/ports/espressif/boards/sunton_esp32_2424S012/mpconfigboard.h b/ports/espressif/boards/sunton_esp32_2424S012/mpconfigboard.h index 1f0aac74c310b..c1665fa8c28b2 100644 --- a/ports/espressif/boards/sunton_esp32_2424S012/mpconfigboard.h +++ b/ports/espressif/boards/sunton_esp32_2424S012/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "Sunton ESP32-2424S012" diff --git a/ports/espressif/boards/sunton_esp32_2432S028/mpconfigboard.h b/ports/espressif/boards/sunton_esp32_2432S028/mpconfigboard.h index fc179c92fbc0e..95eb1bdefe74a 100644 --- a/ports/espressif/boards/sunton_esp32_2432S028/mpconfigboard.h +++ b/ports/espressif/boards/sunton_esp32_2432S028/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "sunton_esp32_2432S028" diff --git a/ports/espressif/boards/sunton_esp32_8048S070/mpconfigboard.h b/ports/espressif/boards/sunton_esp32_8048S070/mpconfigboard.h index 9ebf463c54743..919c575e87831 100644 --- a/ports/espressif/boards/sunton_esp32_8048S070/mpconfigboard.h +++ b/ports/espressif/boards/sunton_esp32_8048S070/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Sunton-ESP32-8048S070" diff --git a/ports/espressif/boards/targett_module_clip_wroom/mpconfigboard.h b/ports/espressif/boards/targett_module_clip_wroom/mpconfigboard.h index 591d2b068d600..7e2a02f93d07c 100644 --- a/ports/espressif/boards/targett_module_clip_wroom/mpconfigboard.h +++ b/ports/espressif/boards/targett_module_clip_wroom/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup // Essentially the same as the Saola board but without the neopixel diff --git a/ports/espressif/boards/targett_module_clip_wrover/mpconfigboard.h b/ports/espressif/boards/targett_module_clip_wrover/mpconfigboard.h index 8e664607b0c3e..179ca7d65e0c7 100644 --- a/ports/espressif/boards/targett_module_clip_wrover/mpconfigboard.h +++ b/ports/espressif/boards/targett_module_clip_wrover/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup // Same setup as the Saola board but with no Neopixel on board diff --git a/ports/espressif/boards/unexpectedmaker_bling/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_bling/mpconfigboard.h index 4c3e6ba731977..671f714daeab9 100644 --- a/ports/espressif/boards/unexpectedmaker_bling/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_bling/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "BLING!" diff --git a/ports/espressif/boards/unexpectedmaker_blizzard_s3/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_blizzard_s3/mpconfigboard.h index 2b1a04f86521d..dd677dad7b91e 100644 --- a/ports/espressif/boards/unexpectedmaker_blizzard_s3/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_blizzard_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "BlizzardS3" diff --git a/ports/espressif/boards/unexpectedmaker_feathers2/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_feathers2/mpconfigboard.h index c5101e948da59..d8349cdb58bf7 100644 --- a/ports/espressif/boards/unexpectedmaker_feathers2/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_feathers2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "FeatherS2" diff --git a/ports/espressif/boards/unexpectedmaker_feathers2_neo/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_feathers2_neo/mpconfigboard.h index 8b8c26c3f71f5..1dd6b79a9b994 100644 --- a/ports/espressif/boards/unexpectedmaker_feathers2_neo/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_feathers2_neo/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "FeatherS2 Neo" diff --git a/ports/espressif/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h index c1793d67bc176..1d6c9035ac6fd 100644 --- a/ports/espressif/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_feathers2_prerelease/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "FeatherS2 PreRelease" diff --git a/ports/espressif/boards/unexpectedmaker_feathers3/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_feathers3/mpconfigboard.h index 642af0b999d59..53157a1ff11e7 100644 --- a/ports/espressif/boards/unexpectedmaker_feathers3/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_feathers3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "FeatherS3" diff --git a/ports/espressif/boards/unexpectedmaker_nanos3/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_nanos3/mpconfigboard.h index 64350cbef9c6d..022d6f3373efd 100644 --- a/ports/espressif/boards/unexpectedmaker_nanos3/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_nanos3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "NanoS3" diff --git a/ports/espressif/boards/unexpectedmaker_pros3/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_pros3/mpconfigboard.h index 2320624a8155f..bec68c88cb190 100644 --- a/ports/espressif/boards/unexpectedmaker_pros3/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_pros3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ProS3" diff --git a/ports/espressif/boards/unexpectedmaker_tinyc6/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_tinyc6/mpconfigboard.h index e77a2234ab78c..3e4995437d594 100644 --- a/ports/espressif/boards/unexpectedmaker_tinyc6/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_tinyc6/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "TinyC6" diff --git a/ports/espressif/boards/unexpectedmaker_tinypico/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_tinypico/mpconfigboard.h index 593e05dc3e76f..c03aa8d7fbce7 100644 --- a/ports/espressif/boards/unexpectedmaker_tinypico/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_tinypico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "TinyPICO" #define MICROPY_HW_MCU_NAME "ESP32-PICO-D4" diff --git a/ports/espressif/boards/unexpectedmaker_tinypico_nano/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_tinypico_nano/mpconfigboard.h index e764601e734fe..2ab781f1a2e27 100644 --- a/ports/espressif/boards/unexpectedmaker_tinypico_nano/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_tinypico_nano/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "TinyPICO Nano" #define MICROPY_HW_MCU_NAME "ESP32-PICO-D4" diff --git a/ports/espressif/boards/unexpectedmaker_tinys2/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_tinys2/mpconfigboard.h index 215cadcd06920..d7c87bfdba2dd 100644 --- a/ports/espressif/boards/unexpectedmaker_tinys2/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_tinys2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "TinyS2" diff --git a/ports/espressif/boards/unexpectedmaker_tinys3/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_tinys3/mpconfigboard.h index d3f83c928a80f..2556e714d67b3 100644 --- a/ports/espressif/boards/unexpectedmaker_tinys3/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_tinys3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "TinyS3" diff --git a/ports/espressif/boards/unexpectedmaker_tinywatch_s3/mpconfigboard.h b/ports/espressif/boards/unexpectedmaker_tinywatch_s3/mpconfigboard.h index a46c653e046a8..6f0181c4acb1c 100644 --- a/ports/espressif/boards/unexpectedmaker_tinywatch_s3/mpconfigboard.h +++ b/ports/espressif/boards/unexpectedmaker_tinywatch_s3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "TinyWATCH S3" diff --git a/ports/espressif/boards/waveshare_esp32_s2_pico_lcd/mpconfigboard.h b/ports/espressif/boards/waveshare_esp32_s2_pico_lcd/mpconfigboard.h index ab9e7ee375800..c74499cf80aa9 100644 --- a/ports/espressif/boards/waveshare_esp32_s2_pico_lcd/mpconfigboard.h +++ b/ports/espressif/boards/waveshare_esp32_s2_pico_lcd/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare ESP32-S2-Pico-LCD" diff --git a/ports/espressif/boards/waveshare_esp32_s3_geek/mpconfigboard.h b/ports/espressif/boards/waveshare_esp32_s3_geek/mpconfigboard.h index 8ce2bc349058e..2da021447e39f 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_geek/mpconfigboard.h +++ b/ports/espressif/boards/waveshare_esp32_s3_geek/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare ESP32-S3-GEEK" diff --git a/ports/espressif/boards/waveshare_esp32_s3_lcd_1_28/mpconfigboard.h b/ports/espressif/boards/waveshare_esp32_s3_lcd_1_28/mpconfigboard.h index e5eb9605ef907..1e1acbdd9f8b5 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_lcd_1_28/mpconfigboard.h +++ b/ports/espressif/boards/waveshare_esp32_s3_lcd_1_28/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare ESP32S3 LCD 1.28" diff --git a/ports/espressif/boards/waveshare_esp32_s3_pico/mpconfigboard.h b/ports/espressif/boards/waveshare_esp32_s3_pico/mpconfigboard.h index 6893b0e1dea0d..866fbdaea5584 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_pico/mpconfigboard.h +++ b/ports/espressif/boards/waveshare_esp32_s3_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare ESP32-S3-Pico" diff --git a/ports/espressif/boards/waveshare_esp32_s3_zero/mpconfigboard.h b/ports/espressif/boards/waveshare_esp32_s3_zero/mpconfigboard.h index 4d36d6f06120c..da6b7a8a8552f 100644 --- a/ports/espressif/boards/waveshare_esp32_s3_zero/mpconfigboard.h +++ b/ports/espressif/boards/waveshare_esp32_s3_zero/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare ESP32-S3-Zero" diff --git a/ports/espressif/boards/waveshare_esp32s2_pico/mpconfigboard.h b/ports/espressif/boards/waveshare_esp32s2_pico/mpconfigboard.h index cdef90545fee3..2888af9184ab4 100644 --- a/ports/espressif/boards/waveshare_esp32s2_pico/mpconfigboard.h +++ b/ports/espressif/boards/waveshare_esp32s2_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare ESP32-S2-Pico" diff --git a/ports/espressif/boards/weact_esp32c6_n4/mpconfigboard.h b/ports/espressif/boards/weact_esp32c6_n4/mpconfigboard.h index 60c38a4106a78..777e62c731bf6 100644 --- a/ports/espressif/boards/weact_esp32c6_n4/mpconfigboard.h +++ b/ports/espressif/boards/weact_esp32c6_n4/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "WeAct ESP32-C6 (4MB)" #define MICROPY_HW_MCU_NAME "ESP32-C6N4" diff --git a/ports/espressif/boards/weact_esp32c6_n8/mpconfigboard.h b/ports/espressif/boards/weact_esp32c6_n8/mpconfigboard.h index 0ebdc2b8b553c..a72cf703c3d6a 100644 --- a/ports/espressif/boards/weact_esp32c6_n8/mpconfigboard.h +++ b/ports/espressif/boards/weact_esp32c6_n8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Board setup #define MICROPY_HW_BOARD_NAME "WeAct ESP32-C6 (8MB)" #define MICROPY_HW_MCU_NAME "ESP32-C6N4" diff --git a/ports/espressif/boards/wemos_lolin32_lite/mpconfigboard.h b/ports/espressif/boards/wemos_lolin32_lite/mpconfigboard.h index 13b73696e9b10..6a9f03571569b 100644 --- a/ports/espressif/boards/wemos_lolin32_lite/mpconfigboard.h +++ b/ports/espressif/boards/wemos_lolin32_lite/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "WeMos LOLIN32 Lite" diff --git a/ports/espressif/boards/yd_esp32_s3_n16r8/mpconfigboard.h b/ports/espressif/boards/yd_esp32_s3_n16r8/mpconfigboard.h index cacd7149c20f1..730eb44380776 100644 --- a/ports/espressif/boards/yd_esp32_s3_n16r8/mpconfigboard.h +++ b/ports/espressif/boards/yd_esp32_s3_n16r8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "VCC-GND YD-ESP32-S3 (N16R8)" #define MICROPY_HW_MCU_NAME "ESP32S3" diff --git a/ports/espressif/boards/yd_esp32_s3_n8r8/mpconfigboard.h b/ports/espressif/boards/yd_esp32_s3_n8r8/mpconfigboard.h index d3578cf1e948c..b2b39a2b94648 100644 --- a/ports/espressif/boards/yd_esp32_s3_n8r8/mpconfigboard.h +++ b/ports/espressif/boards/yd_esp32_s3_n8r8/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "VCC-GND YD-ESP32-S3 (N8R8)" #define MICROPY_HW_MCU_NAME "ESP32S3" diff --git a/ports/espressif/common-hal/_bleio/Adapter.h b/ports/espressif/common-hal/_bleio/Adapter.h index 1f4ac61d1f47a..1dbae9946ee3b 100644 --- a/ports/espressif/common-hal/_bleio/Adapter.h +++ b/ports/espressif/common-hal/_bleio/Adapter.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_ADAPTER_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_ADAPTER_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -36,5 +35,3 @@ typedef struct { void bleio_adapter_gc_collect(bleio_adapter_obj_t *adapter); void bleio_adapter_reset(bleio_adapter_obj_t *adapter); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_ADAPTER_H diff --git a/ports/espressif/common-hal/_bleio/Attribute.h b/ports/espressif/common-hal/_bleio/Attribute.h index e975fbe0614eb..417ac3c454955 100644 --- a/ports/espressif/common-hal/_bleio/Attribute.h +++ b/ports/espressif/common-hal/_bleio/Attribute.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_ATTRIBUTE_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_ATTRIBUTE_H +#pragma once #include "shared-module/_bleio/Attribute.h" - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_ATTRIBUTE_H diff --git a/ports/espressif/common-hal/_bleio/bonding.h b/ports/espressif/common-hal/_bleio/bonding.h index 586e9662d1bef..a0dc213828161 100644 --- a/ports/espressif/common-hal/_bleio/bonding.h +++ b/ports/espressif/common-hal/_bleio/bonding.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_BONDING_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_BONDING_H +#pragma once #include #include @@ -67,5 +66,3 @@ size_t bonding_peripheral_bond_count(void); void bonding_print_block(bonding_block_t *); void bonding_print_keys(bonding_keys_t *); #endif - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BLEIO_BONDING_H diff --git a/ports/espressif/common-hal/analogbufio/BufferedIn.h b/ports/espressif/common-hal/analogbufio/BufferedIn.h index 4ad09d417cf8c..6f43903e4c29d 100644 --- a/ports/espressif/common-hal/analogbufio/BufferedIn.h +++ b/ports/espressif/common-hal/analogbufio/BufferedIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESP32_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H -#define MICROPY_INCLUDED_ESP32_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "py/obj.h" @@ -20,5 +19,3 @@ typedef struct { adc_continuous_handle_t handle; bool started; } analogbufio_bufferedin_obj_t; - -#endif // MICROPY_INCLUDED_ESP32_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H diff --git a/ports/espressif/common-hal/analogio/AnalogIn.h b/ports/espressif/common-hal/analogio/AnalogIn.h index 241fc41f56f58..944039bec2a2f 100644 --- a/ports/espressif/common-hal/analogio/AnalogIn.h +++ b/ports/espressif/common-hal/analogio/AnalogIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -18,5 +17,3 @@ typedef struct { mp_obj_base_t base; const mcu_pin_obj_t *pin; } analogio_analogin_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/espressif/common-hal/analogio/AnalogOut.h b/ports/espressif/common-hal/analogio/AnalogOut.h index 57dec09e1c0fe..90199a221f05e 100644 --- a/ports/espressif/common-hal/analogio/AnalogOut.h +++ b/ports/espressif/common-hal/analogio/AnalogOut.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -24,5 +23,3 @@ typedef struct { } analogio_analogout_obj_t; void analogout_reset(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/espressif/common-hal/audiobusio/PDMIn.h b/ports/espressif/common-hal/audiobusio/PDMIn.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/espressif/common-hal/audiobusio/PDMIn.h +++ b/ports/espressif/common-hal/audiobusio/PDMIn.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/espressif/common-hal/busio/I2C.h b/ports/espressif/common-hal/busio/I2C.h index 5542a1bdffa22..6e040224ece20 100644 --- a/ports/espressif/common-hal/busio/I2C.h +++ b/ports/espressif/common-hal/busio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -24,5 +23,3 @@ typedef struct { SemaphoreHandle_t xSemaphore; bool has_lock; } busio_i2c_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/espressif/common-hal/busio/UART.h b/ports/espressif/common-hal/busio/UART.h index c2ecc1a61ea3f..96bd6c8bf75b5 100644 --- a/ports/espressif/common-hal/busio/UART.h +++ b/ports/espressif/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_UART_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -32,5 +31,3 @@ typedef struct { } busio_uart_obj_t; void uart_reset(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_UART_H diff --git a/ports/espressif/common-hal/digitalio/DigitalInOut.h b/ports/espressif/common-hal/digitalio/DigitalInOut.h index ec4ec0ab4c6be..49838ca97c3c8 100644 --- a/ports/espressif/common-hal/digitalio/DigitalInOut.h +++ b/ports/espressif/common-hal/digitalio/DigitalInOut.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -17,5 +16,3 @@ typedef struct { } digitalio_digitalinout_obj_t; extern void digitalio_digitalinout_preserve_for_deep_sleep(size_t n_dios, digitalio_digitalinout_obj_t *preserve_dios[]); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/espressif/common-hal/dotclockframebuffer/__init__.h b/ports/espressif/common-hal/dotclockframebuffer/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/espressif/common-hal/dotclockframebuffer/__init__.h +++ b/ports/espressif/common-hal/dotclockframebuffer/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/espressif/common-hal/dualbank/__init__.h b/ports/espressif/common-hal/dualbank/__init__.h index 69bac4bd1bb1c..54cf8cc68c903 100644 --- a/ports/espressif/common-hal/dualbank/__init__.h +++ b/ports/espressif/common-hal/dualbank/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_DUALBANK___INIT___H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_DUALBANK___INIT___H +#pragma once extern void dualbank_reset(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_DUALBANK___INIT___H diff --git a/ports/espressif/common-hal/i2ctarget/I2CTarget.h b/ports/espressif/common-hal/i2ctarget/I2CTarget.h index 84f507b505fe1..2dcfb581eb312 100644 --- a/ports/espressif/common-hal/i2ctarget/I2CTarget.h +++ b/ports/espressif/common-hal/i2ctarget/I2CTarget.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_I2C_TARGET_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_I2C_TARGET_H +#pragma once #include "py/obj.h" #include "peripherals/i2c.h" @@ -19,5 +18,3 @@ typedef struct { const mcu_pin_obj_t *scl_pin; const mcu_pin_obj_t *sda_pin; } i2ctarget_i2c_target_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_BUSIO_I2C_TARGET_H diff --git a/ports/espressif/common-hal/memorymap/AddressRange.h b/ports/espressif/common-hal/memorymap/AddressRange.h index 06a50fa926959..71bd76b9ea52a 100644 --- a/ports/espressif/common-hal/memorymap/AddressRange.h +++ b/ports/espressif/common-hal/memorymap/AddressRange.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { uint8_t *start_address; size_t len; } memorymap_addressrange_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H diff --git a/ports/espressif/common-hal/microcontroller/Pin.h b/ports/espressif/common-hal/microcontroller/Pin.h index ff935650bd071..662a3a84eb9b0 100644 --- a/ports/espressif/common-hal/microcontroller/Pin.h +++ b/ports/espressif/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include "py/mphal.h" @@ -37,5 +36,3 @@ extern void clear_pin_preservations(void); // Return true to indicate that the pin was reset. Returning false will lead to // the port-default reset behavior. extern bool espressif_board_reset_pin_number(gpio_num_t pin_number); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/espressif/common-hal/microcontroller/Processor.h b/ports/espressif/common-hal/microcontroller/Processor.h index 8eff97cf5eb41..81abbedeab211 100644 --- a/ports/espressif/common-hal/microcontroller/Processor.h +++ b/ports/espressif/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 6 @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; // Stores no state currently. } mcu_processor_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/espressif/common-hal/nvm/ByteArray.h b/ports/espressif/common-hal/nvm/ByteArray.h index d3c684b2f49c8..8eb7e7c00aeb5 100644 --- a/ports/espressif/common-hal/nvm/ByteArray.h +++ b/ports/espressif/common-hal/nvm/ByteArray.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_NVM_BYTEARRAY_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_NVM_BYTEARRAY_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { uint8_t *start_address; uint32_t len; } nvm_bytearray_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_NVM_BYTEARRAY_H diff --git a/ports/espressif/common-hal/ps2io/Ps2.h b/ports/espressif/common-hal/ps2io/Ps2.h index 6483d02bb9505..a3586b59f6ac8 100644 --- a/ports/espressif/common-hal/ps2io/Ps2.h +++ b/ports/espressif/common-hal/ps2io/Ps2.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_PS2IO_PS2_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_PS2IO_PS2_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -36,5 +35,3 @@ typedef struct { } ps2io_ps2_obj_t; void ps2_reset(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_PS2IO_PS2_H diff --git a/ports/espressif/common-hal/rgbmatrix/RGBMatrix.h b/ports/espressif/common-hal/rgbmatrix/RGBMatrix.h index 0021692913222..56c32e5c24f8e 100644 --- a/ports/espressif/common-hal/rgbmatrix/RGBMatrix.h +++ b/ports/espressif/common-hal/rgbmatrix/RGBMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H +#pragma once #include "shared-module/rgbmatrix/RGBMatrix.h" @@ -13,5 +12,3 @@ void *common_hal_rgbmatrix_timer_allocate(rgbmatrix_rgbmatrix_obj_t *self); void common_hal_rgbmatrix_timer_enable(void *); void common_hal_rgbmatrix_timer_disable(void *); void common_hal_rgbmatrix_timer_free(void *); - -#endif diff --git a/ports/espressif/common-hal/rgbmatrix/__init__.h b/ports/espressif/common-hal/rgbmatrix/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/espressif/common-hal/rgbmatrix/__init__.h +++ b/ports/espressif/common-hal/rgbmatrix/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/espressif/common-hal/rtc/RTC.h b/ports/espressif/common-hal/rtc/RTC.h index 7e594f5194d03..18625763562a2 100644 --- a/ports/espressif/common-hal/rtc/RTC.h +++ b/ports/espressif/common-hal/rtc/RTC.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_RTC_RTC_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_RTC_RTC_H +#pragma once extern void rtc_init(void); extern void rtc_reset(void); extern void common_hal_rtc_init(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_RTC_RTC_H diff --git a/ports/espressif/common-hal/socketpool/SocketPool.h b/ports/espressif/common-hal/socketpool/SocketPool.h index c682a32ae14a1..64f91e01e1cf1 100644 --- a/ports/espressif/common-hal/socketpool/SocketPool.h +++ b/ports/espressif/common-hal/socketpool/SocketPool.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_SOCKETPOOL_SOCKETPOOL_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_SOCKETPOOL_SOCKETPOOL_H +#pragma once #include "py/obj.h" typedef struct { mp_obj_base_t base; } socketpool_socketpool_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_SOCKETPOOL_SOCKETPOOL_H diff --git a/ports/espressif/common-hal/socketpool/__init__.h b/ports/espressif/common-hal/socketpool/__init__.h index c72cd4ada506f..fd356b87050f9 100644 --- a/ports/espressif/common-hal/socketpool/__init__.h +++ b/ports/espressif/common-hal/socketpool/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_SOCKETPOOL___INIT___H #define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_SOCKETPOOL___INIT___H diff --git a/ports/espressif/common-hal/touchio/TouchIn.h b/ports/espressif/common-hal/touchio/TouchIn.h index 8d78332d2cdc3..0b757d99dfb45 100644 --- a/ports/espressif/common-hal/touchio/TouchIn.h +++ b/ports/espressif/common-hal/touchio/TouchIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_TOUCHIO_TOUCHIN_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_TOUCHIO_TOUCHIN_H +#pragma once #include "py/obj.h" #include "common-hal/microcontroller/Pin.h" @@ -15,5 +14,3 @@ typedef struct { const mcu_pin_obj_t *pin; uint16_t threshold; } touchio_touchin_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_TOUCHIO_TOUCHIN_H diff --git a/ports/espressif/common-hal/watchdog/WatchDogTimer.h b/ports/espressif/common-hal/watchdog/WatchDogTimer.h index 8a4dd94eb66a2..ea53104bcc51a 100644 --- a/ports/espressif/common-hal/watchdog/WatchDogTimer.h +++ b/ports/espressif/common-hal/watchdog/WatchDogTimer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H +#pragma once #include "py/obj.h" @@ -19,5 +18,3 @@ struct _watchdog_watchdogtimer_obj_t { mp_float_t timeout; watchdog_watchdogmode_t mode; }; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H diff --git a/ports/espressif/common-hal/wifi/Monitor.h b/ports/espressif/common-hal/wifi/Monitor.h index 906a7a3f4016f..6049291277e87 100644 --- a/ports/espressif/common-hal/wifi/Monitor.h +++ b/ports/espressif/common-hal/wifi/Monitor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H +#pragma once #include "py/obj.h" #include "components/esp_wifi/include/esp_wifi.h" @@ -17,5 +16,3 @@ typedef struct { size_t queue_length; QueueHandle_t queue; } wifi_monitor_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H diff --git a/ports/espressif/common-hal/wifi/Network.h b/ports/espressif/common-hal/wifi/Network.h index 20c4310bdfd49..9c4a4eeceb617 100644 --- a/ports/espressif/common-hal/wifi/Network.h +++ b/ports/espressif/common-hal/wifi/Network.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_NETWORK_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_NETWORK_H +#pragma once #include "py/obj.h" @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; wifi_ap_record_t record; } wifi_network_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_NETWORK_H diff --git a/ports/espressif/common-hal/wifi/Radio.h b/ports/espressif/common-hal/wifi/Radio.h index 62a624cbc0ece..7e91862c300cf 100644 --- a/ports/espressif/common-hal/wifi/Radio.h +++ b/ports/espressif/common-hal/wifi/Radio.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_RADIO_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_RADIO_H +#pragma once #include "py/obj.h" @@ -45,5 +44,3 @@ typedef struct { } wifi_radio_obj_t; extern void common_hal_wifi_radio_gc_collect(wifi_radio_obj_t *self); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_RADIO_H diff --git a/ports/espressif/common-hal/wifi/ScannedNetworks.h b/ports/espressif/common-hal/wifi/ScannedNetworks.h index e289e3a80fd68..f9f65587be034 100644 --- a/ports/espressif/common-hal/wifi/ScannedNetworks.h +++ b/ports/espressif/common-hal/wifi/ScannedNetworks.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_SCANNEDNETWORKS_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_SCANNEDNETWORKS_H +#pragma once #include @@ -38,5 +37,3 @@ typedef struct { void wifi_scannednetworks_scan_next_channel(wifi_scannednetworks_obj_t *self); void wifi_scannednetworks_deinit(wifi_scannednetworks_obj_t *self); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_SCANNEDNETWORKS_H diff --git a/ports/espressif/common-hal/wifi/__init__.h b/ports/espressif/common-hal/wifi/__init__.h index ec7f4d12b57bc..55a7fddbf4481 100644 --- a/ports/espressif/common-hal/wifi/__init__.h +++ b/ports/espressif/common-hal/wifi/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI___INIT___H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI___INIT___H +#pragma once #include "py/obj.h" @@ -16,5 +15,3 @@ void wifi_reset(void); void ipaddress_ipaddress_to_esp_idf(mp_obj_t ip_address, ip_addr_t *esp_ip_address); void ipaddress_ipaddress_to_esp_idf_ip4(mp_obj_t ip_address, esp_ip4_addr_t *esp_ip_address); - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI___INIT___H diff --git a/ports/espressif/mpconfigport.h b/ports/espressif/mpconfigport.h index 2698381a3ef4c..a2d632a20ec8e 100644 --- a/ports/espressif/mpconfigport.h +++ b/ports/espressif/mpconfigport.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_MPCONFIGPORT_H -#define MICROPY_INCLUDED_ESPRESSIF_MPCONFIGPORT_H +#pragma once // Enable for debugging. // #define CIRCUITPY_VERBOSE_BLE (1) @@ -60,5 +59,3 @@ extern portMUX_TYPE background_task_mutex; #define CALLBACK_CRITICAL_BEGIN (taskENTER_CRITICAL(&background_task_mutex)) #define CALLBACK_CRITICAL_END (taskEXIT_CRITICAL(&background_task_mutex)) - -#endif // MICROPY_INCLUDED_ESPRESSIF_MPCONFIGPORT_H diff --git a/ports/espressif/mphalport.h b/ports/espressif/mphalport.h index b630eecc898b9..749e73335682d 100644 --- a/ports/espressif/mphalport.h +++ b/ports/espressif/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_MPHAL_H -#define MICROPY_INCLUDED_ESPRESSIF_MPHAL_H +#pragma once #include #include @@ -17,5 +16,3 @@ #define mp_hal_ticks_ms() ((mp_uint_t)supervisor_ticks_ms32()) bool mp_hal_stdin_any(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_MPHAL_H diff --git a/ports/espressif/peripherals/esp32/pins.h b/ports/espressif/peripherals/esp32/pins.h index 71a777a27b754..f8c94d5704336 100644 --- a/ports/espressif/peripherals/esp32/pins.h +++ b/ports/espressif/peripherals/esp32/pins.h @@ -8,8 +8,7 @@ // Use shared-bindings/microcontroller/Pin.h instead. // This ensures that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32_PINS_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32_PINS_H +#pragma once #define GPIO0_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO0; @@ -87,5 +86,3 @@ extern const mcu_pin_obj_t pin_GPIO37; extern const mcu_pin_obj_t pin_GPIO38; #define GPIO39_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO39; - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32_PINS_H diff --git a/ports/espressif/peripherals/esp32c3/pins.h b/ports/espressif/peripherals/esp32c3/pins.h index e1ce88dd9ec90..7efc75cc6908a 100644 --- a/ports/espressif/peripherals/esp32c3/pins.h +++ b/ports/espressif/peripherals/esp32c3/pins.h @@ -8,8 +8,7 @@ // Use shared-bindings/microcontroller/Pin.h instead. // This ensures that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32C3_PINS_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32C3_PINS_H +#pragma once #define GPIO0_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO0; @@ -55,5 +54,3 @@ extern const mcu_pin_obj_t pin_GPIO19; extern const mcu_pin_obj_t pin_GPIO20; #define GPIO21_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO21; - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32C3_PINS_H diff --git a/ports/espressif/peripherals/esp32s2/pins.h b/ports/espressif/peripherals/esp32s2/pins.h index 07a04d98fb4a7..811eb6e25c8b1 100644 --- a/ports/espressif/peripherals/esp32s2/pins.h +++ b/ports/espressif/peripherals/esp32s2/pins.h @@ -8,8 +8,7 @@ // Use shared-bindings/microcontroller/Pin.h instead. // This ensures that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32S2_PINS_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32S2_PINS_H +#pragma once #define GPIO0_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO0; @@ -97,5 +96,3 @@ extern const mcu_pin_obj_t pin_GPIO44; extern const mcu_pin_obj_t pin_GPIO45; #define GPIO46_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO46; - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32S2_PINS_H diff --git a/ports/espressif/peripherals/esp32s3/pins.h b/ports/espressif/peripherals/esp32s3/pins.h index 46b9dcf394629..19e2d5fba61a4 100644 --- a/ports/espressif/peripherals/esp32s3/pins.h +++ b/ports/espressif/peripherals/esp32s3/pins.h @@ -8,8 +8,7 @@ // Use shared-bindings/microcontroller/Pin.h instead. // This ensures that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32S3_PINS_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32S3_PINS_H +#pragma once #define GPIO0_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO0; @@ -101,5 +100,3 @@ extern const mcu_pin_obj_t pin_GPIO46; extern const mcu_pin_obj_t pin_GPIO47; #define GPIO48_EXISTS 1 extern const mcu_pin_obj_t pin_GPIO48; - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_ESP32S3_PINS_H diff --git a/ports/espressif/peripherals/i2c.h b/ports/espressif/peripherals/i2c.h index d9eea304a82a3..a97889fe5acfa 100644 --- a/ports/espressif/peripherals/i2c.h +++ b/ports/espressif/peripherals/i2c.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_I2C_HANDLER_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_I2C_HANDLER_H +#pragma once #include "driver/i2c.h" @@ -14,5 +13,3 @@ extern void never_reset_i2c(i2c_port_t num); extern esp_err_t peripherals_i2c_init(i2c_port_t num, const i2c_config_t *i2c_conf); extern void peripherals_i2c_deinit(i2c_port_t num); extern i2c_port_t peripherals_i2c_get_free_num(void); - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_I2C_HANDLER_H diff --git a/ports/espressif/peripherals/pins.h b/ports/espressif/peripherals/pins.h index 81582ba3dae71..30bb21cdec70f 100644 --- a/ports/espressif/peripherals/pins.h +++ b/ports/espressif/peripherals/pins.h @@ -8,8 +8,7 @@ // Use shared-bindings/microcontroller/Pin.h instead. // This ensures that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_PINS_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_PINS_H +#pragma once #include "py/obj.h" @@ -60,5 +59,3 @@ extern const mp_obj_type_t mcu_pin_type; #elif defined(CONFIG_IDF_TARGET_ESP32S3) #include "esp32s3/pins.h" #endif - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_PINS_H diff --git a/ports/espressif/peripherals/touch.h b/ports/espressif/peripherals/touch.h index 494a44627878b..6be4f8c2be133 100644 --- a/ports/espressif/peripherals/touch.h +++ b/ports/espressif/peripherals/touch.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_TOUCH_HANDLER_H -#define MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_TOUCH_HANDLER_H +#pragma once #include "driver/touch_pad.h" @@ -13,5 +12,3 @@ extern uint16_t peripherals_touch_read(touch_pad_t touchpad); extern void peripherals_touch_reset(void); extern void peripherals_touch_never_reset(const bool enable); extern void peripherals_touch_init(const touch_pad_t touchpad); - -#endif // MICROPY_INCLUDED_ESPRESSIF_PERIPHERALS_TOUCH_HANDLER_H diff --git a/ports/espressif/pmic/axp192/axp192.h b/ports/espressif/pmic/axp192/axp192.h index 3fcc05e6f706d..daa9459756fc9 100755 --- a/ports/espressif/pmic/axp192/axp192.h +++ b/ports/espressif/pmic/axp192/axp192.h @@ -6,8 +6,7 @@ // SPDX-License-Identifier: MIT -#ifndef MICROPY_AXP192_H -#define MICROPY_AXP192_H +#pragma once #include "shared-bindings/busio/I2C.h" @@ -268,5 +267,3 @@ bool pmic_disable_all_irq(busio_i2c_obj_t *i2c); bool pmic_clear_all_irq(busio_i2c_obj_t *i2c); bool pmic_enable_power_key_press_irq(busio_i2c_obj_t *i2c); bool pmic_enable_low_battery_irq(busio_i2c_obj_t *i2c); - -#endif diff --git a/ports/espressif/qstrdefsport.h b/ports/espressif/qstrdefsport.h index b0f5566fabf2a..9ff78060068f9 100644 --- a/ports/espressif/qstrdefsport.h +++ b/ports/espressif/qstrdefsport.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port // *FORMAT-OFF* diff --git a/ports/espressif/supervisor/internal_flash.h b/ports/espressif/supervisor/internal_flash.h index a530fd299d806..7bc26042ca5a4 100644 --- a/ports/espressif/supervisor/internal_flash.h +++ b/ports/espressif/supervisor/internal_flash.h @@ -4,8 +4,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2019 Lucian Copeland for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_ESPRESSIF_INTERNAL_FLASH_H +#pragma once #include #include @@ -14,5 +13,3 @@ #define INTERNAL_FLASH_SYSTICK_MASK (0x1ff) // 512ms #define INTERNAL_FLASH_IDLE_TICK(tick) (((tick) & INTERNAL_FLASH_SYSTICK_MASK) == 2) - -#endif // MICROPY_INCLUDED_ESPRESSIF_INTERNAL_FLASH_H diff --git a/ports/litex/background.h b/ports/litex/background.h index c9899b50e30fa..c2d984756784e 100644 --- a/ports/litex/background.h +++ b/ports/litex/background.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_LITEX_BACKGROUND_H #define MICROPY_INCLUDED_LITEX_BACKGROUND_H diff --git a/ports/litex/boards/fomu/csr.h b/ports/litex/boards/fomu/csr.h index 6c0e280d18aee..c2a2495f7b7b2 100644 --- a/ports/litex/boards/fomu/csr.h +++ b/ports/litex/boards/fomu/csr.h @@ -8,8 +8,7 @@ // Auto-generated by Migen (f4fcd10) & LiteX (de205d4a) on 2019-11-25 14:57:34 // -------------------------------------------------------------------------------- #include -#ifndef __GENERATED_CSR_H -#define __GENERATED_CSR_H +#pragma once #include #ifdef CSR_ACCESSORS_DEFINED extern void csr_writeb(uint8_t value, unsigned long addr); @@ -649,5 +648,3 @@ static inline unsigned int version_seed_read(void) { r |= csr_readl(0xe0007038L); return r; } - -#endif diff --git a/ports/litex/boards/fomu/generated/soc.h b/ports/litex/boards/fomu/generated/soc.h index 53b057837ec42..dc821bc6b4acd 100644 --- a/ports/litex/boards/fomu/generated/soc.h +++ b/ports/litex/boards/fomu/generated/soc.h @@ -7,8 +7,7 @@ // -------------------------------------------------------------------------------- // Auto-generated by Migen (f4fcd10) & LiteX (de205d4a) on 2019-11-25 15:17:59 // -------------------------------------------------------------------------------- -#ifndef __GENERATED_SOC_H -#define __GENERATED_SOC_H +#pragma once #define CONFIG_BITSTREAM_SYNC_HEADER1 2123999870 static inline int config_bitstream_sync_header1_read(void) { return 2123999870; @@ -60,5 +59,3 @@ static inline int timer0_interrupt_read(void) { static inline int usb_interrupt_read(void) { return 3; } - -#endif diff --git a/ports/litex/boards/fomu/mpconfigboard.h b/ports/litex/boards/fomu/mpconfigboard.h index c39bdf90e625e..497809110ed78 100644 --- a/ports/litex/boards/fomu/mpconfigboard.h +++ b/ports/litex/boards/fomu/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Fomu" diff --git a/ports/litex/common-hal/digitalio/DigitalInOut.h b/ports/litex/common-hal/digitalio/DigitalInOut.h index 1508bff3658e9..f58b23832b190 100644 --- a/ports/litex/common-hal/digitalio/DigitalInOut.h +++ b/ports/litex/common-hal/digitalio/DigitalInOut.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_FOMU_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_FOMU_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -14,5 +13,3 @@ typedef struct { mp_obj_base_t base; const mcu_pin_obj_t *pin; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_FOMU_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/litex/common-hal/microcontroller/Pin.h b/ports/litex/common-hal/microcontroller/Pin.h index aa38abf2d88e4..542f3e979b5bc 100644 --- a/ports/litex/common-hal/microcontroller/Pin.h +++ b/ports/litex/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_FOMU_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_FOMU_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include "py/mphal.h" @@ -35,5 +34,3 @@ bool pin_number_is_free(uint8_t pin_port, uint8_t pin_number); void never_reset_pin_number(uint8_t pin_port, uint8_t pin_number); // GPIO_TypeDef * pin_port(uint8_t pin_port); uint16_t pin_mask(uint8_t pin_number); - -#endif // MICROPY_INCLUDED_FOMU_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/litex/common-hal/microcontroller/Processor.h b/ports/litex/common-hal/microcontroller/Processor.h index 7a6ffad459025..56da8367f8cff 100644 --- a/ports/litex/common-hal/microcontroller/Processor.h +++ b/ports/litex/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_LITEX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_LITEX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 15 @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; // Stores no state currently. } mcu_processor_obj_t; - -#endif // MICROPY_INCLUDED_LITEX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/litex/hw/common.h b/ports/litex/hw/common.h index aba6b24394924..5597a866c62b7 100644 --- a/ports/litex/hw/common.h +++ b/ports/litex/hw/common.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef _HW_COMMON_H_ -#define _HW_COMMON_H_ +#pragma once #include static inline void csr_writeb(uint8_t value, uint32_t addr) { *((volatile uint8_t *)addr) = value; @@ -30,4 +29,3 @@ static inline void csr_writel(uint32_t value, uint32_t addr) { static inline uint32_t csr_readl(uint32_t addr) { return *(volatile uint32_t *)addr; } -#endif /* _HW_COMMON_H_ */ diff --git a/ports/litex/irq.h b/ports/litex/irq.h index e1f0cae4d4d80..f0e0ee2ea4eaf 100644 --- a/ports/litex/irq.h +++ b/ports/litex/irq.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __IRQ_H -#define __IRQ_H +#pragma once #ifdef __cplusplus extern "C" { @@ -72,5 +71,3 @@ static inline unsigned int irq_pending(void) { #ifdef __cplusplus } #endif - -#endif /* __IRQ_H */ diff --git a/ports/litex/mpconfigport.h b/ports/litex/mpconfigport.h index 17b6f6aa74c7e..8e7537af6a63a 100644 --- a/ports/litex/mpconfigport.h +++ b/ports/litex/mpconfigport.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef FPGA_MPCONFIGPORT_H__ -#define FPGA_MPCONFIGPORT_H__ +#pragma once #define CIRCUITPY_INTERNAL_NVM_SIZE (0) #define MICROPY_NLR_THUMB (0) @@ -16,6 +15,3 @@ #define MICROPY_NLR_SETJMP (1) #define CIRCUITPY_DEFAULT_STACK_SIZE 0x6000 - - -#endif // __INCLUDED_FPGA_MPCONFIGPORT_H diff --git a/ports/litex/mphalport.h b/ports/litex/mphalport.h index ef5705832c4b8..fc019b2f42b62 100644 --- a/ports/litex/mphalport.h +++ b/ports/litex/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __FOMU_HAL -#define __FOMU_HAL +#pragma once #include #include @@ -18,5 +17,3 @@ // #define mp_hal_delay_us(us) NRFX_DELAY_US((uint32_t) (us)) bool mp_hal_stdin_any(void); - -#endif diff --git a/ports/litex/qstrdefsport.h b/ports/litex/qstrdefsport.h index b0f5566fabf2a..9ff78060068f9 100644 --- a/ports/litex/qstrdefsport.h +++ b/ports/litex/qstrdefsport.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port // *FORMAT-OFF* diff --git a/ports/litex/supervisor/internal_flash.h b/ports/litex/supervisor/internal_flash.h index 9167036d42ec1..7bc26042ca5a4 100644 --- a/ports/litex/supervisor/internal_flash.h +++ b/ports/litex/supervisor/internal_flash.h @@ -4,8 +4,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2019 Lucian Copeland for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_LITEX_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_LITEX_INTERNAL_FLASH_H +#pragma once #include #include @@ -14,5 +13,3 @@ #define INTERNAL_FLASH_SYSTICK_MASK (0x1ff) // 512ms #define INTERNAL_FLASH_IDLE_TICK(tick) (((tick) & INTERNAL_FLASH_SYSTICK_MASK) == 2) - -#endif // MICROPY_INCLUDED_LITEX_INTERNAL_FLASH_H diff --git a/ports/mimxrt10xx/background.h b/ports/mimxrt10xx/background.h index 138a5fc618550..7d7df48865caf 100644 --- a/ports/mimxrt10xx/background.h +++ b/ports/mimxrt10xx/background.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_MIMXRT10XX_BACKGROUND_H #define MICROPY_INCLUDED_MIMXRT10XX_BACKGROUND_H diff --git a/ports/mimxrt10xx/boards/adafruit_metro_m7_1011_sd/mpconfigboard.h b/ports/mimxrt10xx/boards/adafruit_metro_m7_1011_sd/mpconfigboard.h index dd18b11f35d69..1fe72385d485f 100644 --- a/ports/mimxrt10xx/boards/adafruit_metro_m7_1011_sd/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/adafruit_metro_m7_1011_sd/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Metro MIMXRT1011" #define MICROPY_HW_MCU_NAME "IMXRT1011DAE5A" diff --git a/ports/mimxrt10xx/boards/board.h b/ports/mimxrt10xx/boards/board.h index 7f79085c91572..3da19aa1a55c0 100644 --- a/ports/mimxrt10xx/boards/board.h +++ b/ports/mimxrt10xx/boards/board.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "mpconfigboard.h" #define XIP_BOOT_HEADER_ENABLE (1) diff --git a/ports/mimxrt10xx/boards/feather_m7_1011/mpconfigboard.h b/ports/mimxrt10xx/boards/feather_m7_1011/mpconfigboard.h index c582072c38f65..70256d08a7679 100644 --- a/ports/mimxrt10xx/boards/feather_m7_1011/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/feather_m7_1011/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather MIMXRT1011" #define MICROPY_HW_MCU_NAME "IMXRT1011DAE5A" diff --git a/ports/mimxrt10xx/boards/feather_mimxrt1011/mpconfigboard.h b/ports/mimxrt10xx/boards/feather_mimxrt1011/mpconfigboard.h index 31885d2bae4d0..6ef64f1bbea84 100644 --- a/ports/mimxrt10xx/boards/feather_mimxrt1011/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/feather_mimxrt1011/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Feather MIMXRT1011" #define MICROPY_HW_MCU_NAME "IMXRT1011DAE5A" diff --git a/ports/mimxrt10xx/boards/feather_mimxrt1062/mpconfigboard.h b/ports/mimxrt10xx/boards/feather_mimxrt1062/mpconfigboard.h index 82d10dc8f092e..2ca0c21cbb432 100644 --- a/ports/mimxrt10xx/boards/feather_mimxrt1062/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/feather_mimxrt1062/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Feather MIMXRT1062" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" diff --git a/ports/mimxrt10xx/boards/flash_config.h b/ports/mimxrt10xx/boards/flash_config.h index a0dc3e22590b1..5fc09f6396523 100644 --- a/ports/mimxrt10xx/boards/flash_config.h +++ b/ports/mimxrt10xx/boards/flash_config.h @@ -6,8 +6,7 @@ // This file defines board specific functions. -#ifndef MICROPY_INCLUDED_MIMXRT10XX_BOARDS_FLASH_CONFIG_H -#define MICROPY_INCLUDED_MIMXRT10XX_BOARDS_FLASH_CONFIG_H +#pragma once #include @@ -56,5 +55,3 @@ enum // FlexSPI configuration that stores command info. extern const flexspi_nor_config_t qspiflash_config; - -#endif // MICROPY_INCLUDED_MIMXRT10XX_BOARDS_FLASH_CONFIG_H diff --git a/ports/mimxrt10xx/boards/imxrt1010_evk/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1010_evk/mpconfigboard.h index 9e9e4756e1f94..9a3603127296e 100644 --- a/ports/mimxrt10xx/boards/imxrt1010_evk/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1010_evk/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "IMXRT1010-EVK" #define MICROPY_HW_MCU_NAME "IMXRT1011DAE5A" diff --git a/ports/mimxrt10xx/boards/imxrt1015_evk/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1015_evk/mpconfigboard.h index fe731dec0a4fe..867501c5879ba 100644 --- a/ports/mimxrt10xx/boards/imxrt1015_evk/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1015_evk/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "IMXRT1015-EVK" #define MICROPY_HW_MCU_NAME "IMXRT1015DAF5A" diff --git a/ports/mimxrt10xx/boards/imxrt1020_evk/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1020_evk/mpconfigboard.h index cebe7ef0ac22f..ca692d8fdd70e 100644 --- a/ports/mimxrt10xx/boards/imxrt1020_evk/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1020_evk/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "iMX RT 1020 EVK" #define MICROPY_HW_MCU_NAME "IMXRT1021DAG5A" diff --git a/ports/mimxrt10xx/boards/imxrt1040_evk/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1040_evk/mpconfigboard.h index cd1a83ea83999..f0271b55371fd 100644 --- a/ports/mimxrt10xx/boards/imxrt1040_evk/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1040_evk/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "iMX RT 1040 EVK" #define MICROPY_HW_MCU_NAME "IMXRT1042XJM5B" diff --git a/ports/mimxrt10xx/boards/imxrt1050_evkb/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1050_evkb/mpconfigboard.h index c8669e74fa3cc..aa2f10fb173db 100644 --- a/ports/mimxrt10xx/boards/imxrt1050_evkb/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1050_evkb/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "iMX RT 1050 EVKB" #define MICROPY_HW_MCU_NAME "IMXRT1052DVL6B" diff --git a/ports/mimxrt10xx/boards/imxrt1060_evk/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1060_evk/mpconfigboard.h index 70434e12c7647..8c090e2941b09 100644 --- a/ports/mimxrt10xx/boards/imxrt1060_evk/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1060_evk/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "iMX RT 1060 EVK" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" diff --git a/ports/mimxrt10xx/boards/imxrt1060_evkb/mpconfigboard.h b/ports/mimxrt10xx/boards/imxrt1060_evkb/mpconfigboard.h index d73dd243491ce..6286c2e545c74 100644 --- a/ports/mimxrt10xx/boards/imxrt1060_evkb/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/imxrt1060_evkb/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "iMX RT 1060 EVKB" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" diff --git a/ports/mimxrt10xx/boards/metro_m7_1011/mpconfigboard.h b/ports/mimxrt10xx/boards/metro_m7_1011/mpconfigboard.h index dd18b11f35d69..1fe72385d485f 100644 --- a/ports/mimxrt10xx/boards/metro_m7_1011/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/metro_m7_1011/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Metro MIMXRT1011" #define MICROPY_HW_MCU_NAME "IMXRT1011DAE5A" diff --git a/ports/mimxrt10xx/boards/sparkfun_teensy_micromod/mpconfigboard.h b/ports/mimxrt10xx/boards/sparkfun_teensy_micromod/mpconfigboard.h index 5fc2889a066fb..4fbf0a302a9cb 100644 --- a/ports/mimxrt10xx/boards/sparkfun_teensy_micromod/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/sparkfun_teensy_micromod/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun Teensy MicroMod Processor" #define MICROPY_HW_MCU_NAME "IMXRT1062DVL6A" diff --git a/ports/mimxrt10xx/boards/teensy40/mpconfigboard.h b/ports/mimxrt10xx/boards/teensy40/mpconfigboard.h index 4d89446dfd0c1..e7565d64438f6 100644 --- a/ports/mimxrt10xx/boards/teensy40/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/teensy40/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Teensy 4.0" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" diff --git a/ports/mimxrt10xx/boards/teensy41/mpconfigboard.h b/ports/mimxrt10xx/boards/teensy41/mpconfigboard.h index c0b807321d9ee..66329bbc88c99 100644 --- a/ports/mimxrt10xx/boards/teensy41/mpconfigboard.h +++ b/ports/mimxrt10xx/boards/teensy41/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Teensy 4.1" #define MICROPY_HW_MCU_NAME "IMXRT1062DVJ6A" diff --git a/ports/mimxrt10xx/common-hal/analogio/AnalogIn.h b/ports/mimxrt10xx/common-hal/analogio/AnalogIn.h index 0fef51e20d3c3..8e7580937767e 100644 --- a/ports/mimxrt10xx/common-hal/analogio/AnalogIn.h +++ b/ports/mimxrt10xx/common-hal/analogio/AnalogIn.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -16,5 +15,3 @@ typedef struct { mp_obj_base_t base; const mcu_pin_obj_t *pin; } analogio_analogin_obj_t; - -#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/mimxrt10xx/common-hal/analogio/AnalogOut.h b/ports/mimxrt10xx/common-hal/analogio/AnalogOut.h index a57467bc2275f..08a8332c41594 100644 --- a/ports/mimxrt10xx/common-hal/analogio/AnalogOut.h +++ b/ports/mimxrt10xx/common-hal/analogio/AnalogOut.h @@ -5,13 +5,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "py/obj.h" typedef struct { mp_obj_base_t base; } analogio_analogout_obj_t; - -#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/mimxrt10xx/common-hal/audiobusio/PDMIn.h b/ports/mimxrt10xx/common-hal/audiobusio/PDMIn.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/mimxrt10xx/common-hal/audiobusio/PDMIn.h +++ b/ports/mimxrt10xx/common-hal/audiobusio/PDMIn.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/mimxrt10xx/common-hal/audiopwmio/__init__.h b/ports/mimxrt10xx/common-hal/audiopwmio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/mimxrt10xx/common-hal/audiopwmio/__init__.h +++ b/ports/mimxrt10xx/common-hal/audiopwmio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/mimxrt10xx/common-hal/microcontroller/Processor.h b/ports/mimxrt10xx/common-hal/microcontroller/Processor.h index 843dfec3508b1..30b8e0a4e499b 100644 --- a/ports/mimxrt10xx/common-hal/microcontroller/Processor.h +++ b/ports/mimxrt10xx/common-hal/microcontroller/Processor.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 16 @@ -17,5 +16,3 @@ typedef struct { mp_obj_base_t base; uint32_t frequency; } mcu_processor_obj_t; - -#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/mimxrt10xx/common-hal/rotaryio/__init__.h b/ports/mimxrt10xx/common-hal/rotaryio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/mimxrt10xx/common-hal/rotaryio/__init__.h +++ b/ports/mimxrt10xx/common-hal/rotaryio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/mimxrt10xx/common-hal/rtc/RTC.h b/ports/mimxrt10xx/common-hal/rtc/RTC.h index 9dcf86ab66e85..851b08970bb5a 100644 --- a/ports/mimxrt10xx/common-hal/rtc/RTC.h +++ b/ports/mimxrt10xx/common-hal/rtc/RTC.h @@ -5,10 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H -#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H +#pragma once extern void rtc_init(void); extern void rtc_reset(void); - -#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_RTC_RTC_H diff --git a/ports/mimxrt10xx/common-hal/usb_host/Port.h b/ports/mimxrt10xx/common-hal/usb_host/Port.h index d40b99c0b8675..e7b44c9524cfc 100644 --- a/ports/mimxrt10xx/common-hal/usb_host/Port.h +++ b/ports/mimxrt10xx/common-hal/usb_host/Port.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_USB_HOST_PORT_H -#define MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_USB_HOST_PORT_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { const mcu_pin_obj_t *dp; const mcu_pin_obj_t *dm; } usb_host_port_obj_t; - -#endif // MICROPY_INCLUDED_MIMXRT10XX_COMMON_HAL_USB_HOST_PORT_H diff --git a/ports/mimxrt10xx/mpconfigport.h b/ports/mimxrt10xx/mpconfigport.h index 9770042ea4f5e..4f9acd7a9fd30 100644 --- a/ports/mimxrt10xx/mpconfigport.h +++ b/ports/mimxrt10xx/mpconfigport.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __INCLUDED_MPCONFIGPORT_H -#define __INCLUDED_MPCONFIGPORT_H +#pragma once #include @@ -34,5 +33,3 @@ extern uint8_t _ld_default_stack_size; // TODO: // mp_obj_t playing_audio[AUDIO_DMA_CHANNEL_COUNT] as an MP_REGISTER_ROOT_POINTER. - -#endif // __INCLUDED_MPCONFIGPORT_H diff --git a/ports/mimxrt10xx/mphalport.h b/ports/mimxrt10xx/mphalport.h index 9d6a9df385264..da0d3ce284f4c 100644 --- a/ports/mimxrt10xx/mphalport.h +++ b/ports/mimxrt10xx/mphalport.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_MPHALPORT_H -#define MICROPY_INCLUDED_MIMXRT10XX_MPHALPORT_H +#pragma once #include "py/obj.h" @@ -28,5 +27,3 @@ void mp_hal_set_interrupt_char(int c); void mp_hal_disable_all_interrupts(void); void mp_hal_enable_all_interrupts(void); - -#endif // MICROPY_INCLUDED_MIMXRT10XX_MPHALPORT_H diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1011/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1011/pin_names.h index 9a635af1f58da..1d6a9cafaf841 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1011/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1011/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1015/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1015/pin_names.h index aeb46d38a329d..ee8b47b61afe9 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1015/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1015/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/pin_names.h index 81f7208f87071..1218cd8ed8db6 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1021/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1042/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1042/pin_names.h index 330d302f87a7a..42f03e02f9119 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1042/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1042/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1052/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1052/pin_names.h index 139c030409654..5483206f94f37 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1052/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1052/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/pin_names.h index 139c030409654..5483206f94f37 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1062/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1176/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1176/pin_names.h index f184c36348a61..ec23d603de7d0 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1176/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/MIMXRT1176/pin_names.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // define FORMAT_PIN(pin_name) and then include this file. diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/clocks.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/clocks.h index 0d012cc9035a3..d95f30d3e9b0f 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/clocks.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + extern uint32_t SystemCoreClock; void clocks_init(void); diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/periph.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/periph.h index b249bcd018e22..3993bf95e08b9 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/periph.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/periph.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_PERIPHERALS_PERIPH_H -#define MICROPY_INCLUDED_MIMXRT10XX_PERIPHERALS_PERIPH_H +#pragma once #include "pins.h" @@ -71,5 +70,3 @@ extern LPUART_Type *const mcu_uart_banks[]; #elif defined(MIMXRT1176_cm7_SERIES) #include "MIMXRT1176/periph.h" #endif - -#endif // MICROPY_INCLUDED_MIMXRT10XX_PERIPHERALS_PERIPH_H diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/pin_names.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/pin_names.h index ffaa74edc3887..22fa6c572964e 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/pin_names.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/pin_names.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // OK to include more than once because FORMAT_PIN may be different. #ifdef MIMXRT1011_SERIES diff --git a/ports/mimxrt10xx/peripherals/mimxrt10xx/pins.h b/ports/mimxrt10xx/peripherals/mimxrt10xx/pins.h index 235d337cb54d2..c4b570a35de73 100644 --- a/ports/mimxrt10xx/peripherals/mimxrt10xx/pins.h +++ b/ports/mimxrt10xx/peripherals/mimxrt10xx/pins.h @@ -8,8 +8,7 @@ // DO NOT include this file directly. Use shared-bindings/microcontroller/Pin.h instead to ensure // that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_MIMXRT10XX_PERIPHERALS_PINS_H -#define MICROPY_INCLUDED_MIMXRT10XX_PERIPHERALS_PINS_H +#pragma once #include #include @@ -71,5 +70,3 @@ void enable_pin_change_interrupt(const mcu_pin_obj_t *pin, gpio_change_interrupt #elif defined(MIMXRT1176_cm7_SERIES) #include "MIMXRT1176/pins.h" #endif - -#endif // MICROPY_INCLUDED_MIMXRT10XX_PERIPHERALS_PINS_H diff --git a/ports/mimxrt10xx/qstrdefsport.h b/ports/mimxrt10xx/qstrdefsport.h index b0f5566fabf2a..9ff78060068f9 100644 --- a/ports/mimxrt10xx/qstrdefsport.h +++ b/ports/mimxrt10xx/qstrdefsport.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port // *FORMAT-OFF* diff --git a/ports/mimxrt10xx/reset.h b/ports/mimxrt10xx/reset.h index bfa02c3240114..04c951221e9e5 100644 --- a/ports/mimxrt10xx/reset.h +++ b/ports/mimxrt10xx/reset.h @@ -4,8 +4,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2019 Artur Pacholec // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_RESET_H -#define MICROPY_INCLUDED_MIMXRT10XX_RESET_H +#pragma once #include #include @@ -20,5 +19,3 @@ void reset_to_bootloader(void) NORETURN; void reset(void) NORETURN; bool bootloader_available(void); - -#endif // MICROPY_INCLUDED_MIMXRT10XX_RESET_H diff --git a/ports/mimxrt10xx/supervisor/internal_flash.h b/ports/mimxrt10xx/supervisor/internal_flash.h index aa05bb2765cdf..cab1fb4493f0e 100644 --- a/ports/mimxrt10xx/supervisor/internal_flash.h +++ b/ports/mimxrt10xx/supervisor/internal_flash.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MIMXRT10XX_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_MIMXRT10XX_INTERNAL_FLASH_H +#pragma once #include #include @@ -26,6 +25,3 @@ extern void flexspi_nor_init(void); extern status_t flexspi_nor_flash_erase_sector(FLEXSPI_Type *base, uint32_t address); extern status_t flexspi_nor_flash_page_program(FLEXSPI_Type *base, uint32_t dstAddr, const uint32_t *src); extern status_t flexspi_nor_enable_quad_mode(FLEXSPI_Type *base); - - -#endif // MICROPY_INCLUDED_MIMXRT10XX_INTERNAL_FLASH_H diff --git a/ports/nordic/background.h b/ports/nordic/background.h index 8cf6418f6e156..5712b054193d8 100644 --- a/ports/nordic/background.h +++ b/ports/nordic/background.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_BACKGROUND_H -#define MICROPY_INCLUDED_NRF_BACKGROUND_H +#pragma once void board_background_task(void); - -#endif // MICROPY_INCLUDED_NRF_BACKGROUND_H diff --git a/ports/nordic/bluetooth/ble_drv.h b/ports/nordic/bluetooth/ble_drv.h index 9c07cde1ac62b..30318d5264fae 100644 --- a/ports/nordic/bluetooth/ble_drv.h +++ b/ports/nordic/bluetooth/ble_drv.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_BLUETOOTH_BLE_DRV_H -#define MICROPY_INCLUDED_NRF_BLUETOOTH_BLE_DRV_H +#pragma once #include @@ -53,5 +52,3 @@ void ble_drv_remove_event_handler(ble_drv_evt_handler_t func, void *param); // Allow for user provided entries to prevent allocations outside the VM. void ble_drv_add_event_handler_entry(ble_drv_evt_handler_entry_t *entry, ble_drv_evt_handler_t func, void *param); - -#endif // MICROPY_INCLUDED_NRF_BLUETOOTH_BLE_DRV_H diff --git a/ports/nordic/boards/ADM_B_NRF52840_1/mpconfigboard.h b/ports/nordic/boards/ADM_B_NRF52840_1/mpconfigboard.h index 4e4f8a4ba9a24..ff8cc38651914 100644 --- a/ports/nordic/boards/ADM_B_NRF52840_1/mpconfigboard.h +++ b/ports/nordic/boards/ADM_B_NRF52840_1/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "AtelierDuMaker nRF52840 Breakout" diff --git a/ports/nordic/boards/Seeed_XIAO_nRF52840_Sense/mpconfigboard.h b/ports/nordic/boards/Seeed_XIAO_nRF52840_Sense/mpconfigboard.h index 27857a3b8f162..499cdd24a78ed 100644 --- a/ports/nordic/boards/Seeed_XIAO_nRF52840_Sense/mpconfigboard.h +++ b/ports/nordic/boards/Seeed_XIAO_nRF52840_Sense/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Seeed XIAO nRF52840 Sense" diff --git a/ports/nordic/boards/TG-Watch/mpconfigboard.h b/ports/nordic/boards/TG-Watch/mpconfigboard.h index 7bd35c8413b06..8ebb88f6f86b5 100644 --- a/ports/nordic/boards/TG-Watch/mpconfigboard.h +++ b/ports/nordic/boards/TG-Watch/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "TG-Watch" diff --git a/ports/nordic/boards/adafruit_led_glasses_nrf52840/mpconfigboard.h b/ports/nordic/boards/adafruit_led_glasses_nrf52840/mpconfigboard.h index 6a2f3fa16f75f..d0fea7c721d31 100644 --- a/ports/nordic/boards/adafruit_led_glasses_nrf52840/mpconfigboard.h +++ b/ports/nordic/boards/adafruit_led_glasses_nrf52840/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit LED Glasses Driver nRF52840" diff --git a/ports/nordic/boards/aramcon2_badge/mpconfigboard.h b/ports/nordic/boards/aramcon2_badge/mpconfigboard.h index 93576900c89e2..4a1d09532d731 100644 --- a/ports/nordic/boards/aramcon2_badge/mpconfigboard.h +++ b/ports/nordic/boards/aramcon2_badge/mpconfigboard.h @@ -4,6 +4,9 @@ // SPDX-FileCopyrightText: Copyright (c) 2021 Benjamin Meisels // // SPDX-License-Identifier: MIT + +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "ARAMCON2 Badge" diff --git a/ports/nordic/boards/aramcon_badge_2019/mpconfigboard.h b/ports/nordic/boards/aramcon_badge_2019/mpconfigboard.h index f9eb2fdbb4839..6e98c6e8bb144 100644 --- a/ports/nordic/boards/aramcon_badge_2019/mpconfigboard.h +++ b/ports/nordic/boards/aramcon_badge_2019/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "ARAMCON Badge 2019" diff --git a/ports/nordic/boards/arduino_nano_33_ble/mpconfigboard.h b/ports/nordic/boards/arduino_nano_33_ble/mpconfigboard.h index 16001c5419c11..869c1c71114df 100644 --- a/ports/nordic/boards/arduino_nano_33_ble/mpconfigboard.h +++ b/ports/nordic/boards/arduino_nano_33_ble/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Arduino Nano 33 BLE" diff --git a/ports/nordic/boards/bastble/mpconfigboard.h b/ports/nordic/boards/bastble/mpconfigboard.h index 3cd817092c687..a71faed7d560f 100644 --- a/ports/nordic/boards/bastble/mpconfigboard.h +++ b/ports/nordic/boards/bastble/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "BastBLE" diff --git a/ports/nordic/boards/bless_dev_board_multi_sensor/mpconfigboard.h b/ports/nordic/boards/bless_dev_board_multi_sensor/mpconfigboard.h index 5d9a4a901c8ef..64f98a1308969 100644 --- a/ports/nordic/boards/bless_dev_board_multi_sensor/mpconfigboard.h +++ b/ports/nordic/boards/bless_dev_board_multi_sensor/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "BLE-SS dev board Multi Sensor" diff --git a/ports/nordic/boards/bluemicro833/mpconfigboard.h b/ports/nordic/boards/bluemicro833/mpconfigboard.h index 02116360ca846..c440c5c42563a 100644 --- a/ports/nordic/boards/bluemicro833/mpconfigboard.h +++ b/ports/nordic/boards/bluemicro833/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "BlueMicro833" diff --git a/ports/nordic/boards/bluemicro840/mpconfigboard.h b/ports/nordic/boards/bluemicro840/mpconfigboard.h index 60ef1e0fc6757..a9d8ae8610e1b 100644 --- a/ports/nordic/boards/bluemicro840/mpconfigboard.h +++ b/ports/nordic/boards/bluemicro840/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "BlueMicro840" diff --git a/ports/nordic/boards/challenger_840/mpconfigboard.h b/ports/nordic/boards/challenger_840/mpconfigboard.h index 4f1843c750877..84f9c1651f8da 100644 --- a/ports/nordic/boards/challenger_840/mpconfigboard.h +++ b/ports/nordic/boards/challenger_840/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "iLabs Challenger 840" diff --git a/ports/nordic/boards/circuitplayground_bluefruit/mpconfigboard.h b/ports/nordic/boards/circuitplayground_bluefruit/mpconfigboard.h index c30f6598115e0..91cf68095d27d 100644 --- a/ports/nordic/boards/circuitplayground_bluefruit/mpconfigboard.h +++ b/ports/nordic/boards/circuitplayground_bluefruit/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit Circuit Playground Bluefruit" diff --git a/ports/nordic/boards/clue_nrf52840_express/mpconfigboard.h b/ports/nordic/boards/clue_nrf52840_express/mpconfigboard.h index 71ae82c7627a1..316b59f9b5168 100644 --- a/ports/nordic/boards/clue_nrf52840_express/mpconfigboard.h +++ b/ports/nordic/boards/clue_nrf52840_express/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit CLUE nRF52840 Express" diff --git a/ports/nordic/boards/electronut_labs_blip/mpconfigboard.h b/ports/nordic/boards/electronut_labs_blip/mpconfigboard.h index 336ab0d39328a..3639b380fa23d 100644 --- a/ports/nordic/boards/electronut_labs_blip/mpconfigboard.h +++ b/ports/nordic/boards/electronut_labs_blip/mpconfigboard.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define ELECTRONUT_LABS_PAPYR diff --git a/ports/nordic/boards/electronut_labs_papyr/mpconfigboard.h b/ports/nordic/boards/electronut_labs_papyr/mpconfigboard.h index f77513987980f..0fc49dfbfd48c 100644 --- a/ports/nordic/boards/electronut_labs_papyr/mpconfigboard.h +++ b/ports/nordic/boards/electronut_labs_papyr/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define ELECTRONUT_LABS_PAPYR diff --git a/ports/nordic/boards/espruino_banglejs2/mpconfigboard.h b/ports/nordic/boards/espruino_banglejs2/mpconfigboard.h index 9d73e765823ec..885d17a6397e9 100644 --- a/ports/nordic/boards/espruino_banglejs2/mpconfigboard.h +++ b/ports/nordic/boards/espruino_banglejs2/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Espruino Bangle.js 2" diff --git a/ports/nordic/boards/feather_bluefruit_sense/mpconfigboard.h b/ports/nordic/boards/feather_bluefruit_sense/mpconfigboard.h index fec41463da1a2..b0aca947c02c2 100644 --- a/ports/nordic/boards/feather_bluefruit_sense/mpconfigboard.h +++ b/ports/nordic/boards/feather_bluefruit_sense/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit Feather Bluefruit Sense" diff --git a/ports/nordic/boards/feather_nrf52840_express/mpconfigboard.h b/ports/nordic/boards/feather_nrf52840_express/mpconfigboard.h index 80a4bdcad8b4d..6f3d13d968262 100644 --- a/ports/nordic/boards/feather_nrf52840_express/mpconfigboard.h +++ b/ports/nordic/boards/feather_nrf52840_express/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit Feather nRF52840 Express" diff --git a/ports/nordic/boards/hiibot_bluefi/mpconfigboard.h b/ports/nordic/boards/hiibot_bluefi/mpconfigboard.h index 778ca0cb4378e..afceb4cca1d1b 100644 --- a/ports/nordic/boards/hiibot_bluefi/mpconfigboard.h +++ b/ports/nordic/boards/hiibot_bluefi/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "HiiBot BlueFi" diff --git a/ports/nordic/boards/ikigaisense_vita/mpconfigboard.h b/ports/nordic/boards/ikigaisense_vita/mpconfigboard.h index dfbdf7ef09605..d78cd3b78d621 100644 --- a/ports/nordic/boards/ikigaisense_vita/mpconfigboard.h +++ b/ports/nordic/boards/ikigaisense_vita/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "IkigaiSense Vita nRF52840" diff --git a/ports/nordic/boards/itsybitsy_nrf52840_express/mpconfigboard.h b/ports/nordic/boards/itsybitsy_nrf52840_express/mpconfigboard.h index d435b8f587176..e328be1563b9e 100644 --- a/ports/nordic/boards/itsybitsy_nrf52840_express/mpconfigboard.h +++ b/ports/nordic/boards/itsybitsy_nrf52840_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit ItsyBitsy nRF52840 Express" diff --git a/ports/nordic/boards/makerdiary_m60_keyboard/mpconfigboard.h b/ports/nordic/boards/makerdiary_m60_keyboard/mpconfigboard.h index a1b8d9273a174..cf79837b163a9 100644 --- a/ports/nordic/boards/makerdiary_m60_keyboard/mpconfigboard.h +++ b/ports/nordic/boards/makerdiary_m60_keyboard/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Makerdiary M60 Keyboard" diff --git a/ports/nordic/boards/makerdiary_nrf52840_connectkit/mpconfigboard.h b/ports/nordic/boards/makerdiary_nrf52840_connectkit/mpconfigboard.h index e5deb9d9e9a53..84cf75373a6a2 100644 --- a/ports/nordic/boards/makerdiary_nrf52840_connectkit/mpconfigboard.h +++ b/ports/nordic/boards/makerdiary_nrf52840_connectkit/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Makerdiary nRF52840 Connect Kit" diff --git a/ports/nordic/boards/makerdiary_nrf52840_m2_devkit/mpconfigboard.h b/ports/nordic/boards/makerdiary_nrf52840_m2_devkit/mpconfigboard.h index 03d48ac18e247..b519a789f4cd3 100644 --- a/ports/nordic/boards/makerdiary_nrf52840_m2_devkit/mpconfigboard.h +++ b/ports/nordic/boards/makerdiary_nrf52840_m2_devkit/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Makerdiary nRF52840 M.2 Developer Kit" diff --git a/ports/nordic/boards/makerdiary_nrf52840_mdk/mpconfigboard.h b/ports/nordic/boards/makerdiary_nrf52840_mdk/mpconfigboard.h index 8e2a196385101..1eb44b18d28d4 100644 --- a/ports/nordic/boards/makerdiary_nrf52840_mdk/mpconfigboard.h +++ b/ports/nordic/boards/makerdiary_nrf52840_mdk/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MAKERDIARYNRF52840MDK diff --git a/ports/nordic/boards/makerdiary_nrf52840_mdk_usb_dongle/mpconfigboard.h b/ports/nordic/boards/makerdiary_nrf52840_mdk_usb_dongle/mpconfigboard.h index 9e40b6591d8ab..510f35f7344c6 100644 --- a/ports/nordic/boards/makerdiary_nrf52840_mdk_usb_dongle/mpconfigboard.h +++ b/ports/nordic/boards/makerdiary_nrf52840_mdk_usb_dongle/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MAKERDIARY_NRF52840_MDK_DONGLE diff --git a/ports/nordic/boards/metro_nrf52840_express/mpconfigboard.h b/ports/nordic/boards/metro_nrf52840_express/mpconfigboard.h index 430626be9ce90..42f90dbecb5fb 100644 --- a/ports/nordic/boards/metro_nrf52840_express/mpconfigboard.h +++ b/ports/nordic/boards/metro_nrf52840_express/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Adafruit Metro nRF52840 Express" diff --git a/ports/nordic/boards/microbit_v2/mpconfigboard.h b/ports/nordic/boards/microbit_v2/mpconfigboard.h index 4e60a39567b52..94cd28c801920 100644 --- a/ports/nordic/boards/microbit_v2/mpconfigboard.h +++ b/ports/nordic/boards/microbit_v2/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "micro:bit v2" diff --git a/ports/nordic/boards/nice_nano/mpconfigboard.h b/ports/nordic/boards/nice_nano/mpconfigboard.h index f8cf85e138275..2e21ccea497b5 100644 --- a/ports/nordic/boards/nice_nano/mpconfigboard.h +++ b/ports/nordic/boards/nice_nano/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "nice!nano" diff --git a/ports/nordic/boards/ohs2020_badge/mpconfigboard.h b/ports/nordic/boards/ohs2020_badge/mpconfigboard.h index 4118b0db67613..037907ae8a127 100644 --- a/ports/nordic/boards/ohs2020_badge/mpconfigboard.h +++ b/ports/nordic/boards/ohs2020_badge/mpconfigboard.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Open Hardware Summit 2020 Badge" diff --git a/ports/nordic/boards/particle_argon/mpconfigboard.h b/ports/nordic/boards/particle_argon/mpconfigboard.h index 7456505cbf9d1..bdb0d7c73eb17 100644 --- a/ports/nordic/boards/particle_argon/mpconfigboard.h +++ b/ports/nordic/boards/particle_argon/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Particle Argon" diff --git a/ports/nordic/boards/particle_boron/mpconfigboard.h b/ports/nordic/boards/particle_boron/mpconfigboard.h index 2f012010a025f..7dbdeb77160c6 100644 --- a/ports/nordic/boards/particle_boron/mpconfigboard.h +++ b/ports/nordic/boards/particle_boron/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Particle Boron" diff --git a/ports/nordic/boards/particle_xenon/mpconfigboard.h b/ports/nordic/boards/particle_xenon/mpconfigboard.h index 8ac32c3aae361..01f4919c4c30b 100644 --- a/ports/nordic/boards/particle_xenon/mpconfigboard.h +++ b/ports/nordic/boards/particle_xenon/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Particle Xenon" diff --git a/ports/nordic/boards/pca10056/mpconfigboard.h b/ports/nordic/boards/pca10056/mpconfigboard.h index bd5c66758929f..4be1f0aa05f01 100644 --- a/ports/nordic/boards/pca10056/mpconfigboard.h +++ b/ports/nordic/boards/pca10056/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "PCA10056 nRF52840-DK" diff --git a/ports/nordic/boards/pca10059/mpconfigboard.h b/ports/nordic/boards/pca10059/mpconfigboard.h index 5c60cab8bc277..9730a9c86b395 100644 --- a/ports/nordic/boards/pca10059/mpconfigboard.h +++ b/ports/nordic/boards/pca10059/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PCA10059 nRF52840 Dongle" #define MICROPY_HW_MCU_NAME "nRF52840" diff --git a/ports/nordic/boards/pca10100/mpconfigboard.h b/ports/nordic/boards/pca10100/mpconfigboard.h index b62cd56bc990c..8e8e348954dac 100644 --- a/ports/nordic/boards/pca10100/mpconfigboard.h +++ b/ports/nordic/boards/pca10100/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "PCA10100 nRF52833 DK" diff --git a/ports/nordic/boards/pctel_wsc_1450/mpconfigboard.h b/ports/nordic/boards/pctel_wsc_1450/mpconfigboard.h index 94beb7b3503d1..bcc3eb105786f 100644 --- a/ports/nordic/boards/pctel_wsc_1450/mpconfigboard.h +++ b/ports/nordic/boards/pctel_wsc_1450/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define PCTELWSC1450 diff --git a/ports/nordic/boards/pillbug/mpconfigboard.h b/ports/nordic/boards/pillbug/mpconfigboard.h index d952b6160aa73..8668680d56558 100644 --- a/ports/nordic/boards/pillbug/mpconfigboard.h +++ b/ports/nordic/boards/pillbug/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "PillBug" diff --git a/ports/nordic/boards/pitaya_go/mpconfigboard.h b/ports/nordic/boards/pitaya_go/mpconfigboard.h index a41be6f089ecd..b765c3a4d5836 100644 --- a/ports/nordic/boards/pitaya_go/mpconfigboard.h +++ b/ports/nordic/boards/pitaya_go/mpconfigboard.h @@ -6,6 +6,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MAKERDIARYPITAYAGO diff --git a/ports/nordic/boards/raytac_mdbt50q-db-40/mpconfigboard.h b/ports/nordic/boards/raytac_mdbt50q-db-40/mpconfigboard.h index 4eac8645294bd..d7c1fa5fd48b9 100644 --- a/ports/nordic/boards/raytac_mdbt50q-db-40/mpconfigboard.h +++ b/ports/nordic/boards/raytac_mdbt50q-db-40/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "MDBT50Q-DB-40" #define MICROPY_HW_MCU_NAME "nRF52840" diff --git a/ports/nordic/boards/raytac_mdbt50q-rx/mpconfigboard.h b/ports/nordic/boards/raytac_mdbt50q-rx/mpconfigboard.h index 589f1918e6ece..2cc5f4abcda90 100644 --- a/ports/nordic/boards/raytac_mdbt50q-rx/mpconfigboard.h +++ b/ports/nordic/boards/raytac_mdbt50q-rx/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "MDBT50Q-RX Dongle" #define MICROPY_HW_MCU_NAME "nRF52840" diff --git a/ports/nordic/boards/simmel/mpconfigboard.h b/ports/nordic/boards/simmel/mpconfigboard.h index 88abeca62d143..b8b3f57861333 100644 --- a/ports/nordic/boards/simmel/mpconfigboard.h +++ b/ports/nordic/boards/simmel/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "Simmel" diff --git a/ports/nordic/boards/sparkfun_nrf52840_micromod/mpconfigboard.h b/ports/nordic/boards/sparkfun_nrf52840_micromod/mpconfigboard.h index 1ebc7d30c8605..d0d77e3ab0ac5 100644 --- a/ports/nordic/boards/sparkfun_nrf52840_micromod/mpconfigboard.h +++ b/ports/nordic/boards/sparkfun_nrf52840_micromod/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "SparkFun MicroMod nRF52840 Processor" diff --git a/ports/nordic/boards/sparkfun_nrf52840_mini/mpconfigboard.h b/ports/nordic/boards/sparkfun_nrf52840_mini/mpconfigboard.h index 9d22380143518..4fd1710868315 100644 --- a/ports/nordic/boards/sparkfun_nrf52840_mini/mpconfigboard.h +++ b/ports/nordic/boards/sparkfun_nrf52840_mini/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "SparkFun Pro nRF52840 Mini" diff --git a/ports/nordic/boards/ssci_isp1807_dev_board/mpconfigboard.h b/ports/nordic/boards/ssci_isp1807_dev_board/mpconfigboard.h index 82f323c78713a..03bddbc949f2b 100644 --- a/ports/nordic/boards/ssci_isp1807_dev_board/mpconfigboard.h +++ b/ports/nordic/boards/ssci_isp1807_dev_board/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "SSCI ISP1807 Dev Board" diff --git a/ports/nordic/boards/ssci_isp1807_micro_board/mpconfigboard.h b/ports/nordic/boards/ssci_isp1807_micro_board/mpconfigboard.h index 0bcf30389430c..82621740f103b 100644 --- a/ports/nordic/boards/ssci_isp1807_micro_board/mpconfigboard.h +++ b/ports/nordic/boards/ssci_isp1807_micro_board/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "SSCI ISP1807 Micro Board" diff --git a/ports/nordic/boards/supermini_nrf52840/mpconfigboard.h b/ports/nordic/boards/supermini_nrf52840/mpconfigboard.h index 77c5e8576ee69..d67857ef34f75 100644 --- a/ports/nordic/boards/supermini_nrf52840/mpconfigboard.h +++ b/ports/nordic/boards/supermini_nrf52840/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "SuperMini NRF52840" diff --git a/ports/nordic/boards/teknikio_bluebird/mpconfigboard.h b/ports/nordic/boards/teknikio_bluebird/mpconfigboard.h index b011b03fc3b5d..308193153a10b 100644 --- a/ports/nordic/boards/teknikio_bluebird/mpconfigboard.h +++ b/ports/nordic/boards/teknikio_bluebird/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // https://github.com/Teknikio/TKInventionBuilderFramework diff --git a/ports/nordic/boards/tinkeringtech_scoutmakes_azul/mpconfigboard.h b/ports/nordic/boards/tinkeringtech_scoutmakes_azul/mpconfigboard.h index c2d00d8643288..d2b4994de89c5 100644 --- a/ports/nordic/boards/tinkeringtech_scoutmakes_azul/mpconfigboard.h +++ b/ports/nordic/boards/tinkeringtech_scoutmakes_azul/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "TinkeringTech ScoutMakes Azul" diff --git a/ports/nordic/boards/warmbit_bluepixel/mpconfigboard.h b/ports/nordic/boards/warmbit_bluepixel/mpconfigboard.h index d7b02d1ab6dfe..71743c316de17 100644 --- a/ports/nordic/boards/warmbit_bluepixel/mpconfigboard.h +++ b/ports/nordic/boards/warmbit_bluepixel/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx/hal/nrf_gpio.h" #define MICROPY_HW_BOARD_NAME "WarmBit BluePixel nRF52840" diff --git a/ports/nordic/common-hal/_bleio/Adapter.h b/ports/nordic/common-hal/_bleio/Adapter.h index f8ade79b00400..5a4a147d32a72 100644 --- a/ports/nordic/common-hal/_bleio/Adapter.h +++ b/ports/nordic/common-hal/_bleio/Adapter.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_ADAPTER_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_ADAPTER_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -41,5 +40,3 @@ typedef struct { void bleio_adapter_gc_collect(bleio_adapter_obj_t *adapter); void bleio_adapter_reset(bleio_adapter_obj_t *adapter); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_ADAPTER_H diff --git a/ports/nordic/common-hal/_bleio/Attribute.h b/ports/nordic/common-hal/_bleio/Attribute.h index 385166639c243..5fa6b4d637767 100644 --- a/ports/nordic/common-hal/_bleio/Attribute.h +++ b/ports/nordic/common-hal/_bleio/Attribute.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_ATTRIBUTE_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_ATTRIBUTE_H +#pragma once #include "shared-module/_bleio/Attribute.h" extern void bleio_attribute_gatts_set_security_mode(ble_gap_conn_sec_mode_t *perm, bleio_attribute_security_mode_t security_mode); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_ATTRIBUTE_H diff --git a/ports/nordic/common-hal/_bleio/Characteristic.h b/ports/nordic/common-hal/_bleio/Characteristic.h index fd9dd0680dc16..268943478b589 100644 --- a/ports/nordic/common-hal/_bleio/Characteristic.h +++ b/ports/nordic/common-hal/_bleio/Characteristic.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CHARACTERISTIC_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CHARACTERISTIC_H +#pragma once #include "shared-bindings/_bleio/Attribute.h" #include "common-hal/_bleio/Descriptor.h" @@ -32,5 +31,3 @@ typedef struct _bleio_characteristic_obj { uint16_t sccd_handle; bool fixed_length; } bleio_characteristic_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CHARACTERISTIC_H diff --git a/ports/nordic/common-hal/_bleio/CharacteristicBuffer.h b/ports/nordic/common-hal/_bleio/CharacteristicBuffer.h index 6e2dc0874ed87..55b139924bc8b 100644 --- a/ports/nordic/common-hal/_bleio/CharacteristicBuffer.h +++ b/ports/nordic/common-hal/_bleio/CharacteristicBuffer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CHARACTERISTICBUFFER_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CHARACTERISTICBUFFER_H +#pragma once #include @@ -22,5 +21,3 @@ typedef struct { ringbuf_t ringbuf; bool watch_for_interrupt_char; } bleio_characteristic_buffer_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CHARACTERISTICBUFFER_H diff --git a/ports/nordic/common-hal/_bleio/Connection.h b/ports/nordic/common-hal/_bleio/Connection.h index a8729ad727478..110677dc78b41 100644 --- a/ports/nordic/common-hal/_bleio/Connection.h +++ b/ports/nordic/common-hal/_bleio/Connection.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CONNECTION_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CONNECTION_H +#pragma once #include @@ -69,5 +68,3 @@ bool connection_on_ble_evt(ble_evt_t *ble_evt, void *self_in); uint16_t bleio_connection_get_conn_handle(bleio_connection_obj_t *self); mp_obj_t bleio_connection_new_from_internal(bleio_connection_internal_t *connection); bleio_connection_internal_t *bleio_conn_handle_to_connection(uint16_t conn_handle); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_CONNECTION_H diff --git a/ports/nordic/common-hal/_bleio/Descriptor.h b/ports/nordic/common-hal/_bleio/Descriptor.h index 674a2aa5027cf..2a1f5e5d73b7f 100644 --- a/ports/nordic/common-hal/_bleio/Descriptor.h +++ b/ports/nordic/common-hal/_bleio/Descriptor.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_DESCRIPTOR_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_DESCRIPTOR_H +#pragma once #include "py/obj.h" @@ -28,5 +27,3 @@ typedef struct _bleio_descriptor_obj { bleio_attribute_security_mode_t read_perm; bleio_attribute_security_mode_t write_perm; } bleio_descriptor_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_DESCRIPTOR_H diff --git a/ports/nordic/common-hal/_bleio/PacketBuffer.h b/ports/nordic/common-hal/_bleio/PacketBuffer.h index 38fea8bda0d3d..c55efd0293b60 100644 --- a/ports/nordic/common-hal/_bleio/PacketBuffer.h +++ b/ports/nordic/common-hal/_bleio/PacketBuffer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_PACKETBUFFER_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_PACKETBUFFER_H +#pragma once #include "nrf_soc.h" @@ -30,5 +29,3 @@ typedef struct { bool client; bool packet_queued; } bleio_packet_buffer_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_PACKETBUFFER_H diff --git a/ports/nordic/common-hal/_bleio/Service.h b/ports/nordic/common-hal/_bleio/Service.h index b2892b3320ac2..172a4b8024fd0 100644 --- a/ports/nordic/common-hal/_bleio/Service.h +++ b/ports/nordic/common-hal/_bleio/Service.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_SERVICE_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_SERVICE_H +#pragma once #include "py/objlist.h" #include "common-hal/_bleio/UUID.h" @@ -29,5 +28,3 @@ typedef struct bleio_service_obj { } bleio_service_obj_t; void bleio_service_from_connection(bleio_service_obj_t *self, mp_obj_t connection); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_SERVICE_H diff --git a/ports/nordic/common-hal/_bleio/UUID.h b/ports/nordic/common-hal/_bleio/UUID.h index 588f09c2ee85f..63d7be04b635a 100644 --- a/ports/nordic/common-hal/_bleio/UUID.h +++ b/ports/nordic/common-hal/_bleio/UUID.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_UUID_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_UUID_H +#pragma once #include "py/obj.h" @@ -25,5 +24,3 @@ typedef struct { void bleio_uuid_construct_from_nrf_ble_uuid(bleio_uuid_obj_t *self, ble_uuid_t *nrf_uuid); void bleio_uuid_convert_to_nrf_ble_uuid(bleio_uuid_obj_t *self, ble_uuid_t *nrf_uuid); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_UUID_H diff --git a/ports/nordic/common-hal/_bleio/__init__.h b/ports/nordic/common-hal/_bleio/__init__.h index d3f4688b403d7..caf287f9204b0 100644 --- a/ports/nordic/common-hal/_bleio/__init__.h +++ b/ports/nordic/common-hal/_bleio/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_INIT_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_INIT_H +#pragma once void bleio_background(void); @@ -23,5 +22,3 @@ typedef struct { void check_nrf_error(uint32_t err_code); void check_gatt_status(uint16_t gatt_status); void check_sec_status(uint8_t sec_status); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_INIT_H diff --git a/ports/nordic/common-hal/_bleio/bonding.h b/ports/nordic/common-hal/_bleio/bonding.h index dc89e29326355..584b04e561fc7 100644 --- a/ports/nordic/common-hal/_bleio/bonding.h +++ b/ports/nordic/common-hal/_bleio/bonding.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_BONDING_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_BONDING_H +#pragma once #include #include @@ -69,5 +68,3 @@ size_t bonding_peripheral_bond_count(void); void bonding_print_block(bonding_block_t *); void bonding_print_keys(bonding_keys_t *); #endif - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BLEIO_BONDING_H diff --git a/ports/nordic/common-hal/alarm/coproc/CoprocAlarm.h b/ports/nordic/common-hal/alarm/coproc/CoprocAlarm.h index a7f2dfca2b672..f8921574865aa 100644 --- a/ports/nordic/common-hal/alarm/coproc/CoprocAlarm.h +++ b/ports/nordic/common-hal/alarm/coproc/CoprocAlarm.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // empty file diff --git a/ports/nordic/common-hal/analogio/AnalogIn.h b/ports/nordic/common-hal/analogio/AnalogIn.h index c3cd94e530047..ca86187620f9c 100644 --- a/ports/nordic/common-hal/analogio/AnalogIn.h +++ b/ports/nordic/common-hal/analogio/AnalogIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -17,5 +16,3 @@ typedef struct { } analogio_analogin_obj_t; void analogin_init(void); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/nordic/common-hal/analogio/AnalogOut.h b/ports/nordic/common-hal/analogio/AnalogOut.h index c07260aeb6832..8b5c3b638ee0f 100644 --- a/ports/nordic/common-hal/analogio/AnalogOut.h +++ b/ports/nordic/common-hal/analogio/AnalogOut.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "py/obj.h" typedef struct { mp_obj_base_t base; } analogio_analogout_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/nordic/common-hal/audiobusio/I2SOut.h b/ports/nordic/common-hal/audiobusio/I2SOut.h index 6a877af722e63..7cb62ae3d2b98 100644 --- a/ports/nordic/common-hal/audiobusio/I2SOut.h +++ b/ports/nordic/common-hal/audiobusio/I2SOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_AUDIOBUSIO_I2SOUT_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_AUDIOBUSIO_I2SOUT_H +#pragma once #include "py/obj.h" @@ -39,5 +38,3 @@ typedef struct { void i2s_reset(void); void i2s_background(void); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_AUDIOBUSIO_I2SOUT_H diff --git a/ports/nordic/common-hal/audiobusio/PDMIn.h b/ports/nordic/common-hal/audiobusio/PDMIn.h index cafa8d0ef0ac8..50d22dc1b200f 100644 --- a/ports/nordic/common-hal/audiobusio/PDMIn.h +++ b/ports/nordic/common-hal/audiobusio/PDMIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -16,5 +15,3 @@ typedef struct { uint8_t clock_pin_number, data_pin_number; bool mono; } audiobusio_pdmin_obj_t; - -#endif diff --git a/ports/nordic/common-hal/busio/I2C.h b/ports/nordic/common-hal/busio/I2C.h index 08566182f0cc9..d94ff6929bc4e 100644 --- a/ports/nordic/common-hal/busio/I2C.h +++ b/ports/nordic/common-hal/busio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "nrfx_twim.h" @@ -28,5 +27,3 @@ typedef struct { } busio_i2c_obj_t; void i2c_reset(void); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/nordic/common-hal/busio/SPI.h b/ports/nordic/common-hal/busio/SPI.h index f3e878a0d0828..7bfddd9625dcb 100644 --- a/ports/nordic/common-hal/busio/SPI.h +++ b/ports/nordic/common-hal/busio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_SPI_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_SPI_H +#pragma once #include "nrfx_spim.h" #include "py/obj.h" @@ -26,5 +25,3 @@ typedef struct { } busio_spi_obj_t; void spi_reset(void); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_SPI_H diff --git a/ports/nordic/common-hal/busio/UART.h b/ports/nordic/common-hal/busio/UART.h index d1abc82e5e723..10e881ced5a8a 100644 --- a/ports/nordic/common-hal/busio/UART.h +++ b/ports/nordic/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_UART_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "nrfx_uarte.h" @@ -32,5 +31,3 @@ typedef struct { } busio_uart_obj_t; void uart_reset(void); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_BUSIO_UART_H diff --git a/ports/nordic/common-hal/countio/Counter.h b/ports/nordic/common-hal/countio/Counter.h index b800a448a54f4..5a3b35429d1db 100644 --- a/ports/nordic/common-hal/countio/Counter.h +++ b/ports/nordic/common-hal/countio/Counter.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNTER_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNTER_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -17,5 +16,3 @@ typedef struct { uint8_t pin; mp_int_t count; } countio_counter_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_COUNTIO_COUNT_H diff --git a/ports/nordic/common-hal/digitalio/DigitalInOut.h b/ports/nordic/common-hal/digitalio/DigitalInOut.h index d4121968ed988..04226dbc8990e 100644 --- a/ports/nordic/common-hal/digitalio/DigitalInOut.h +++ b/ports/nordic/common-hal/digitalio/DigitalInOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -13,5 +12,3 @@ typedef struct { mp_obj_base_t base; const mcu_pin_obj_t *pin; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/nordic/common-hal/memorymap/AddressRange.h b/ports/nordic/common-hal/memorymap/AddressRange.h index 9018855881b2d..71bd76b9ea52a 100644 --- a/ports/nordic/common-hal/memorymap/AddressRange.h +++ b/ports/nordic/common-hal/memorymap/AddressRange.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { uint8_t *start_address; size_t len; } memorymap_addressrange_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H diff --git a/ports/nordic/common-hal/microcontroller/Pin.h b/ports/nordic/common-hal/microcontroller/Pin.h index 4f7e414cb0063..e0a7550ec3a33 100644 --- a/ports/nordic/common-hal/microcontroller/Pin.h +++ b/ports/nordic/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include "py/mphal.h" @@ -29,5 +28,3 @@ static inline uint8_t nrf_pin_port(uint8_t absolute_pin) { static inline uint8_t nrf_relative_pin_number(uint8_t absolute_pin) { return absolute_pin & 0x1f; } - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/nordic/common-hal/microcontroller/Processor.h b/ports/nordic/common-hal/microcontroller/Processor.h index 744bb2238f275..6f22ed8811afa 100644 --- a/ports/nordic/common-hal/microcontroller/Processor.h +++ b/ports/nordic/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 8 @@ -17,5 +16,3 @@ typedef struct { } mcu_processor_obj_t; extern uint32_t reset_reason_saved; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/nordic/common-hal/neopixel_write/__init__.h b/ports/nordic/common-hal/neopixel_write/__init__.h index 5a6e7a79fb34c..4820159c818a0 100644 --- a/ports/nordic/common-hal/neopixel_write/__init__.h +++ b/ports/nordic/common-hal/neopixel_write/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_NEOPIXEL_WRITE_INIT_H -#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_NEOPIXEL_WRITE_INIT_H +#pragma once void neopixel_write_reset(void); - -#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_NEOPIXEL_WRITE_INIT_H diff --git a/ports/nordic/common-hal/nvm/ByteArray.h b/ports/nordic/common-hal/nvm/ByteArray.h index 461a9af5bb64d..9d2add63200e7 100644 --- a/ports/nordic/common-hal/nvm/ByteArray.h +++ b/ports/nordic/common-hal/nvm/ByteArray.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_NVM_BYTEARRAY_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_NVM_BYTEARRAY_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { uint8_t *start_address; uint32_t len; } nvm_bytearray_obj_t; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_NVM_BYTEARRAY_H diff --git a/ports/nordic/common-hal/rgbmatrix/RGBMatrix.h b/ports/nordic/common-hal/rgbmatrix/RGBMatrix.h index de47573833688..56c32e5c24f8e 100644 --- a/ports/nordic/common-hal/rgbmatrix/RGBMatrix.h +++ b/ports/nordic/common-hal/rgbmatrix/RGBMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_RGBMATRIX_RGBMATRIX_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_RGBMATRIX_RGBMATRIX_H +#pragma once #include "shared-module/rgbmatrix/RGBMatrix.h" @@ -13,5 +12,3 @@ void *common_hal_rgbmatrix_timer_allocate(rgbmatrix_rgbmatrix_obj_t *self); void common_hal_rgbmatrix_timer_enable(void *); void common_hal_rgbmatrix_timer_disable(void *); void common_hal_rgbmatrix_timer_free(void *); - -#endif diff --git a/ports/nordic/common-hal/rotaryio/IncrementalEncoder.h b/ports/nordic/common-hal/rotaryio/IncrementalEncoder.h index 299703e511357..32a6f32fee673 100644 --- a/ports/nordic/common-hal/rotaryio/IncrementalEncoder.h +++ b/ports/nordic/common-hal/rotaryio/IncrementalEncoder.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_ROTARYIO_INCREMENTALENCODER_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_ROTARYIO_INCREMENTALENCODER_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -23,5 +22,3 @@ typedef struct { void incrementalencoder_interrupt_handler(uint8_t channel); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_ROTARYIO_INCREMENTALENCODER_H diff --git a/ports/nordic/common-hal/rtc/RTC.h b/ports/nordic/common-hal/rtc/RTC.h index f05c924db80ce..18625763562a2 100644 --- a/ports/nordic/common-hal/rtc/RTC.h +++ b/ports/nordic/common-hal/rtc/RTC.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_RTC_RTC_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_RTC_RTC_H +#pragma once extern void rtc_init(void); extern void rtc_reset(void); extern void common_hal_rtc_init(void); - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_RTC_RTC_H diff --git a/ports/nordic/common-hal/watchdog/WatchDogTimer.h b/ports/nordic/common-hal/watchdog/WatchDogTimer.h index f7faeee599d5d..c4489a9f63174 100644 --- a/ports/nordic/common-hal/watchdog/WatchDogTimer.h +++ b/ports/nordic/common-hal/watchdog/WatchDogTimer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H -#define MICROPY_INCLUDED_NRF_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H +#pragma once #include "py/obj.h" @@ -19,5 +18,3 @@ struct _watchdog_watchdogtimer_obj_t { mp_float_t timeout; watchdog_watchdogmode_t mode; }; - -#endif // MICROPY_INCLUDED_NRF_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H diff --git a/ports/nordic/common-hal/watchdog/__init__.h b/ports/nordic/common-hal/watchdog/__init__.h index 331e7344620db..3df378fbadcfe 100644 --- a/ports/nordic/common-hal/watchdog/__init__.h +++ b/ports/nordic/common-hal/watchdog/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_NRF_COMMON_HAL_WATCHDOG___INIT___H #define MICROPY_INCLUDED_NRF_COMMON_HAL_WATCHDOG___INIT___H diff --git a/ports/nordic/mpconfigport.h b/ports/nordic/mpconfigport.h index ddaff7276529d..ed6c2827000ca 100644 --- a/ports/nordic/mpconfigport.h +++ b/ports/nordic/mpconfigport.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef NRF5_MPCONFIGPORT_H__ -#define NRF5_MPCONFIGPORT_H__ +#pragma once #include "ble_drv.h" @@ -183,5 +182,3 @@ #if SOFTDEVICE_RAM_SIZE + SPIM3_BUFFER_RAM_SIZE + APP_RAM_SIZE < RAM_SIZE #error RAM size regions do not use all of RAM #endif - -#endif // NRF5_MPCONFIGPORT_H__ diff --git a/ports/nordic/mphalport.h b/ports/nordic/mphalport.h index c534f73d0afad..75bb2f411b202 100644 --- a/ports/nordic/mphalport.h +++ b/ports/nordic/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __NRF52_HAL -#define __NRF52_HAL +#pragma once #include #include @@ -21,5 +20,3 @@ extern nrfx_uarte_t serial_instance; #define mp_hal_delay_us(us) NRFX_DELAY_US((uint32_t)(us)) bool mp_hal_stdin_any(void); - -#endif diff --git a/ports/nordic/nrfx_config.h b/ports/nordic/nrfx_config.h index 0cfe834023c04..99c3caa0bd677 100644 --- a/ports/nordic/nrfx_config.h +++ b/ports/nordic/nrfx_config.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef NRFX_CONFIG_H__ -#define NRFX_CONFIG_H__ +#pragma once // Power #define NRFX_POWER_ENABLED 1 @@ -137,5 +136,3 @@ // This IRQ indicates the system will reboot shortly, so give // it a high priority. #define NRFX_WDT_DEFAULT_CONFIG_IRQ_PRIORITY 2 - -#endif // NRFX_CONFIG_H__ diff --git a/ports/nordic/nrfx_glue.h b/ports/nordic/nrfx_glue.h index cdd6c7e758e96..f1dca736d50fe 100644 --- a/ports/nordic/nrfx_glue.h +++ b/ports/nordic/nrfx_glue.h @@ -44,8 +44,7 @@ * */ -#ifndef NRFX_GLUE_H__ -#define NRFX_GLUE_H__ +#pragma once #ifdef __cplusplus extern "C" { @@ -242,5 +241,3 @@ void common_hal_mcu_enable_interrupts(void); #ifdef __cplusplus } #endif - -#endif // NRFX_GLUE_H__ diff --git a/ports/nordic/nrfx_log.h b/ports/nordic/nrfx_log.h index f6ef36ee185cd..a988ea3ec132d 100644 --- a/ports/nordic/nrfx_log.h +++ b/ports/nordic/nrfx_log.h @@ -44,8 +44,7 @@ * */ -#ifndef NRFX_LOG_H__ -#define NRFX_LOG_H__ +#pragma once #ifdef __cplusplus extern "C" { @@ -140,5 +139,3 @@ extern "C" { #ifdef __cplusplus } #endif - -#endif // NRFX_LOG_H__ diff --git a/ports/nordic/peripherals/nrf/cache.h b/ports/nordic/peripherals/nrf/cache.h index 5c9bd35b7076f..f3aa8b40c0dd3 100644 --- a/ports/nordic/peripherals/nrf/cache.h +++ b/ports/nordic/peripherals/nrf/cache.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + void nrf_peripherals_disable_and_clear_cache(void); void nrf_peripherals_enable_cache(void); diff --git a/ports/nordic/peripherals/nrf/clocks.h b/ports/nordic/peripherals/nrf/clocks.h index 986c35561cc47..4ab51c5868eb3 100644 --- a/ports/nordic/peripherals/nrf/clocks.h +++ b/ports/nordic/peripherals/nrf/clocks.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + void nrf_peripherals_clocks_init(void); diff --git a/ports/nordic/peripherals/nrf/nrf52833/pins.h b/ports/nordic/peripherals/nrf/nrf52833/pins.h index e3ae4874d7826..c97c22760dbe7 100644 --- a/ports/nordic/peripherals/nrf/nrf52833/pins.h +++ b/ports/nordic/peripherals/nrf/nrf52833/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52833_PINS_H -#define MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52833_PINS_H +#pragma once extern const mcu_pin_obj_t pin_P0_00; extern const mcu_pin_obj_t pin_P0_01; @@ -49,5 +48,3 @@ extern const mcu_pin_obj_t pin_P1_06; extern const mcu_pin_obj_t pin_P1_07; extern const mcu_pin_obj_t pin_P1_08; extern const mcu_pin_obj_t pin_P1_09; - -#endif // MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52833_PINS_H diff --git a/ports/nordic/peripherals/nrf/nrf52840/pins.h b/ports/nordic/peripherals/nrf/nrf52840/pins.h index d71ff03209bc9..676efb4bb1ff9 100644 --- a/ports/nordic/peripherals/nrf/nrf52840/pins.h +++ b/ports/nordic/peripherals/nrf/nrf52840/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52840_PINS_H -#define MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52840_PINS_H +#pragma once extern const mcu_pin_obj_t pin_P0_00; extern const mcu_pin_obj_t pin_P0_01; @@ -55,5 +54,3 @@ extern const mcu_pin_obj_t pin_P1_12; extern const mcu_pin_obj_t pin_P1_13; extern const mcu_pin_obj_t pin_P1_14; extern const mcu_pin_obj_t pin_P1_15; - -#endif // MICROPY_INCLUDED_NRF_PERIPHERALS_NRF52840_PINS_H diff --git a/ports/nordic/peripherals/nrf/nvm.h b/ports/nordic/peripherals/nrf/nvm.h index 3137c5f3ee150..aff9809446997 100644 --- a/ports/nordic/peripherals/nrf/nvm.h +++ b/ports/nordic/peripherals/nrf/nvm.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define FLASH_PAGE_SIZE (4096) #if BLUETOOTH_SD diff --git a/ports/nordic/peripherals/nrf/pins.h b/ports/nordic/peripherals/nrf/pins.h index db8f0d15cb708..096568e87c3da 100644 --- a/ports/nordic/peripherals/nrf/pins.h +++ b/ports/nordic/peripherals/nrf/pins.h @@ -7,8 +7,7 @@ // DO NOT include this file directly. Use shared-bindings/microcontroller/Pin.h instead to ensure // that all necessary includes are already included. -#ifndef __MICROPY_INCLUDED_NRF_PERIPHERALS_PINS_H__ -#define __MICROPY_INCLUDED_NRF_PERIPHERALS_PINS_H__ +#pragma once #include #include @@ -45,5 +44,3 @@ extern const mp_obj_type_t mcu_pin_type; #ifdef NRF52833 #include "nrf52833/pins.h" #endif - -#endif // __MICROPY_INCLUDED_NRF_PERIPHERALS_PINS_H__ diff --git a/ports/nordic/peripherals/nrf/power.h b/ports/nordic/peripherals/nrf/power.h index ba6bb8a561344..6f8c31f08d315 100644 --- a/ports/nordic/peripherals/nrf/power.h +++ b/ports/nordic/peripherals/nrf/power.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + void nrf_peripherals_power_init(void); diff --git a/ports/nordic/peripherals/nrf/timers.h b/ports/nordic/peripherals/nrf/timers.h index f8ae59ac9625e..44b8bc1bf04fc 100644 --- a/ports/nordic/peripherals/nrf/timers.h +++ b/ports/nordic/peripherals/nrf/timers.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "nrfx.h" #include "nrfx_timer.h" diff --git a/ports/nordic/qstrdefsport.h b/ports/nordic/qstrdefsport.h index 57b5815583d4e..b8cd1fd9af908 100644 --- a/ports/nordic/qstrdefsport.h +++ b/ports/nordic/qstrdefsport.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port diff --git a/ports/nordic/sd_mutex.h b/ports/nordic/sd_mutex.h index 9f2eb9764208e..d4b45b5059945 100644 --- a/ports/nordic/sd_mutex.h +++ b/ports/nordic/sd_mutex.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_SD_MUTEX_H -#define MICROPY_INCLUDED_NRF_SD_MUTEX_H +#pragma once #include "nrf_soc.h" @@ -22,5 +21,3 @@ void sd_mutex_acquire_wait_no_vm(nrf_mutex_t *p_mutex); // Release a mutex, and raise exception on error. void sd_mutex_release_check(nrf_mutex_t *p_mutex); - -#endif // MICROPY_INCLUDED_NRF_SD_MUTEX_H diff --git a/ports/nordic/supervisor/internal_flash.h b/ports/nordic/supervisor/internal_flash.h index 05632f1d755f9..32a77a63a9bbd 100644 --- a/ports/nordic/supervisor/internal_flash.h +++ b/ports/nordic/supervisor/internal_flash.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_NRF_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_NRF_INTERNAL_FLASH_H +#pragma once #include #include @@ -13,5 +12,3 @@ #define INTERNAL_FLASH_SYSTICK_MASK (0x1ff) // 512ms #define INTERNAL_FLASH_IDLE_TICK(tick) (((tick) & INTERNAL_FLASH_SYSTICK_MASK) == 2) - -#endif // MICROPY_INCLUDED_NRF_INTERNAL_FLASH_H diff --git a/ports/nordic/supervisor/qspi_flash.h b/ports/nordic/supervisor/qspi_flash.h index 556f037996705..35c31298a0d41 100644 --- a/ports/nordic/supervisor/qspi_flash.h +++ b/ports/nordic/supervisor/qspi_flash.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + extern void qspi_flash_enter_sleep(void); extern void qspi_flash_exit_sleep(void); extern void qspi_disable(void); diff --git a/ports/raspberrypi/audio_dma.h b/ports/raspberrypi/audio_dma.h index eeb34e78466f5..7c33a9e2ac319 100644 --- a/ports/raspberrypi/audio_dma.h +++ b/ports/raspberrypi/audio_dma.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_AUDIO_DMA_OUT_H -#define MICROPY_INCLUDED_RASPBERRYPI_AUDIO_DMA_OUT_H +#pragma once #include "py/obj.h" #include "supervisor/background_callback.h" @@ -73,5 +72,3 @@ bool audio_dma_get_paused(audio_dma_t *dma); uint32_t audio_dma_pause_all(void); void audio_dma_unpause_mask(uint32_t channel_mask); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_AUDIO_DMA_OUT_H diff --git a/ports/raspberrypi/background.h b/ports/raspberrypi/background.h index a538a24734d53..fe71149ab4b42 100644 --- a/ports/raspberrypi/background.h +++ b/ports/raspberrypi/background.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_BACKGROUND_H -#define MICROPY_INCLUDED_RASPBERRYPI_BACKGROUND_H +#pragma once #include - -#endif // MICROPY_INCLUDED_RASPBERRYPI_BACKGROUND_H diff --git a/ports/raspberrypi/bindings/rp2pio/StateMachine.h b/ports/raspberrypi/bindings/rp2pio/StateMachine.h index 8076031a35b5b..ce14d634097c1 100644 --- a/ports/raspberrypi/bindings/rp2pio/StateMachine.h +++ b/ports/raspberrypi/bindings/rp2pio/StateMachine.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_BINDINGS_RP2PIO_STATEMACHINE_H -#define MICROPY_INCLUDED_RASPBERRYPI_BINDINGS_RP2PIO_STATEMACHINE_H +#pragma once #include "py/obj.h" @@ -68,5 +67,3 @@ void common_hal_rp2pio_statemachine_clear_txstall(rp2pio_statemachine_obj_t *sel size_t common_hal_rp2pio_statemachine_get_in_waiting(rp2pio_statemachine_obj_t *self); void common_hal_rp2pio_statemachine_set_interrupt_handler(rp2pio_statemachine_obj_t *self, void (*handler)(void *), void *arg, int mask); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_BINDINGS_RP2PIO_STATEMACHINE_H diff --git a/ports/raspberrypi/boards/0xcb_helios/mpconfigboard.h b/ports/raspberrypi/boards/0xcb_helios/mpconfigboard.h index 91f7e37472371..dd156781edce1 100644 --- a/ports/raspberrypi/boards/0xcb_helios/mpconfigboard.h +++ b/ports/raspberrypi/boards/0xcb_helios/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "0xCB Helios" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/0xcb_helios/pico-sdk-configboard.h b/ports/raspberrypi/boards/0xcb_helios/pico-sdk-configboard.h index 1d095f07d985a..c3af1ed4084a9 100644 --- a/ports/raspberrypi/boards/0xcb_helios/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/0xcb_helios/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/42keebs_frood/mpconfigboard.h b/ports/raspberrypi/boards/42keebs_frood/mpconfigboard.h index 554786f33ff85..d81ca7a845864 100644 --- a/ports/raspberrypi/boards/42keebs_frood/mpconfigboard.h +++ b/ports/raspberrypi/boards/42keebs_frood/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "42. Keebs Frood" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/42keebs_frood/pico-sdk-configboard.h b/ports/raspberrypi/boards/42keebs_frood/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/42keebs_frood/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/42keebs_frood/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h index 831a9513cc135..2a47ae53e4171 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_can/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_can/mpconfigboard.h index 85c83e3bcf1b9..5b43e9263ab98 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_can/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_can/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 CAN" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_can/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_can/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_can/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_can/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/mpconfigboard.h index fcb5aede24b5a..713fd34f68d1b 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 DVI" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_dvi/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/mpconfigboard.h index 6b43929194f96..30b25e9adf005 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 Prop-Maker" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_prop_maker/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/mpconfigboard.h index 5a58b5ed49a4f..eba14ff163dec 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 RFM" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_rfm/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/mpconfigboard.h index 6eed2fa78e6f6..670e056363e76 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 Scorpio" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_scorpio/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/mpconfigboard.h index 2d90e4859e4aa..c2b276b132b8c 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 ThinkInk" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_thinkink/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/mpconfigboard.h index 677d84ca7971a..e2b378c52252f 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Feather RP2040 USB Host" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_feather_rp2040_usb_host/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_floppsy_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_floppsy_rp2040/mpconfigboard.h index 2305c8bcc3efb..6f41981e24896 100644 --- a/ports/raspberrypi/boards/adafruit_floppsy_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_floppsy_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Floppsy RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_floppsy_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_floppsy_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_floppsy_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_floppsy_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/mpconfigboard.h index 689c9ba96bfc1..ad5e870f4e73d 100644 --- a/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit ItsyBitsy RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_itsybitsy_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h index 963bbb27c05a0..89c76d74ba7e6 100644 --- a/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_kb2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit KB2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_kb2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_kb2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_kb2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_kb2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_macropad_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_macropad_rp2040/mpconfigboard.h index 7f410ebb4d1e2..32ba5284a6261 100644 --- a/ports/raspberrypi/boards/adafruit_macropad_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_macropad_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Macropad RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_macropad_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_macropad_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_macropad_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_macropad_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_metro_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_metro_rp2040/mpconfigboard.h index 42901d23836f4..4242599354c38 100644 --- a/ports/raspberrypi/boards/adafruit_metro_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_metro_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit Metro RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_metro_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_metro_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_metro_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_metro_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_qt2040_trinkey/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_qt2040_trinkey/mpconfigboard.h index 27ebadda23f95..5f7829791b70f 100644 --- a/ports/raspberrypi/boards/adafruit_qt2040_trinkey/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_qt2040_trinkey/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit QT2040 Trinkey" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_qt2040_trinkey/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_qt2040_trinkey/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_qt2040_trinkey/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_qt2040_trinkey/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/adafruit_qtpy_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/adafruit_qtpy_rp2040/mpconfigboard.h index 972bfd34debc2..7e5f679c07dec 100644 --- a/ports/raspberrypi/boards/adafruit_qtpy_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/adafruit_qtpy_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Adafruit QT Py RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/adafruit_qtpy_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/adafruit_qtpy_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/adafruit_qtpy_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/adafruit_qtpy_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/arduino_nano_rp2040_connect/mpconfigboard.h b/ports/raspberrypi/boards/arduino_nano_rp2040_connect/mpconfigboard.h index aec4591c9abba..76eb2180b18a2 100644 --- a/ports/raspberrypi/boards/arduino_nano_rp2040_connect/mpconfigboard.h +++ b/ports/raspberrypi/boards/arduino_nano_rp2040_connect/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Arduino Nano RP2040 Connect" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/arduino_nano_rp2040_connect/pico-sdk-configboard.h b/ports/raspberrypi/boards/arduino_nano_rp2040_connect/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/arduino_nano_rp2040_connect/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/arduino_nano_rp2040_connect/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/boardsource_blok/mpconfigboard.h b/ports/raspberrypi/boards/boardsource_blok/mpconfigboard.h index eb75d69b3dc6c..0929427eeda06 100644 --- a/ports/raspberrypi/boards/boardsource_blok/mpconfigboard.h +++ b/ports/raspberrypi/boards/boardsource_blok/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "BLOK" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/boardsource_blok/pico-sdk-configboard.h b/ports/raspberrypi/boards/boardsource_blok/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/boardsource_blok/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/boardsource_blok/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/board.c b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/board.c index 8130925b9708c..a886c949afce7 100644 --- a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/board.c +++ b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/board.c @@ -1,26 +1,8 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2024 Bradán Lane STUDIO - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ +// This file is part of the CircuitPython project: https://circuitpython.org +// +// SPDX-FileCopyrightText: Copyright (c) 2024 Bradán Lane STUDIO +// +// SPDX-License-Identifier: MIT /* The Explorer Badge(s) have more than one specific hardware configuration. diff --git a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.h index 43271bb17d6ea..2c5760c749689 100644 --- a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.h @@ -1,26 +1,8 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2024 Bradán Lane STUDIO - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ +// This file is part of the CircuitPython project: https://circuitpython.org +// +// SPDX-FileCopyrightText: Copyright (c) 2024 Bradán Lane STUDIO +// +// SPDX-License-Identifier: MIT #pragma once diff --git a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.mk b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.mk index 06c8786d85c82..872da79982ff1 100644 --- a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.mk +++ b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/mpconfigboard.mk @@ -1,3 +1,9 @@ +# This file is part of the CircuitPython project: https://circuitpython.org +# +# SPDX-FileCopyrightText: Copyright (c) 2024 Bradán Lane STUDIO +# +# SPDX-License-Identifier: MIT + USB_VID = 0x2E8A USB_PID = 0x1073 USB_PRODUCT = "Explorer Badge" diff --git a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pico-sdk-configboard.h index a41131dd22b7e..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pico-sdk-configboard.h @@ -1,3 +1,11 @@ +// This file is part of the CircuitPython project: https://circuitpython.org +// +// SPDX-FileCopyrightText: Copyright (c) 2021 Scott Shawcroft for Adafruit Industries +// +// SPDX-License-Identifier: MIT + +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pins.c b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pins.c index 971ca5f2597fb..9ca4cbdfa282e 100644 --- a/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pins.c +++ b/ports/raspberrypi/boards/bradanlanestudio_explorer_rp2040/pins.c @@ -1,26 +1,10 @@ -/* - * The MIT License (MIT) - * - * Copyright (c) 2024 Bradán Lane STUDIO - * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN - * THE SOFTWARE. - */ +// This file is part of the CircuitPython project: https://circuitpython.org +// +// SPDX-FileCopyrightText: Copyright (c) 2021 Scott Shawcroft for Adafruit Industries +// +// SPDX-License-Identifier: MIT + +// Put board-specific pico-sdk definitions here. This file must exist. #include "mpconfigboard.h" diff --git a/ports/raspberrypi/boards/breadstick_raspberry/mpconfigboard.h b/ports/raspberrypi/boards/breadstick_raspberry/mpconfigboard.h index 2b3ec7378026a..f5c1b85eedab6 100644 --- a/ports/raspberrypi/boards/breadstick_raspberry/mpconfigboard.h +++ b/ports/raspberrypi/boards/breadstick_raspberry/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Breadstick" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/breadstick_raspberry/pico-sdk-configboard.h b/ports/raspberrypi/boards/breadstick_raspberry/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/breadstick_raspberry/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/breadstick_raspberry/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/bwshockley_figpi/mpconfigboard.h b/ports/raspberrypi/boards/bwshockley_figpi/mpconfigboard.h index 9abfdc9a723f7..e937c8ba21da2 100644 --- a/ports/raspberrypi/boards/bwshockley_figpi/mpconfigboard.h +++ b/ports/raspberrypi/boards/bwshockley_figpi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Fig Pi" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/bwshockley_figpi/pico-sdk-configboard.h b/ports/raspberrypi/boards/bwshockley_figpi/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/bwshockley_figpi/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/bwshockley_figpi/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/mpconfigboard.h b/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/mpconfigboard.h index 809748ca55654..7c98280fee988 100644 --- a/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger NB RP2040 WiFi" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_nb_rp2040_wifi/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/challenger_rp2040_lora/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_lora/mpconfigboard.h index 241131bc33751..6442593a6676f 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_lora/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_lora/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger RP2040 LoRa" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_rp2040_lora/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_rp2040_lora/pico-sdk-configboard.h index 8cdca16a13e78..b579b60b887bd 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_lora/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_lora/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/challenger_rp2040_lte/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_lte/mpconfigboard.h index fb2f0966a9f33..2acd7b69666e3 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_lte/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_lte/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger RP2040 LTE" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_rp2040_lte/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_rp2040_lte/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_lte/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_lte/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/challenger_rp2040_sdrtc/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_sdrtc/mpconfigboard.h index cee09737b3129..06d7deb4fd36e 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_sdrtc/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_sdrtc/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger RP2040 SD/RTC" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_rp2040_sdrtc/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_rp2040_sdrtc/pico-sdk-configboard.h index 8cdca16a13e78..b579b60b887bd 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_sdrtc/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_sdrtc/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/challenger_rp2040_subghz/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_subghz/mpconfigboard.h index 3f6f8bc49e158..e4fd7b9fb7281 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_subghz/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_subghz/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger RP2040 SubGHz" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_rp2040_subghz/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_rp2040_subghz/pico-sdk-configboard.h index 8cdca16a13e78..b579b60b887bd 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_subghz/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_subghz/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h index efba5fc0d5934..644d6da5927f1 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_wifi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger RP2040 WiFi" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_rp2040_wifi/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_rp2040_wifi/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_wifi/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_wifi/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/mpconfigboard.h b/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/mpconfigboard.h index 42bed25020389..8acd2fc22124e 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/mpconfigboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Challenger RP2040 WiFi/BLE" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/pico-sdk-configboard.h b/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/challenger_rp2040_wifi_ble/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/cosmo_pico/mpconfigboard.h b/ports/raspberrypi/boards/cosmo_pico/mpconfigboard.h index 194af6d2a5f06..829c60a2cf69a 100644 --- a/ports/raspberrypi/boards/cosmo_pico/mpconfigboard.h +++ b/ports/raspberrypi/boards/cosmo_pico/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "COSMO-Pico" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/cosmo_pico/pico-sdk-configboard.h b/ports/raspberrypi/boards/cosmo_pico/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/cosmo_pico/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/cosmo_pico/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/cytron_edu_pico_w/mpconfigboard.h b/ports/raspberrypi/boards/cytron_edu_pico_w/mpconfigboard.h index 5ebfc3a669733..79b4a0617ced1 100644 --- a/ports/raspberrypi/boards/cytron_edu_pico_w/mpconfigboard.h +++ b/ports/raspberrypi/boards/cytron_edu_pico_w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Cytron EDU PICO W" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/cytron_edu_pico_w/pico-sdk-configboard.h b/ports/raspberrypi/boards/cytron_edu_pico_w/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/cytron_edu_pico_w/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/cytron_edu_pico_w/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/cytron_maker_nano_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/cytron_maker_nano_rp2040/mpconfigboard.h index fc1fed9e43048..0c9abd8788b0f 100644 --- a/ports/raspberrypi/boards/cytron_maker_nano_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/cytron_maker_nano_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Cytron Maker Nano RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/cytron_maker_nano_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/cytron_maker_nano_rp2040/pico-sdk-configboard.h index 5cb0e226e7211..ff84d8826d9a0 100644 --- a/ports/raspberrypi/boards/cytron_maker_nano_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/cytron_maker_nano_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/cytron_maker_pi_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/cytron_maker_pi_rp2040/mpconfigboard.h index 923f79c652f1d..cb3adabb958ea 100644 --- a/ports/raspberrypi/boards/cytron_maker_pi_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/cytron_maker_pi_rp2040/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Cytron Maker Pi RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/cytron_maker_pi_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/cytron_maker_pi_rp2040/pico-sdk-configboard.h index 36894c8103df9..3849c55e69c58 100644 --- a/ports/raspberrypi/boards/cytron_maker_pi_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/cytron_maker_pi_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/cytron_maker_uno_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/cytron_maker_uno_rp2040/mpconfigboard.h index 4a97257b761e6..34d57e01b1d71 100644 --- a/ports/raspberrypi/boards/cytron_maker_uno_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/cytron_maker_uno_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Cytron Maker Uno RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/cytron_maker_uno_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/cytron_maker_uno_rp2040/pico-sdk-configboard.h index 1eca38d1a7640..71f243cf0b069 100644 --- a/ports/raspberrypi/boards/cytron_maker_uno_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/cytron_maker_uno_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/datanoise_picoadk/mpconfigboard.h b/ports/raspberrypi/boards/datanoise_picoadk/mpconfigboard.h index 1f2b2d690315f..089f50b18d085 100644 --- a/ports/raspberrypi/boards/datanoise_picoadk/mpconfigboard.h +++ b/ports/raspberrypi/boards/datanoise_picoadk/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Datanoise PicoADK" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/datanoise_picoadk/pico-sdk-configboard.h b/ports/raspberrypi/boards/datanoise_picoadk/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/datanoise_picoadk/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/datanoise_picoadk/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/e_fidget/mpconfigboard.h b/ports/raspberrypi/boards/e_fidget/mpconfigboard.h index 1aac87bb88235..83a9ba95d9409 100644 --- a/ports/raspberrypi/boards/e_fidget/mpconfigboard.h +++ b/ports/raspberrypi/boards/e_fidget/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "E-Fidget" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/e_fidget/pico-sdk-configboard.h b/ports/raspberrypi/boards/e_fidget/pico-sdk-configboard.h index 01d99bc142fc8..e7a717226ef36 100644 --- a/ports/raspberrypi/boards/e_fidget/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/e_fidget/pico-sdk-configboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 diff --git a/ports/raspberrypi/boards/elecfreaks_picoed/mpconfigboard.h b/ports/raspberrypi/boards/elecfreaks_picoed/mpconfigboard.h index 94a759a649d96..2c44e0dd80b0a 100644 --- a/ports/raspberrypi/boards/elecfreaks_picoed/mpconfigboard.h +++ b/ports/raspberrypi/boards/elecfreaks_picoed/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "ELECFREAKS PICO:ED" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/elecfreaks_picoed/pico-sdk-configboard.h b/ports/raspberrypi/boards/elecfreaks_picoed/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/elecfreaks_picoed/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/elecfreaks_picoed/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/electrolama_minik/mpconfigboard.h b/ports/raspberrypi/boards/electrolama_minik/mpconfigboard.h index 664ccf55c6dbd..20e16ae070fb3 100644 --- a/ports/raspberrypi/boards/electrolama_minik/mpconfigboard.h +++ b/ports/raspberrypi/boards/electrolama_minik/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Electrolama minik" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/electrolama_minik/pico-sdk-configboard.h b/ports/raspberrypi/boards/electrolama_minik/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/electrolama_minik/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/electrolama_minik/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/hack_club_sprig/mpconfigboard.h b/ports/raspberrypi/boards/hack_club_sprig/mpconfigboard.h index 837f675742144..041aca6d45eb7 100644 --- a/ports/raspberrypi/boards/hack_club_sprig/mpconfigboard.h +++ b/ports/raspberrypi/boards/hack_club_sprig/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Hack Club Sprig" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/hack_club_sprig/pico-sdk-configboard.h b/ports/raspberrypi/boards/hack_club_sprig/pico-sdk-configboard.h index 9e4a8bfbda796..50b8812775f07 100644 --- a/ports/raspberrypi/boards/hack_club_sprig/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/hack_club_sprig/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/heiafr_picomo_v2/mpconfigboard.h b/ports/raspberrypi/boards/heiafr_picomo_v2/mpconfigboard.h index 72e3210d59d67..53b9ebd13dd05 100644 --- a/ports/raspberrypi/boards/heiafr_picomo_v2/mpconfigboard.h +++ b/ports/raspberrypi/boards/heiafr_picomo_v2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "HEIA-FR Picomo V2" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/heiafr_picomo_v2/pico-sdk-configboard.h b/ports/raspberrypi/boards/heiafr_picomo_v2/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/heiafr_picomo_v2/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/heiafr_picomo_v2/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/mpconfigboard.h index 583d699f2e3ac..9007dbbf127b3 100644 --- a/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "EncoderPad RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_encoderpad_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey18/mpconfigboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey18/mpconfigboard.h index b593e8ba9081f..a7a92723cea33 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey18/mpconfigboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey18/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyKey 18 Numpad" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey18/pico-sdk-configboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey18/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey18/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey18/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey44/mpconfigboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey44/mpconfigboard.h index c43653c7846fa..8ddc7247276a3 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey44/mpconfigboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey44/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyKey 44 Ergo" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey44/pico-sdk-configboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey44/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey44/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey44/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey60/mpconfigboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey60/mpconfigboard.h index cfa67ec84c8eb..92b235f86645d 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey60/mpconfigboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey60/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyKey 60" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey60/pico-sdk-configboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey60/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey60/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey60/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey87/mpconfigboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey87/mpconfigboard.h index 14aaf2686e60c..96f87d8318158 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey87/mpconfigboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey87/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "PyKey 87 TKL" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/jpconstantineau_pykey87/pico-sdk-configboard.h b/ports/raspberrypi/boards/jpconstantineau_pykey87/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/jpconstantineau_pykey87/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/jpconstantineau_pykey87/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/lilygo_t_display_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/lilygo_t_display_rp2040/mpconfigboard.h index decfca58fce0d..bea0272714495 100644 --- a/ports/raspberrypi/boards/lilygo_t_display_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/lilygo_t_display_rp2040/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "LILYGO T-DISPLAY" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/lilygo_t_display_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/lilygo_t_display_rp2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/lilygo_t_display_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/lilygo_t_display_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/maple_elite_pi/mpconfigboard.h b/ports/raspberrypi/boards/maple_elite_pi/mpconfigboard.h index ce2643d443341..10f4f58123269 100644 --- a/ports/raspberrypi/boards/maple_elite_pi/mpconfigboard.h +++ b/ports/raspberrypi/boards/maple_elite_pi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Maple Computing Elite-Pi" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/maple_elite_pi/pico-sdk-configboard.h b/ports/raspberrypi/boards/maple_elite_pi/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/maple_elite_pi/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/maple_elite_pi/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/melopero_shake_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/melopero_shake_rp2040/mpconfigboard.h index 4fb2fc2ac7359..d377b6100ba4e 100644 --- a/ports/raspberrypi/boards/melopero_shake_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/melopero_shake_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Melopero Shake RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/melopero_shake_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/melopero_shake_rp2040/pico-sdk-configboard.h index 01d99bc142fc8..e7a717226ef36 100644 --- a/ports/raspberrypi/boards/melopero_shake_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/melopero_shake_rp2040/pico-sdk-configboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 diff --git a/ports/raspberrypi/boards/nullbits_bit_c_pro/mpconfigboard.h b/ports/raspberrypi/boards/nullbits_bit_c_pro/mpconfigboard.h index fe658628cf232..9ac0a3ff0cfe4 100644 --- a/ports/raspberrypi/boards/nullbits_bit_c_pro/mpconfigboard.h +++ b/ports/raspberrypi/boards/nullbits_bit_c_pro/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "nullbits Bit-C PRO" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/nullbits_bit_c_pro/pico-sdk-configboard.h b/ports/raspberrypi/boards/nullbits_bit_c_pro/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/nullbits_bit_c_pro/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/nullbits_bit_c_pro/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/odt_bread_2040/mpconfigboard.h b/ports/raspberrypi/boards/odt_bread_2040/mpconfigboard.h index dc93907302136..92792fa6bf005 100644 --- a/ports/raspberrypi/boards/odt_bread_2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/odt_bread_2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Oak Dev Tech BREAD2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/odt_bread_2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/odt_bread_2040/pico-sdk-configboard.h index 91d72853f7572..a301cec5acad3 100644 --- a/ports/raspberrypi/boards/odt_bread_2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/odt_bread_2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 diff --git a/ports/raspberrypi/boards/odt_cast_away_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/odt_cast_away_rp2040/mpconfigboard.h index e91a05ec6557f..88b2db66424dc 100644 --- a/ports/raspberrypi/boards/odt_cast_away_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/odt_cast_away_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Oak Dev Tech Cast-Away RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/odt_cast_away_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/odt_cast_away_rp2040/pico-sdk-configboard.h index 91d72853f7572..a301cec5acad3 100644 --- a/ports/raspberrypi/boards/odt_cast_away_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/odt_cast_away_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. #define PICO_XOSC_STARTUP_DELAY_MULTIPLIER 64 diff --git a/ports/raspberrypi/boards/pajenicko_picopad/mpconfigboard.h b/ports/raspberrypi/boards/pajenicko_picopad/mpconfigboard.h index 23b963d4358cc..a4775d9e2d058 100644 --- a/ports/raspberrypi/boards/pajenicko_picopad/mpconfigboard.h +++ b/ports/raspberrypi/boards/pajenicko_picopad/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pajenicko PicoPad" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pajenicko_picopad/pico-sdk-configboard.h b/ports/raspberrypi/boards/pajenicko_picopad/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pajenicko_picopad/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pajenicko_picopad/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_badger2040/badger-shared.h b/ports/raspberrypi/boards/pimoroni_badger2040/badger-shared.h index 66db7063d80d4..c6be0048937c7 100644 --- a/ports/raspberrypi/boards/pimoroni_badger2040/badger-shared.h +++ b/ports/raspberrypi/boards/pimoroni_badger2040/badger-shared.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef PIMORONI_BADGER2040_SHARED -#define PIMORONI_BADGER2040_SHARED +#pragma once #include "shared-bindings/digitalio/DigitalInOut.h" extern digitalio_digitalinout_obj_t enable_pin_obj; - -#endif // PIMORONI_BADGER2040_SHARED diff --git a/ports/raspberrypi/boards/pimoroni_badger2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_badger2040/mpconfigboard.h index 8affd4d4fa6d4..d453778311874 100644 --- a/ports/raspberrypi/boards/pimoroni_badger2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_badger2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Badger 2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_badger2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_badger2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_badger2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_badger2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_badger2040w/badger-shared.h b/ports/raspberrypi/boards/pimoroni_badger2040w/badger-shared.h index d6a7388bdbb4c..c6be0048937c7 100644 --- a/ports/raspberrypi/boards/pimoroni_badger2040w/badger-shared.h +++ b/ports/raspberrypi/boards/pimoroni_badger2040w/badger-shared.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef PIMORONI_BADGER2040W_SHARED -#define PIMORONI_BADGER2040W_SHARED +#pragma once #include "shared-bindings/digitalio/DigitalInOut.h" extern digitalio_digitalinout_obj_t enable_pin_obj; - -#endif // PIMORONI_BADGER2040W_SHARED diff --git a/ports/raspberrypi/boards/pimoroni_badger2040w/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_badger2040w/mpconfigboard.h index 680317116d913..b120aa2dc1d58 100644 --- a/ports/raspberrypi/boards/pimoroni_badger2040w/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_badger2040w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Badger 2040 W" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_badger2040w/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_badger2040w/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_badger2040w/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_badger2040w/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/inky-shared.h b/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/inky-shared.h index 24201751fc194..c6be0048937c7 100644 --- a/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/inky-shared.h +++ b/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/inky-shared.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef PIMORONI_INKY_SHARED -#define PIMORONI_INKY_SHARED +#pragma once #include "shared-bindings/digitalio/DigitalInOut.h" extern digitalio_digitalinout_obj_t enable_pin_obj; - -#endif // PIMORONI_INKY_SHARED diff --git a/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/mpconfigboard.h index 59d2c93cd98b7..d2547cc161568 100644 --- a/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Inky Frame 5.7" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_inky_frame_5_7/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/inky-shared.h b/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/inky-shared.h index 24201751fc194..c6be0048937c7 100644 --- a/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/inky-shared.h +++ b/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/inky-shared.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef PIMORONI_INKY_SHARED -#define PIMORONI_INKY_SHARED +#pragma once #include "shared-bindings/digitalio/DigitalInOut.h" extern digitalio_digitalinout_obj_t enable_pin_obj; - -#endif // PIMORONI_INKY_SHARED diff --git a/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/mpconfigboard.h index 5f9c4edb892de..42cb1196a5475 100644 --- a/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Inky Frame 7.3" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_inky_frame_7_3/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_interstate75/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_interstate75/mpconfigboard.h index 30975b0ce75e8..81e931d47e89f 100644 --- a/ports/raspberrypi/boards/pimoroni_interstate75/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_interstate75/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Interstate 75" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_interstate75/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_interstate75/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_interstate75/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_interstate75/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_keybow2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_keybow2040/mpconfigboard.h index c34e830b1ccfa..a1f7dd50b7db2 100644 --- a/ports/raspberrypi/boards/pimoroni_keybow2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_keybow2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Keybow 2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_keybow2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_keybow2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_keybow2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_keybow2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_motor2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_motor2040/mpconfigboard.h index f8c4326050978..6bd30a616dd50 100644 --- a/ports/raspberrypi/boards/pimoroni_motor2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_motor2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Motor 2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_motor2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_motor2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_motor2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_motor2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_pga2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_pga2040/mpconfigboard.h index 51aaedc88a440..465de02bf8835 100644 --- a/ports/raspberrypi/boards/pimoroni_pga2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_pga2040/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni PGA2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_pga2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_pga2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_pga2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_pga2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_pico_dv_base/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_pico_dv_base/mpconfigboard.h index 378e6ba819387..c5941662c7279 100644 --- a/ports/raspberrypi/boards/pimoroni_pico_dv_base/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_pico_dv_base/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Pico dv Base" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_pico_dv_base/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_pico_dv_base/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/pimoroni_pico_dv_base/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_pico_dv_base/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/mpconfigboard.h index 9ce2a07f9e549..4220ed96fc112 100644 --- a/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Pico DV Base W" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_pico_dv_base_w/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_picolipo_16mb/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_picolipo_16mb/mpconfigboard.h index ae7dd4729d940..5b55537791f5f 100644 --- a/ports/raspberrypi/boards/pimoroni_picolipo_16mb/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_picolipo_16mb/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Pico LiPo (16MB)" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_picolipo_16mb/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_picolipo_16mb/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_picolipo_16mb/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_picolipo_16mb/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_picolipo_4mb/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_picolipo_4mb/mpconfigboard.h index 79c30a9e7d4ac..d0cb4cc69b0ca 100644 --- a/ports/raspberrypi/boards/pimoroni_picolipo_4mb/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_picolipo_4mb/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Pico LiPo (4MB)" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_picolipo_4mb/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_picolipo_4mb/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_picolipo_4mb/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_picolipo_4mb/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_picosystem/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_picosystem/mpconfigboard.h index 2b201a4651a5a..dc40f685a2e28 100644 --- a/ports/raspberrypi/boards/pimoroni_picosystem/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_picosystem/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni PicoSystem" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_picosystem/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_picosystem/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_picosystem/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_picosystem/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_plasma2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_plasma2040/mpconfigboard.h index 4ac0d0412542a..f2b276714965a 100644 --- a/ports/raspberrypi/boards/pimoroni_plasma2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_plasma2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Plasma 2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_plasma2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_plasma2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_plasma2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_plasma2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_plasma2040w/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_plasma2040w/mpconfigboard.h index 0e0d0e32638f4..f59747f2ee4b8 100644 --- a/ports/raspberrypi/boards/pimoroni_plasma2040w/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_plasma2040w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Plasma 2040W" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_plasma2040w/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_plasma2040w/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_plasma2040w/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_plasma2040w/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_servo2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_servo2040/mpconfigboard.h index cb734dfe32961..f29b37c6f422b 100644 --- a/ports/raspberrypi/boards/pimoroni_servo2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_servo2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Servo 2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_servo2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_servo2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_servo2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_servo2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h index d69bdaf09592d..4d1ef29bfe984 100644 --- a/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_tiny2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2040 (8MB)" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_tiny2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_tiny2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_tiny2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_tiny2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/mpconfigboard.h b/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/mpconfigboard.h index a2cd7b5d3c83e..ee9f666252b09 100644 --- a/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/mpconfigboard.h +++ b/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Pimoroni Tiny 2040 (2MB)" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/pico-sdk-configboard.h b/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/pimoroni_tiny2040_2mb/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h b/ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h index bb996237af9da..c4aff9696d70b 100644 --- a/ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h +++ b/ports/raspberrypi/boards/raspberry_pi_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/raspberry_pi_pico/pico-sdk-configboard.h b/ports/raspberrypi/boards/raspberry_pi_pico/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/raspberry_pi_pico/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/raspberry_pi_pico/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/raspberry_pi_pico_w/mpconfigboard.h b/ports/raspberrypi/boards/raspberry_pi_pico_w/mpconfigboard.h index 869204e7eecec..5913eac487442 100644 --- a/ports/raspberrypi/boards/raspberry_pi_pico_w/mpconfigboard.h +++ b/ports/raspberrypi/boards/raspberry_pi_pico_w/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Raspberry Pi Pico W" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/raspberry_pi_pico_w/pico-sdk-configboard.h b/ports/raspberrypi/boards/raspberry_pi_pico_w/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/raspberry_pi_pico_w/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/raspberry_pi_pico_w/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/rfguru_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/rfguru_rp2040/mpconfigboard.h index dcfdc1c685fde..7847e61786b7c 100644 --- a/ports/raspberrypi/boards/rfguru_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/rfguru_rp2040/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "RF.Guru RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/rfguru_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/rfguru_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/rfguru_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/rfguru_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/seeeduino_xiao_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/seeeduino_xiao_rp2040/mpconfigboard.h index 8b13f2827e653..8b584f9740dac 100644 --- a/ports/raspberrypi/boards/seeeduino_xiao_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/seeeduino_xiao_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Seeeduino XIAO RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/seeeduino_xiao_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/seeeduino_xiao_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/seeeduino_xiao_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/seeeduino_xiao_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/silicognition_rp2040_shim/mpconfigboard.h b/ports/raspberrypi/boards/silicognition_rp2040_shim/mpconfigboard.h index 3d243ea23a7b1..fdaf126c7989c 100644 --- a/ports/raspberrypi/boards/silicognition_rp2040_shim/mpconfigboard.h +++ b/ports/raspberrypi/boards/silicognition_rp2040_shim/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Silicognition LLC RP2040-Shim" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/silicognition_rp2040_shim/pico-sdk-configboard.h b/ports/raspberrypi/boards/silicognition_rp2040_shim/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/silicognition_rp2040_shim/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/silicognition_rp2040_shim/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/solderparty_bbq20kbd/mpconfigboard.h b/ports/raspberrypi/boards/solderparty_bbq20kbd/mpconfigboard.h index 9f84a28ba7ddf..c727fdb0108c6 100644 --- a/ports/raspberrypi/boards/solderparty_bbq20kbd/mpconfigboard.h +++ b/ports/raspberrypi/boards/solderparty_bbq20kbd/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "BBQ20KBD" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/solderparty_bbq20kbd/pico-sdk-configboard.h b/ports/raspberrypi/boards/solderparty_bbq20kbd/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/solderparty_bbq20kbd/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/solderparty_bbq20kbd/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/solderparty_rp2040_stamp/mpconfigboard.h b/ports/raspberrypi/boards/solderparty_rp2040_stamp/mpconfigboard.h index bee8a4948593a..117eedfcbc2a5 100644 --- a/ports/raspberrypi/boards/solderparty_rp2040_stamp/mpconfigboard.h +++ b/ports/raspberrypi/boards/solderparty_rp2040_stamp/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "RP2040 Stamp" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/solderparty_rp2040_stamp/pico-sdk-configboard.h b/ports/raspberrypi/boards/solderparty_rp2040_stamp/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/solderparty_rp2040_stamp/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/solderparty_rp2040_stamp/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/sparkfun_micromod_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/sparkfun_micromod_rp2040/mpconfigboard.h index 47d8c796fddd5..9edd82de5922b 100644 --- a/ports/raspberrypi/boards/sparkfun_micromod_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/sparkfun_micromod_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun MicroMod RP2040 Processor" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/sparkfun_micromod_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/sparkfun_micromod_rp2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/sparkfun_micromod_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/sparkfun_micromod_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.h index 2a0b3bb3d3b6c..5ebebe1fe3009 100644 --- a/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun Pro Micro RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/sparkfun_pro_micro_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/mpconfigboard.h index acbe829347315..b51b0c56d8b21 100644 --- a/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus - RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/sparkfun_thing_plus_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/splitkb_liatris/mpconfigboard.h b/ports/raspberrypi/boards/splitkb_liatris/mpconfigboard.h index 3b027d592324d..961385b6ab79f 100644 --- a/ports/raspberrypi/boards/splitkb_liatris/mpconfigboard.h +++ b/ports/raspberrypi/boards/splitkb_liatris/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "splitkb.com Liatris" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/splitkb_liatris/pico-sdk-configboard.h b/ports/raspberrypi/boards/splitkb_liatris/pico-sdk-configboard.h index 1d095f07d985a..c3af1ed4084a9 100644 --- a/ports/raspberrypi/boards/splitkb_liatris/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/splitkb_liatris/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/mpconfigboard.h index 77d40671f2e53..3770d35a846fb 100644 --- a/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "takayoshiotake Octave RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/takayoshiotake_octave_rp2040/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/ugame22/mpconfigboard.h b/ports/raspberrypi/boards/ugame22/mpconfigboard.h index d7ef1ba071485..f63c12b846acb 100644 --- a/ports/raspberrypi/boards/ugame22/mpconfigboard.h +++ b/ports/raspberrypi/boards/ugame22/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "uGame22" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/ugame22/pico-sdk-configboard.h b/ports/raspberrypi/boards/ugame22/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/ugame22/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/ugame22/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/mpconfigboard.h index e4c0d0bc4e275..cb73d65244730 100644 --- a/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "VCC-GND Studio YD RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/pico-sdk-configboard.h index c1efbb299eefa..849b17332597b 100644 --- a/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/vcc_gnd_yd_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_geek/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_geek/mpconfigboard.h index 5c7f292c67cc5..ba7b48a905643 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_geek/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_geek/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-GEEK" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_geek/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_geek/pico-sdk-configboard.h index aded40e07d881..a2e741ef9e5fe 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_geek/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_geek/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/mpconfigboard.h index 0d39b8d50e066..2fceb16d3cb4b 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-LCD-0.96" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_lcd_0_96/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/mpconfigboard.h index aa7e5c17d3166..6105bbef483d3 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-LCD-1.28" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_lcd_1_28/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/mpconfigboard.h index 6a6c7362417e7..7391a54fecf21 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-Plus (16MB)" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_plus_16mb/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/mpconfigboard.h index 068a2ef4f1913..90b596dcd0db6 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-Plus (4MB)" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_plus_4mb/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_tiny/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_tiny/mpconfigboard.h index e3a925d42d8f6..b2b6f3a27f9d0 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_tiny/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_tiny/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-Tiny" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_tiny/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_tiny/pico-sdk-configboard.h index 26ed98c336bc7..307388439fa71 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_tiny/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_tiny/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/mpconfigboard.h index 962f921293ed9..faf2789510ffd 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-TOUCH-LCD-1.28" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_touch_lcd_1_28/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/waveshare_rp2040_zero/mpconfigboard.h b/ports/raspberrypi/boards/waveshare_rp2040_zero/mpconfigboard.h index afd8b591af5b3..04177f3a5727c 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_zero/mpconfigboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_zero/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Waveshare RP2040-Zero" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/waveshare_rp2040_zero/pico-sdk-configboard.h b/ports/raspberrypi/boards/waveshare_rp2040_zero/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/waveshare_rp2040_zero/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/waveshare_rp2040_zero/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/weact_studio_pico/mpconfigboard.h b/ports/raspberrypi/boards/weact_studio_pico/mpconfigboard.h index a235595ee8afa..7caaa19971ba9 100644 --- a/ports/raspberrypi/boards/weact_studio_pico/mpconfigboard.h +++ b/ports/raspberrypi/boards/weact_studio_pico/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "WeAct Studio Pico" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/weact_studio_pico/pico-sdk-configboard.h b/ports/raspberrypi/boards/weact_studio_pico/pico-sdk-configboard.h index c1efbb299eefa..849b17332597b 100644 --- a/ports/raspberrypi/boards/weact_studio_pico/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/weact_studio_pico/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/weact_studio_pico_16mb/mpconfigboard.h b/ports/raspberrypi/boards/weact_studio_pico_16mb/mpconfigboard.h index 4049c0a3bd2b2..c8160608fbc77 100644 --- a/ports/raspberrypi/boards/weact_studio_pico_16mb/mpconfigboard.h +++ b/ports/raspberrypi/boards/weact_studio_pico_16mb/mpconfigboard.h @@ -4,5 +4,7 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "WeAct Studio Pico 16MB" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/weact_studio_pico_16mb/pico-sdk-configboard.h b/ports/raspberrypi/boards/weact_studio_pico_16mb/pico-sdk-configboard.h index c1efbb299eefa..849b17332597b 100644 --- a/ports/raspberrypi/boards/weact_studio_pico_16mb/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/weact_studio_pico_16mb/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/wisdpi_ardu2040m/mpconfigboard.h b/ports/raspberrypi/boards/wisdpi_ardu2040m/mpconfigboard.h index 9b07a36e863f0..aaaf34d793f4e 100644 --- a/ports/raspberrypi/boards/wisdpi_ardu2040m/mpconfigboard.h +++ b/ports/raspberrypi/boards/wisdpi_ardu2040m/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "WisdPi Ardu2040M" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/wisdpi_ardu2040m/pico-sdk-configboard.h b/ports/raspberrypi/boards/wisdpi_ardu2040m/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/wisdpi_ardu2040m/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/wisdpi_ardu2040m/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/wisdpi_tiny_rp2040/mpconfigboard.h b/ports/raspberrypi/boards/wisdpi_tiny_rp2040/mpconfigboard.h index 5df25f12cb7cb..b35b64659ed2d 100644 --- a/ports/raspberrypi/boards/wisdpi_tiny_rp2040/mpconfigboard.h +++ b/ports/raspberrypi/boards/wisdpi_tiny_rp2040/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "WisdPi Tiny RP2040" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/wisdpi_tiny_rp2040/pico-sdk-configboard.h b/ports/raspberrypi/boards/wisdpi_tiny_rp2040/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/wisdpi_tiny_rp2040/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/wisdpi_tiny_rp2040/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/mpconfigboard.h b/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/mpconfigboard.h index 35e5a471c2dd4..ba60f5f72d233 100644 --- a/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/mpconfigboard.h +++ b/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "W5100S-EVB-Pico" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/pico-sdk-configboard.h b/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/wiznet_w5100s_evb_pico/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/wiznet_w5500_evb_pico/mpconfigboard.h b/ports/raspberrypi/boards/wiznet_w5500_evb_pico/mpconfigboard.h index ec26fa8e6d13e..7aeca9bdb2cd1 100644 --- a/ports/raspberrypi/boards/wiznet_w5500_evb_pico/mpconfigboard.h +++ b/ports/raspberrypi/boards/wiznet_w5500_evb_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "W5500-EVB-Pico" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/wiznet_w5500_evb_pico/pico-sdk-configboard.h b/ports/raspberrypi/boards/wiznet_w5500_evb_pico/pico-sdk-configboard.h index 66b57dfd13dc2..110195b779498 100644 --- a/ports/raspberrypi/boards/wiznet_w5500_evb_pico/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/wiznet_w5500_evb_pico/pico-sdk-configboard.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. diff --git a/ports/raspberrypi/boards/zrichard_rp2.65-f/mpconfigboard.h b/ports/raspberrypi/boards/zrichard_rp2.65-f/mpconfigboard.h index 0bdfca7b84cfb..b972a82c99e98 100644 --- a/ports/raspberrypi/boards/zrichard_rp2.65-f/mpconfigboard.h +++ b/ports/raspberrypi/boards/zrichard_rp2.65-f/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "RP2.65-F" #define MICROPY_HW_MCU_NAME "rp2040" diff --git a/ports/raspberrypi/boards/zrichard_rp2.65-f/pico-sdk-configboard.h b/ports/raspberrypi/boards/zrichard_rp2.65-f/pico-sdk-configboard.h index 2d9283a9192f2..ce5a7645b4e22 100644 --- a/ports/raspberrypi/boards/zrichard_rp2.65-f/pico-sdk-configboard.h +++ b/ports/raspberrypi/boards/zrichard_rp2.65-f/pico-sdk-configboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Put board-specific pico-sdk definitions here. This file must exist. // Allow extra time for xosc to start. diff --git a/ports/raspberrypi/common-hal/alarm/coproc/CoprocAlarm.h b/ports/raspberrypi/common-hal/alarm/coproc/CoprocAlarm.h index a7f2dfca2b672..f8921574865aa 100644 --- a/ports/raspberrypi/common-hal/alarm/coproc/CoprocAlarm.h +++ b/ports/raspberrypi/common-hal/alarm/coproc/CoprocAlarm.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // empty file diff --git a/ports/raspberrypi/common-hal/analogbufio/BufferedIn.h b/ports/raspberrypi/common-hal/analogbufio/BufferedIn.h index 2b6786c0887bc..8ce2148ecfb54 100644 --- a/ports/raspberrypi/common-hal/analogbufio/BufferedIn.h +++ b/ports/raspberrypi/common-hal/analogbufio/BufferedIn.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "src/rp2_common/hardware_dma/include/hardware/dma.h" @@ -21,5 +20,3 @@ typedef struct { uint dma_chan; dma_channel_config cfg; } analogbufio_bufferedin_obj_t; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGBUFIO_BUFFEREDIN_H diff --git a/ports/raspberrypi/common-hal/analogio/AnalogIn.h b/ports/raspberrypi/common-hal/analogio/AnalogIn.h index c8e6f7958c4f7..a9edb98b3397d 100644 --- a/ports/raspberrypi/common-hal/analogio/AnalogIn.h +++ b/ports/raspberrypi/common-hal/analogio/AnalogIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -17,5 +16,3 @@ typedef struct { } analogio_analogin_obj_t; void analogin_init(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/raspberrypi/common-hal/analogio/AnalogOut.h b/ports/raspberrypi/common-hal/analogio/AnalogOut.h index 4903f67047c04..8b5c3b638ee0f 100644 --- a/ports/raspberrypi/common-hal/analogio/AnalogOut.h +++ b/ports/raspberrypi/common-hal/analogio/AnalogOut.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "py/obj.h" typedef struct { mp_obj_base_t base; } analogio_analogout_obj_t; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/raspberrypi/common-hal/audiobusio/I2SOut.h b/ports/raspberrypi/common-hal/audiobusio/I2SOut.h index 80b021f4120a3..2996640dc2d49 100644 --- a/ports/raspberrypi/common-hal/audiobusio/I2SOut.h +++ b/ports/raspberrypi/common-hal/audiobusio/I2SOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_AUDIOBUSIO_I2SOUT_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_AUDIOBUSIO_I2SOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/rp2pio/StateMachine.h" @@ -23,5 +22,3 @@ typedef struct { } audiobusio_i2sout_obj_t; void i2sout_reset(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_AUDIOBUSIO_I2SOUT_H diff --git a/ports/raspberrypi/common-hal/audiobusio/PDMIn.h b/ports/raspberrypi/common-hal/audiobusio/PDMIn.h index 7cc92f92b932e..9e97173e8c1bc 100644 --- a/ports/raspberrypi/common-hal/audiobusio/PDMIn.h +++ b/ports/raspberrypi/common-hal/audiobusio/PDMIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "bindings/rp2pio/StateMachine.h" @@ -26,5 +25,3 @@ typedef struct { void pdmin_reset(void); void pdmin_background(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H diff --git a/ports/raspberrypi/common-hal/busio/I2C.h b/ports/raspberrypi/common-hal/busio/I2C.h index 11731e5bfb02b..9d97025c48e2c 100644 --- a/ports/raspberrypi/common-hal/busio/I2C.h +++ b/ports/raspberrypi/common-hal/busio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "shared-module/bitbangio/I2C.h" @@ -25,5 +24,3 @@ typedef struct { } busio_i2c_obj_t; void reset_i2c(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/raspberrypi/common-hal/busio/SPI.h b/ports/raspberrypi/common-hal/busio/SPI.h index 489974c7cb336..27d4cf6f3c72b 100644 --- a/ports/raspberrypi/common-hal/busio/SPI.h +++ b/ports/raspberrypi/common-hal/busio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_SPI_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_SPI_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -28,5 +27,3 @@ typedef struct { } busio_spi_obj_t; void reset_spi(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_SPI_H diff --git a/ports/raspberrypi/common-hal/busio/UART.h b/ports/raspberrypi/common-hal/busio/UART.h index 375928d9ff5d0..ca75235ddf879 100644 --- a/ports/raspberrypi/common-hal/busio/UART.h +++ b/ports/raspberrypi/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_UART_H +#pragma once #include "py/obj.h" #include "py/ringbuf.h" @@ -30,5 +29,3 @@ typedef struct { extern void reset_uart(void); extern void never_reset_uart(uint8_t num); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_BUSIO_UART_H diff --git a/ports/raspberrypi/common-hal/countio/Counter.h b/ports/raspberrypi/common-hal/countio/Counter.h index 49feee6a77a45..93b83e2c267d7 100644 --- a/ports/raspberrypi/common-hal/countio/Counter.h +++ b/ports/raspberrypi/common-hal/countio/Counter.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRRYPI_COMMON_HAL_COUNTIO_COUNTER_H -#define MICROPY_INCLUDED_RASPBERRRYPI_COMMON_HAL_COUNTIO_COUNTER_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -23,5 +22,3 @@ typedef struct { void counter_interrupt_handler(void); void reset_countio(void); - -#endif // MICROPY_INCLUDED_RASPBERRRYPI_COMMON_HAL_COUNTIO_COUNTER_H diff --git a/ports/raspberrypi/common-hal/digitalio/DigitalInOut.h b/ports/raspberrypi/common-hal/digitalio/DigitalInOut.h index e600b77ff147d..69520a92bff30 100644 --- a/ports/raspberrypi/common-hal/digitalio/DigitalInOut.h +++ b/ports/raspberrypi/common-hal/digitalio/DigitalInOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "py/obj.h" @@ -16,5 +15,3 @@ typedef struct { bool output; bool open_drain; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.h b/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.h index bd602544561f3..9293ecbdf227c 100644 --- a/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.h +++ b/ports/raspberrypi/common-hal/i2ctarget/I2CTarget.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_RPI_COMMON_HAL_I2C_TARGET_H #define MICROPY_INCLUDED_RPI_COMMON_HAL_I2C_TARGET_H diff --git a/ports/raspberrypi/common-hal/imagecapture/__init__.h b/ports/raspberrypi/common-hal/imagecapture/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/raspberrypi/common-hal/imagecapture/__init__.h +++ b/ports/raspberrypi/common-hal/imagecapture/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/raspberrypi/common-hal/memorymap/AddressRange.h b/ports/raspberrypi/common-hal/memorymap/AddressRange.h index 9807d26623eee..8f5d1fab26ce5 100644 --- a/ports/raspberrypi/common-hal/memorymap/AddressRange.h +++ b/ports/raspberrypi/common-hal/memorymap/AddressRange.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H +#pragma once #include "py/obj.h" @@ -25,5 +24,3 @@ typedef struct { size_t len; memorymap_rp2_section_t type; } addressmap_rp2_range_t; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MEMORYMAP_ADDRESSRANGE_H diff --git a/ports/raspberrypi/common-hal/microcontroller/Pin.h b/ports/raspberrypi/common-hal/microcontroller/Pin.h index c2a856d498a30..ce6e33a24a847 100644 --- a/ports/raspberrypi/common-hal/microcontroller/Pin.h +++ b/ports/raspberrypi/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include #include @@ -32,5 +31,3 @@ bool pin_number_is_free(uint8_t pin_number); extern bool cyw_ever_init; void reset_pin_number_cyw(uint8_t pin_number); #endif - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/raspberrypi/common-hal/microcontroller/Processor.h b/ports/raspberrypi/common-hal/microcontroller/Processor.h index 34a9cfc9e676c..31f89f58fd308 100644 --- a/ports/raspberrypi/common-hal/microcontroller/Processor.h +++ b/ports/raspberrypi/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #include "src/rp2_common/pico_unique_id/include/pico/unique_id.h" @@ -17,5 +16,3 @@ typedef struct { mp_obj_base_t base; // Stores no state currently. } mcu_processor_obj_t; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/raspberrypi/common-hal/microcontroller/__init__.h b/ports/raspberrypi/common-hal/microcontroller/__init__.h index 253c43e10a899..e9a7602bc040c 100644 --- a/ports/raspberrypi/common-hal/microcontroller/__init__.h +++ b/ports/raspberrypi/common-hal/microcontroller/__init__.h @@ -4,12 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER___INIT___H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER___INIT___H +#pragma once #include "src/rp2040/hardware_regs/include/hardware/platform_defs.h" #include "peripherals/pins.h" const mcu_pin_obj_t *mcu_get_pin_by_number(int); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_MICROCONTROLLER___INIT___H diff --git a/ports/raspberrypi/common-hal/nvm/ByteArray.h b/ports/raspberrypi/common-hal/nvm/ByteArray.h index f61dae99ab744..8eb7e7c00aeb5 100644 --- a/ports/raspberrypi/common-hal/nvm/ByteArray.h +++ b/ports/raspberrypi/common-hal/nvm/ByteArray.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_NVM_BYTEARRAY_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_NVM_BYTEARRAY_H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ typedef struct { uint8_t *start_address; uint32_t len; } nvm_bytearray_obj_t; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_NVM_BYTEARRAY_H diff --git a/ports/raspberrypi/common-hal/rgbmatrix/RGBMatrix.h b/ports/raspberrypi/common-hal/rgbmatrix/RGBMatrix.h index 0021692913222..56c32e5c24f8e 100644 --- a/ports/raspberrypi/common-hal/rgbmatrix/RGBMatrix.h +++ b/ports/raspberrypi/common-hal/rgbmatrix/RGBMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H +#pragma once #include "shared-module/rgbmatrix/RGBMatrix.h" @@ -13,5 +12,3 @@ void *common_hal_rgbmatrix_timer_allocate(rgbmatrix_rgbmatrix_obj_t *self); void common_hal_rgbmatrix_timer_enable(void *); void common_hal_rgbmatrix_timer_disable(void *); void common_hal_rgbmatrix_timer_free(void *); - -#endif diff --git a/ports/raspberrypi/common-hal/rotaryio/__init__.h b/ports/raspberrypi/common-hal/rotaryio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/raspberrypi/common-hal/rotaryio/__init__.h +++ b/ports/raspberrypi/common-hal/rotaryio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/raspberrypi/common-hal/rp2pio/StateMachine.h b/ports/raspberrypi/common-hal/rp2pio/StateMachine.h index feea321a4e92c..fcb86f783ac12 100644 --- a/ports/raspberrypi/common-hal/rp2pio/StateMachine.h +++ b/ports/raspberrypi/common-hal/rp2pio/StateMachine.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_RP2PIO_STATEMACHINE_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_RP2PIO_STATEMACHINE_H +#pragma once #include "py/obj.h" @@ -84,5 +83,3 @@ void rp2pio_statemachine_never_reset(PIO pio, int sm); uint8_t rp2pio_statemachine_find_pio(int program_size, int sm_count); extern const mp_obj_type_t rp2pio_statemachine_type; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_RP2PIO_STATEMACHINE_H diff --git a/ports/raspberrypi/common-hal/rtc/RTC.h b/ports/raspberrypi/common-hal/rtc/RTC.h index 8aba151a3297a..3e9072b0da2c4 100644 --- a/ports/raspberrypi/common-hal/rtc/RTC.h +++ b/ports/raspberrypi/common-hal/rtc/RTC.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_RTC_RTC_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_RTC_RTC_H +#pragma once extern void common_hal_rtc_init(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_RTC_RTC_H diff --git a/ports/raspberrypi/common-hal/watchdog/WatchDogTimer.h b/ports/raspberrypi/common-hal/watchdog/WatchDogTimer.h index 5999836e6e824..ea53104bcc51a 100644 --- a/ports/raspberrypi/common-hal/watchdog/WatchDogTimer.h +++ b/ports/raspberrypi/common-hal/watchdog/WatchDogTimer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H -#define MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H +#pragma once #include "py/obj.h" @@ -19,5 +18,3 @@ struct _watchdog_watchdogtimer_obj_t { mp_float_t timeout; watchdog_watchdogmode_t mode; }; - -#endif // MICROPY_INCLUDED_RASPBERRYPI_COMMON_HAL_WATCHDOG_WATCHDOGTIMER_H diff --git a/ports/raspberrypi/common-hal/wifi/Monitor.h b/ports/raspberrypi/common-hal/wifi/Monitor.h index 6e30ffcc23578..d2cbc318f46e8 100644 --- a/ports/raspberrypi/common-hal/wifi/Monitor.h +++ b/ports/raspberrypi/common-hal/wifi/Monitor.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H -#define MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H +#pragma once #include "py/obj.h" @@ -16,5 +15,3 @@ typedef struct { size_t lost; size_t queue_length; } wifi_monitor_obj_t; - -#endif // MICROPY_INCLUDED_ESPRESSIF_COMMON_HAL_WIFI_MONITOR_H diff --git a/ports/raspberrypi/cyw43_configport.h b/ports/raspberrypi/cyw43_configport.h index d0b05c590e015..62666bee42c23 100644 --- a/ports/raspberrypi/cyw43_configport.h +++ b/ports/raspberrypi/cyw43_configport.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2022 Damien P. George // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RP2_CYW43_CONFIGPORT_H -#define MICROPY_INCLUDED_RP2_CYW43_CONFIGPORT_H +#pragma once // The board-level config will be included here, so it can set some CYW43 values. #include "py/mpconfig.h" @@ -34,5 +33,3 @@ static inline void cyw43_yield(void) { } restore_interrupts(my_interrupts); } - -#endif // MICROPY_INCLUDED_RP2_CYW43_CONFIGPORT_H diff --git a/ports/raspberrypi/mpconfigport.h b/ports/raspberrypi/mpconfigport.h index 0ee15fa0ab0f9..b97286fe45e6d 100644 --- a/ports/raspberrypi/mpconfigport.h +++ b/ports/raspberrypi/mpconfigport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __INCLUDED_MPCONFIGPORT_H -#define __INCLUDED_MPCONFIGPORT_H +#pragma once #include "src/rp2040/hardware_regs/include/hardware/platform_defs.h" @@ -54,5 +53,3 @@ enum { enum_NUM_DMA_CHANNELS = NUM_DMA_CHANNELS, enum_NUM_PWM_SLICES = NUM_PWM_SLICES, }; - -#endif // __INCLUDED_MPCONFIGPORT_H diff --git a/ports/raspberrypi/mphalport.h b/ports/raspberrypi/mphalport.h index 2461318330c1d..a6b9dda4f50a6 100644 --- a/ports/raspberrypi/mphalport.h +++ b/ports/raspberrypi/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_MPHALPORT_H -#define MICROPY_INCLUDED_RASPBERRYPI_MPHALPORT_H +#pragma once #include "py/obj.h" @@ -26,5 +25,3 @@ void mp_hal_set_interrupt_char(int c); void mp_hal_disable_all_interrupts(void); void mp_hal_enable_all_interrupts(void); - -#endif // MICROPY_INCLUDED_RASPBERRYPI_MPHALPORT_H diff --git a/ports/raspberrypi/peripherals/pins.h b/ports/raspberrypi/peripherals/pins.h index be7788712e2b3..4aa15e8929f5a 100644 --- a/ports/raspberrypi/peripherals/pins.h +++ b/ports/raspberrypi/peripherals/pins.h @@ -7,8 +7,7 @@ // DO NOT include this file directly. Use shared-bindings/microcontroller/Pin.h instead to ensure // that all necessary includes are already included. -#ifndef MICROPY_INCLUDED_RASPBERRYPI_PERIPHERALS_PINS_H -#define MICROPY_INCLUDED_RASPBERRYPI_PERIPHERALS_PINS_H +#pragma once #include "py/obj.h" @@ -55,5 +54,3 @@ extern const mcu_pin_obj_t pin_CYW0; extern const mcu_pin_obj_t pin_CYW1; extern const mcu_pin_obj_t pin_CYW2; #endif - -#endif // MICROPY_INCLUDED_RASPBERRYPI_PERIPHERALS_PINS_H diff --git a/ports/raspberrypi/qstrdefsport.h b/ports/raspberrypi/qstrdefsport.h index 57b5815583d4e..b8cd1fd9af908 100644 --- a/ports/raspberrypi/qstrdefsport.h +++ b/ports/raspberrypi/qstrdefsport.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port diff --git a/ports/raspberrypi/supervisor/internal_flash.h b/ports/raspberrypi/supervisor/internal_flash.h index 1c1a489360425..01acbf02b4de4 100644 --- a/ports/raspberrypi/supervisor/internal_flash.h +++ b/ports/raspberrypi/supervisor/internal_flash.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2021 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_RASPBERRYPI_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_RASPBERRYPI_INTERNAL_FLASH_H +#pragma once #include @@ -14,5 +13,3 @@ // #define INTERNAL_FLASH_SYSTICK_MASK (0x1ff) // 512ms // #define INTERNAL_FLASH_IDLE_TICK(tick) (((tick) & INTERNAL_FLASH_SYSTICK_MASK) == 2) - -#endif // MICROPY_INCLUDED_RASPBERRYPI_INTERNAL_FLASH_H diff --git a/ports/renode/boards/renode_cortex_m0plus/mpconfigboard.h b/ports/renode/boards/renode_cortex_m0plus/mpconfigboard.h index 3874d96e4d1e4..b09852e508557 100644 --- a/ports/renode/boards/renode_cortex_m0plus/mpconfigboard.h +++ b/ports/renode/boards/renode_cortex_m0plus/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define MICROPY_HW_BOARD_NAME "Renode Cortex-M0+" #define MICROPY_HW_MCU_NAME "cortex-m0+" diff --git a/ports/renode/qstrdefsport.h b/ports/renode/qstrdefsport.h index 57b5815583d4e..b8cd1fd9af908 100644 --- a/ports/renode/qstrdefsport.h +++ b/ports/renode/qstrdefsport.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port diff --git a/ports/stm/background.h b/ports/stm/background.h index 1fbee93a801c0..647d1442f442a 100644 --- a/ports/stm/background.h +++ b/ports/stm/background.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_STM32_BACKGROUND_H #define MICROPY_INCLUDED_STM32_BACKGROUND_H diff --git a/ports/stm/boards/espruino_pico/mpconfigboard.h b/ports/stm/boards/espruino_pico/mpconfigboard.h index 2433cffdcee12..6c30f31835588 100644 --- a/ports/stm/boards/espruino_pico/mpconfigboard.h +++ b/ports/stm/boards/espruino_pico/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espruino Pico" diff --git a/ports/stm/boards/espruino_wifi/mpconfigboard.h b/ports/stm/boards/espruino_wifi/mpconfigboard.h index a0ae336d7623a..00ca46a18c680 100644 --- a/ports/stm/boards/espruino_wifi/mpconfigboard.h +++ b/ports/stm/boards/espruino_wifi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Espruino Wifi" diff --git a/ports/stm/boards/feather_stm32f405_express/mpconfigboard.h b/ports/stm/boards/feather_stm32f405_express/mpconfigboard.h index c0f18fcd135a1..9ca27089178a3 100644 --- a/ports/stm/boards/feather_stm32f405_express/mpconfigboard.h +++ b/ports/stm/boards/feather_stm32f405_express/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Adafruit Feather STM32F405 Express" diff --git a/ports/stm/boards/meowbit_v121/mpconfigboard.h b/ports/stm/boards/meowbit_v121/mpconfigboard.h index dbc1a994babad..64ebbbf42799b 100644 --- a/ports/stm/boards/meowbit_v121/mpconfigboard.h +++ b/ports/stm/boards/meowbit_v121/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "MEOWBIT" diff --git a/ports/stm/boards/nucleo_f446re/mpconfigboard.h b/ports/stm/boards/nucleo_f446re/mpconfigboard.h index f4ccc4e27c9a3..0914cacc871f4 100644 --- a/ports/stm/boards/nucleo_f446re/mpconfigboard.h +++ b/ports/stm/boards/nucleo_f446re/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "NUCLEO F446RE" diff --git a/ports/stm/boards/nucleo_f746zg/mpconfigboard.h b/ports/stm/boards/nucleo_f746zg/mpconfigboard.h index 9037b61cb5218..7943c4bf75ea2 100644 --- a/ports/stm/boards/nucleo_f746zg/mpconfigboard.h +++ b/ports/stm/boards/nucleo_f746zg/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "NUCLEO STM32F746" diff --git a/ports/stm/boards/nucleo_f767zi/mpconfigboard.h b/ports/stm/boards/nucleo_f767zi/mpconfigboard.h index 80bbeef0ac4de..eced675ed9a61 100644 --- a/ports/stm/boards/nucleo_f767zi/mpconfigboard.h +++ b/ports/stm/boards/nucleo_f767zi/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "NUCLEO STM32F767" diff --git a/ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h b/ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h index 7233d14ef80a9..3a91cc7b6cb4e 100644 --- a/ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h +++ b/ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "NUCLEO STM32H743" diff --git a/ports/stm/boards/openmv_h7/mpconfigboard.h b/ports/stm/boards/openmv_h7/mpconfigboard.h index 0fa1abae8761d..0d8d96c60c589 100644 --- a/ports/stm/boards/openmv_h7/mpconfigboard.h +++ b/ports/stm/boards/openmv_h7/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "OPENMV-H7 R1" diff --git a/ports/stm/boards/pyb_nano_v2/mpconfigboard.h b/ports/stm/boards/pyb_nano_v2/mpconfigboard.h index c11d23a7203f7..4f0cafc26f963 100644 --- a/ports/stm/boards/pyb_nano_v2/mpconfigboard.h +++ b/ports/stm/boards/pyb_nano_v2/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "PYB LR Nano V2" diff --git a/ports/stm/boards/pyboard_v11/mpconfigboard.h b/ports/stm/boards/pyboard_v11/mpconfigboard.h index 64ba578531684..51df649ed634f 100644 --- a/ports/stm/boards/pyboard_v11/mpconfigboard.h +++ b/ports/stm/boards/pyboard_v11/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "PyboardV1_1" diff --git a/ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.h b/ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.h index 662dd2f967724..07aa8c92e78b9 100644 --- a/ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.h +++ b/ports/stm/boards/sparkfun_stm32_thing_plus/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "SparkFun Thing Plus - STM32" diff --git a/ports/stm/boards/sparkfun_stm32f405_micromod/mpconfigboard.h b/ports/stm/boards/sparkfun_stm32f405_micromod/mpconfigboard.h index 6e9c56237ffec..f2de573ab12e1 100644 --- a/ports/stm/boards/sparkfun_stm32f405_micromod/mpconfigboard.h +++ b/ports/stm/boards/sparkfun_stm32f405_micromod/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "SparkFun STM32 MicroMod Processor" diff --git a/ports/stm/boards/stm32f411ce_blackpill/mpconfigboard.h b/ports/stm/boards/stm32f411ce_blackpill/mpconfigboard.h index 9a871e6591950..cc2fb3db68b42 100644 --- a/ports/stm/boards/stm32f411ce_blackpill/mpconfigboard.h +++ b/ports/stm/boards/stm32f411ce_blackpill/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "stm32f411ce-blackpill" diff --git a/ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h b/ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h index 9ea278d8382d9..be2423af8891b 100644 --- a/ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h +++ b/ports/stm/boards/stm32f411ce_blackpill_with_flash/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "stm32f411ce-blackpill-with-flash" diff --git a/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.h b/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.h index aa8023cbde8eb..c9f477615538b 100644 --- a/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.h +++ b/ports/stm/boards/stm32f411ve_discovery/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "STM32F411E_DISCO" diff --git a/ports/stm/boards/stm32f412zg_discovery/mpconfigboard.h b/ports/stm/boards/stm32f412zg_discovery/mpconfigboard.h index 1a425a3729ee6..e771532437f6b 100644 --- a/ports/stm/boards/stm32f412zg_discovery/mpconfigboard.h +++ b/ports/stm/boards/stm32f412zg_discovery/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "STM32F412G_DISCO" diff --git a/ports/stm/boards/stm32f4_discovery/mpconfigboard.h b/ports/stm/boards/stm32f4_discovery/mpconfigboard.h index 9cf7c5af75263..2df256d6ae291 100644 --- a/ports/stm/boards/stm32f4_discovery/mpconfigboard.h +++ b/ports/stm/boards/stm32f4_discovery/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "STM32F4_DISCO" diff --git a/ports/stm/boards/stm32f746g_discovery/mpconfigboard.h b/ports/stm/boards/stm32f746g_discovery/mpconfigboard.h index 567bbad77ae36..f61bb4b80c423 100644 --- a/ports/stm/boards/stm32f746g_discovery/mpconfigboard.h +++ b/ports/stm/boards/stm32f746g_discovery/mpconfigboard.h @@ -5,6 +5,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "ST STM32F746G Discovery" diff --git a/ports/stm/boards/swan_r5/board.h b/ports/stm/boards/swan_r5/board.h index 92ab61ba361ad..ce199359ba496 100644 --- a/ports/stm/boards/swan_r5/board.h +++ b/ports/stm/boards/swan_r5/board.h @@ -4,13 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef _BOARDS_SWAN_R5_BOARD_H_ -#define _BOARDS_SWAN_R5_BOARD_H_ +#pragma once #include "common-hal/digitalio/DigitalInOut.h" extern digitalio_digitalinout_obj_t power_pin; extern digitalio_digitalinout_obj_t discharge_pin; - - -#endif // _BOARDS_SWAN_R5_BOARD_H_ diff --git a/ports/stm/boards/swan_r5/mpconfigboard.h b/ports/stm/boards/swan_r5/mpconfigboard.h index 44bd071a3130f..ecfb8bcd64a8d 100644 --- a/ports/stm/boards/swan_r5/mpconfigboard.h +++ b/ports/stm/boards/swan_r5/mpconfigboard.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Micropython setup #define MICROPY_HW_BOARD_NAME "Swan R5" diff --git a/ports/stm/boards/thunderpack_v11/mpconfigboard.h b/ports/stm/boards/thunderpack_v11/mpconfigboard.h index f4f147d865fbc..c2369f71c4ad7 100644 --- a/ports/stm/boards/thunderpack_v11/mpconfigboard.h +++ b/ports/stm/boards/thunderpack_v11/mpconfigboard.h @@ -3,6 +3,8 @@ // SPDX-FileCopyrightText: Copyright (c) 2019 Lucian Copeland for Adafruit Industries // // SPDX-License-Identifier: MIT + +#pragma once #define MICROPY_HW_BOARD_NAME "THUNDERPACK_v11" #define MICROPY_HW_MCU_NAME "STM32F411CE" diff --git a/ports/stm/boards/thunderpack_v12/mpconfigboard.h b/ports/stm/boards/thunderpack_v12/mpconfigboard.h index 670d4987f7242..eea7a91e5c47e 100644 --- a/ports/stm/boards/thunderpack_v12/mpconfigboard.h +++ b/ports/stm/boards/thunderpack_v12/mpconfigboard.h @@ -3,6 +3,9 @@ // SPDX-FileCopyrightText: Copyright (c) 2019 Lucian Copeland for Adafruit Industries // // SPDX-License-Identifier: MIT + +#pragma once + #define MICROPY_HW_BOARD_NAME "THUNDERPACK_v12" #define MICROPY_HW_MCU_NAME "STM32F411CE" diff --git a/ports/stm/common-hal/alarm/coproc/CoprocAlarm.h b/ports/stm/common-hal/alarm/coproc/CoprocAlarm.h index a7f2dfca2b672..f8921574865aa 100644 --- a/ports/stm/common-hal/alarm/coproc/CoprocAlarm.h +++ b/ports/stm/common-hal/alarm/coproc/CoprocAlarm.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // empty file diff --git a/ports/stm/common-hal/analogio/AnalogIn.h b/ports/stm/common-hal/analogio/AnalogIn.h index f01399c17a402..1c0f48c5145a5 100644 --- a/ports/stm/common-hal/analogio/AnalogIn.h +++ b/ports/stm/common-hal/analogio/AnalogIn.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -24,5 +23,3 @@ static inline uint8_t stm32_adc_units(uint8_t adc_packed) { static inline uint8_t stm32_adc_channel(uint8_t adc_packed) { return adc_packed & 0x1f; } - -#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_ANALOGIO_ANALOGIN_H diff --git a/ports/stm/common-hal/analogio/AnalogOut.h b/ports/stm/common-hal/analogio/AnalogOut.h index 3c81e34c541b3..6a8fc2720bf31 100644 --- a/ports/stm/common-hal/analogio/AnalogOut.h +++ b/ports/stm/common-hal/analogio/AnalogOut.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_ANALOGIO_ANALOGOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -29,5 +28,3 @@ typedef struct { } analogio_analogout_obj_t; void analogout_reset(void); - -#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_ANALOGIO_ANALOGOUT_H diff --git a/ports/stm/common-hal/audiobusio/I2SOut.h b/ports/stm/common-hal/audiobusio/I2SOut.h index c14901730fc88..4426339c3fc52 100644 --- a/ports/stm/common-hal/audiobusio/I2SOut.h +++ b/ports/stm/common-hal/audiobusio/I2SOut.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // Although IS2Out is not enabled on the STM32L4 family, this file is still required for the build to pass diff --git a/ports/stm/common-hal/audiobusio/MEMS_Audio.h b/ports/stm/common-hal/audiobusio/MEMS_Audio.h index 075b9c87298e4..6fcedde422405 100644 --- a/ports/stm/common-hal/audiobusio/MEMS_Audio.h +++ b/ports/stm/common-hal/audiobusio/MEMS_Audio.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef _MEMS_AUDIO_H_ -#define _MEMS_AUDIO_H_ +#pragma once #include #include @@ -133,6 +132,3 @@ mems_audio_err_t mems_audio_stop(MemsAudio *audio); #ifdef __cplusplus } #endif - - -#endif // _MEMS_AUDIO_H_ diff --git a/ports/stm/common-hal/audiobusio/MEMS_Audio_ll.h b/ports/stm/common-hal/audiobusio/MEMS_Audio_ll.h index a11e579407f61..fa8fbe774eb5b 100644 --- a/ports/stm/common-hal/audiobusio/MEMS_Audio_ll.h +++ b/ports/stm/common-hal/audiobusio/MEMS_Audio_ll.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT -#ifndef _MEMS_AUDIO_LL_H_ -#define _MEMS_AUDIO_LL_H_ +#pragma once #include "MEMS_Audio.h" @@ -52,6 +51,3 @@ mems_audio_err_t mems_audio_ll_stop(MemsAudio *audio); #ifdef __cplusplus } #endif - - -#endif // _MEMS_AUDIO_LL_H_ diff --git a/ports/stm/common-hal/audiobusio/MEMS_Audio_ll_stm32l4.h b/ports/stm/common-hal/audiobusio/MEMS_Audio_ll_stm32l4.h index 37478675e74ff..b7f341254505e 100644 --- a/ports/stm/common-hal/audiobusio/MEMS_Audio_ll_stm32l4.h +++ b/ports/stm/common-hal/audiobusio/MEMS_Audio_ll_stm32l4.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT -#ifndef _MEMS_AUDIO_LL_STM32L4_H_ -#define _MEMS_AUDIO_LL_STM32L4_H_ +#pragma once #include #include @@ -186,6 +185,3 @@ typedef enum mems_audio_err_stm32l4_t { #ifdef __cplusplus } #endif - - -#endif // _MEMS_AUDIO_LL_STM32L4_H_ diff --git a/ports/stm/common-hal/audiobusio/OpenPDMFilter.h b/ports/stm/common-hal/audiobusio/OpenPDMFilter.h index 3d80467962311..3ee3ee0a3da72 100644 --- a/ports/stm/common-hal/audiobusio/OpenPDMFilter.h +++ b/ports/stm/common-hal/audiobusio/OpenPDMFilter.h @@ -34,8 +34,7 @@ /* Define to prevent recursive inclusion -------------------------------------*/ -#ifndef __OPENPDMFILTER_H -#define __OPENPDMFILTER_H +#pragma once #ifdef __cplusplus extern "C" { @@ -113,6 +112,5 @@ int Open_PDM_Filter_128(uint8_t *data, int16_t *data_out, uint16_t mic_gain, TPD } #endif -#endif // __OPENPDMFILTER_H /************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/ diff --git a/ports/stm/common-hal/audiobusio/PDMIn.h b/ports/stm/common-hal/audiobusio/PDMIn.h index 0d7eadbfeb655..b4064c64813ec 100644 --- a/ports/stm/common-hal/audiobusio/PDMIn.h +++ b/ports/stm/common-hal/audiobusio/PDMIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H -#define MICROPY_INCLUDED_STM_COMMON_HAL_AUDIOBUSIO_AUDIOOUT_H +#pragma once #include #include "py/obj.h" @@ -29,6 +28,3 @@ typedef struct { */ volatile bool recording_complete; } audiobusio_pdmin_obj_t; - - -#endif diff --git a/ports/stm/common-hal/busio/I2C.h b/ports/stm/common-hal/busio/I2C.h index 1eee336bceda7..ff78ddb35af38 100644 --- a/ports/stm/common-hal/busio/I2C.h +++ b/ports/stm/common-hal/busio/I2C.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_I2C_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_I2C_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -25,5 +24,3 @@ typedef struct { } busio_i2c_obj_t; void i2c_reset(void); - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_I2C_H diff --git a/ports/stm/common-hal/busio/SPI.h b/ports/stm/common-hal/busio/SPI.h index 2b215e97f2947..026623aeacc2b 100644 --- a/ports/stm/common-hal/busio/SPI.h +++ b/ports/stm/common-hal/busio/SPI.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SPI_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SPI_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -31,5 +30,3 @@ typedef struct { } busio_spi_obj_t; void spi_reset(void); - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SPI_H diff --git a/ports/stm/common-hal/busio/UART.h b/ports/stm/common-hal/busio/UART.h index d26edadfe603e..5df7d457488dc 100644 --- a/ports/stm/common-hal/busio/UART.h +++ b/ports/stm/common-hal/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_UART_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_UART_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "peripherals/periph.h" @@ -37,5 +36,3 @@ typedef struct { } busio_uart_obj_t; void uart_reset(void); - -#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_UART_H diff --git a/ports/stm/common-hal/digitalio/DigitalInOut.h b/ports/stm/common-hal/digitalio/DigitalInOut.h index 3856a5fb87483..f58b23832b190 100644 --- a/ports/stm/common-hal/digitalio/DigitalInOut.h +++ b/ports/stm/common-hal/digitalio/DigitalInOut.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -14,5 +13,3 @@ typedef struct { mp_obj_base_t base; const mcu_pin_obj_t *pin; } digitalio_digitalinout_obj_t; - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_DIGITALIO_DIGITALINOUT_H diff --git a/ports/stm/common-hal/microcontroller/Pin.h b/ports/stm/common-hal/microcontroller/Pin.h index ba090631b0200..a1d347f26da23 100644 --- a/ports/stm/common-hal/microcontroller/Pin.h +++ b/ports/stm/common-hal/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PIN_H +#pragma once #include "py/mphal.h" @@ -20,5 +19,3 @@ bool pin_number_is_free(uint8_t pin_port, uint8_t pin_number); void never_reset_pin_number(uint8_t pin_port, uint8_t pin_number); GPIO_TypeDef *pin_port(uint8_t pin_port); uint16_t pin_mask(uint8_t pin_number); - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PIN_H diff --git a/ports/stm/common-hal/microcontroller/Processor.h b/ports/stm/common-hal/microcontroller/Processor.h index 3f973b5151e4c..aab7727550a9d 100644 --- a/ports/stm/common-hal/microcontroller/Processor.h +++ b/ports/stm/common-hal/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H +#pragma once #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 12 @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; // Stores no state currently. } mcu_processor_obj_t; - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H diff --git a/ports/stm/common-hal/nvm/ByteArray.h b/ports/stm/common-hal/nvm/ByteArray.h index 4566d1de8cb0c..7c90951dc31ee 100644 --- a/ports/stm/common-hal/nvm/ByteArray.h +++ b/ports/stm/common-hal/nvm/ByteArray.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_NVM_BYTEARRAY_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_NVM_BYTEARRAY_H +#pragma once #include "py/obj.h" @@ -21,5 +20,3 @@ typedef struct { uint8_t *start_address; uint32_t len; } nvm_bytearray_obj_t; - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_NVM_BYTEARRAY_H diff --git a/ports/stm/common-hal/rgbmatrix/RGBMatrix.h b/ports/stm/common-hal/rgbmatrix/RGBMatrix.h index 8c38dece7142c..56c32e5c24f8e 100644 --- a/ports/stm/common-hal/rgbmatrix/RGBMatrix.h +++ b/ports/stm/common-hal/rgbmatrix/RGBMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM_COMMON_HAL_RGBMATRIX_RGBMATRIX_H -#define MICROPY_INCLUDED_STM_COMMON_HAL_RGBMATRIX_RGBMATRIX_H +#pragma once #include "shared-module/rgbmatrix/RGBMatrix.h" @@ -13,5 +12,3 @@ void *common_hal_rgbmatrix_timer_allocate(rgbmatrix_rgbmatrix_obj_t *self); void common_hal_rgbmatrix_timer_enable(void *); void common_hal_rgbmatrix_timer_disable(void *); void common_hal_rgbmatrix_timer_free(void *); - -#endif diff --git a/ports/stm/common-hal/rgbmatrix/__init__.h b/ports/stm/common-hal/rgbmatrix/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/stm/common-hal/rgbmatrix/__init__.h +++ b/ports/stm/common-hal/rgbmatrix/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/stm/common-hal/rtc/RTC.h b/ports/stm/common-hal/rtc/RTC.h index b864ef46672c6..b6e709bed4fc1 100644 --- a/ports/stm/common-hal/rtc/RTC.h +++ b/ports/stm/common-hal/rtc/RTC.h @@ -4,10 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM_COMMON_HAL_RTC_RTC_H -#define MICROPY_INCLUDED_STM_COMMON_HAL_RTC_RTC_H +#pragma once extern void rtc_init(void); extern void rtc_reset(void); - -#endif // MICROPY_INCLUDED_STM_COMMON_HAL_RTC_RTC_H diff --git a/ports/stm/common-hal/rtc/__init__.h b/ports/stm/common-hal/rtc/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/stm/common-hal/rtc/__init__.h +++ b/ports/stm/common-hal/rtc/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/stm/common-hal/sdioio/SDCard.h b/ports/stm/common-hal/sdioio/SDCard.h index 3afd77a48368c..8f4d945303382 100644 --- a/ports/stm/common-hal/sdioio/SDCard.h +++ b/ports/stm/common-hal/sdioio/SDCard.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SDIO_H -#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SDIO_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -26,5 +25,3 @@ typedef struct { } sdioio_sdcard_obj_t; void sdioio_reset(void); - -#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SDIO_H diff --git a/ports/stm/common-hal/sdioio/__init__.h b/ports/stm/common-hal/sdioio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/ports/stm/common-hal/sdioio/__init__.h +++ b/ports/stm/common-hal/sdioio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/ports/stm/mpconfigport.h b/ports/stm/mpconfigport.h index fda32328405bb..ed36b49ffb92f 100644 --- a/ports/stm/mpconfigport.h +++ b/ports/stm/mpconfigport.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef STM32_MPCONFIGPORT_H__ -#define STM32_MPCONFIGPORT_H__ +#pragma once #include @@ -39,5 +38,3 @@ extern uint8_t _ld_default_stack_size; #define MAX_UART 10 #define MAX_I2C 4 #define MAX_SPI 6 - -#endif // __INCLUDED_MPCONFIGPORT_H diff --git a/ports/stm/mpconfigport_nanbox.h b/ports/stm/mpconfigport_nanbox.h index 560b52133badd..164850112e01f 100644 --- a/ports/stm/mpconfigport_nanbox.h +++ b/ports/stm/mpconfigport_nanbox.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + // select nan-boxing object model #define MICROPY_OBJ_REPR (MICROPY_OBJ_REPR_D) diff --git a/ports/stm/mphalport.h b/ports/stm/mphalport.h index 619155dacc442..f9fb0bf272381 100644 --- a/ports/stm/mphalport.h +++ b/ports/stm/mphalport.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_MPHALPORT_H -#define MICROPY_INCLUDED_STM32_MPHALPORT_H +#pragma once #include "py/obj.h" @@ -27,5 +26,3 @@ void mp_hal_set_interrupt_char(int c); void mp_hal_disable_all_interrupts(void); void mp_hal_enable_all_interrupts(void); - -#endif // MICROPY_INCLUDED_STM32_MPHALPORT_H diff --git a/ports/stm/peripherals/clocks.h b/ports/stm/peripherals/clocks.h index 0da7e9fe1a63c..98bd9f28b447d 100644 --- a/ports/stm/peripherals/clocks.h +++ b/ports/stm/peripherals/clocks.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + void stm32_peripherals_clocks_init(void); diff --git a/ports/stm/peripherals/exti.h b/ports/stm/peripherals/exti.h index 47583bb355206..94b62f1768e96 100644 --- a/ports/stm/peripherals/exti.h +++ b/ports/stm/peripherals/exti.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __MICROPY_INCLUDED_STM32_PERIPHERALS_EXTI_H__ -#define __MICROPY_INCLUDED_STM32_PERIPHERALS_EXTI_H__ +#pragma once #include STM32_HAL_H @@ -21,5 +20,3 @@ void stm_peripherals_exti_disable(uint8_t num); void stm_peripherals_exti_set_callback(void (*callback)(uint8_t num), uint8_t number); void stm_peripherals_exti_free(uint8_t num); IRQn_Type stm_peripherals_exti_get_irq(uint8_t num); - -#endif // __MICROPY_INCLUDED_STM32_PERIPHERALS_EXTI_H__ diff --git a/ports/stm/peripherals/gpio.h b/ports/stm/peripherals/gpio.h index c7d9267026230..59b2a6fb30808 100644 --- a/ports/stm/peripherals/gpio.h +++ b/ports/stm/peripherals/gpio.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + void stm32_peripherals_gpio_init(void); diff --git a/ports/stm/peripherals/periph.h b/ports/stm/peripherals/periph.h index fbe6ec97c6450..438db7938672e 100644 --- a/ports/stm/peripherals/periph.h +++ b/ports/stm/peripherals/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __MICROPY_INCLUDED_STM32_PERIPHERALS_PERIPH_H__ -#define __MICROPY_INCLUDED_STM32_PERIPHERALS_PERIPH_H__ +#pragma once #include #include @@ -131,5 +130,3 @@ typedef struct { #define HAS_BASIC_TIM 0 #include "stm32h7/stm32h743xx/periph.h" #endif - -#endif // __MICROPY_INCLUDED_STM32_PERIPHERALS_PERIPH_H__ diff --git a/ports/stm/peripherals/pins.h b/ports/stm/peripherals/pins.h index 5119a6fc51f36..999f8172d9713 100644 --- a/ports/stm/peripherals/pins.h +++ b/ports/stm/peripherals/pins.h @@ -7,8 +7,7 @@ // DO NOT include this file directly. Use shared-bindings/microcontroller/Pin.h instead to ensure // that all necessary includes are already included. -#ifndef __MICROPY_INCLUDED_STM32_PERIPHERALS_PINS_H__ -#define __MICROPY_INCLUDED_STM32_PERIPHERALS_PINS_H__ +#pragma once #include #include @@ -93,5 +92,3 @@ extern const mp_obj_type_t mcu_pin_type; #ifdef STM32H743xx #include "stm32h7/stm32h743xx/pins.h" #endif - -#endif // __MICROPY_INCLUDED_STM32_PERIPHERALS_PINS_H__ diff --git a/ports/stm/peripherals/rtc.h b/ports/stm/peripherals/rtc.h index 05410cabfbcf6..9d47ece8982c0 100644 --- a/ports/stm/peripherals/rtc.h +++ b/ports/stm/peripherals/rtc.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __MICROPY_INCLUDED_STM32_PERIPHERALS_RTC_H__ -#define __MICROPY_INCLUDED_STM32_PERIPHERALS_RTC_H__ +#pragma once #include #include @@ -34,5 +33,3 @@ typedef struct _timeutils_struct_time_t timeutils_struct_time_t; void stm32_peripherals_rtc_get_time(timeutils_struct_time_t *tm); void stm32_peripherals_rtc_set_time(timeutils_struct_time_t *tm); #endif - -#endif // __MICROPY_INCLUDED_STM32_PERIPHERALS_RTC_H__ diff --git a/ports/stm/peripherals/stm32f4/stm32f401xe/clocks.h b/ports/stm/peripherals/stm32f4/stm32f401xe/clocks.h index 4fa9182b306a1..0e2e30bcba9b8 100644 --- a/ports/stm/peripherals/stm32f4/stm32f401xe/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f401xe/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F401 diff --git a/ports/stm/peripherals/stm32f4/stm32f401xe/periph.h b/ports/stm/peripherals/stm32f4/stm32f401xe/periph.h index 7ef46999c8c98..6aa77eeb8abed 100644 --- a/ports/stm/peripherals/stm32f4/stm32f401xe/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f401xe/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[3]; @@ -33,5 +32,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[6]; #define TIM_PIN_ARRAY_LEN 44 extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f401xe/pins.h b/ports/stm/peripherals/stm32f4/stm32f401xe/pins.h index d2f24124b9d6e..fa26655d64f67 100644 --- a/ports/stm/peripherals/stm32f4/stm32f401xe/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f401xe/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PINS_H +#pragma once // Pins in datasheet order: DocID026289 Rev 7 page 38. LQFP100 only // pg 38 @@ -96,6 +95,3 @@ extern const mcu_pin_obj_t pin_PB08; extern const mcu_pin_obj_t pin_PB09; extern const mcu_pin_obj_t pin_PE00; extern const mcu_pin_obj_t pin_PE01; - - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F401XE_PINS_H diff --git a/ports/stm/peripherals/stm32f4/stm32f405xx/clocks.h b/ports/stm/peripherals/stm32f4/stm32f405xx/clocks.h index e2de28fda9d23..85d1a766ed1b1 100644 --- a/ports/stm/peripherals/stm32f4/stm32f405xx/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f405xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F405 diff --git a/ports/stm/peripherals/stm32f4/stm32f405xx/periph.h b/ports/stm/peripherals/stm32f4/stm32f405xx/periph.h index c2cfb23b97308..0ddfdd4553498 100644 --- a/ports/stm/peripherals/stm32f4/stm32f405xx/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f405xx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F405XX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F405XX_PERIPH_H +#pragma once // I2C #define I2C_BANK_ARRAY_LEN 3 @@ -56,6 +55,3 @@ extern CAN_TypeDef *mcu_can_banks[2]; extern const mcu_periph_obj_t mcu_can_tx_list[6]; extern const mcu_periph_obj_t mcu_can_rx_list[6]; - - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F405XX_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f405xx/pins.h b/ports/stm/peripherals/stm32f4/stm32f405xx/pins.h index 5ec131b5ea2ec..76316b77a4aa6 100644 --- a/ports/stm/peripherals/stm32f4/stm32f405xx/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f405xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F405XX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F405XX_PINS_H +#pragma once extern const mcu_pin_obj_t pin_PA00; extern const mcu_pin_obj_t pin_PA01; @@ -147,5 +146,3 @@ extern const mcu_pin_obj_t pin_PI08; extern const mcu_pin_obj_t pin_PI09; extern const mcu_pin_obj_t pin_PI10; extern const mcu_pin_obj_t pin_PI11; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F405XX_PINS_H diff --git a/ports/stm/peripherals/stm32f4/stm32f407xx/clocks.h b/ports/stm/peripherals/stm32f4/stm32f407xx/clocks.h index cb25b194357f8..98464c4bc5ba2 100644 --- a/ports/stm/peripherals/stm32f4/stm32f407xx/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f407xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F407 diff --git a/ports/stm/peripherals/stm32f4/stm32f407xx/periph.h b/ports/stm/peripherals/stm32f4/stm32f407xx/periph.h index 7259cdeb695aa..0ddfdd4553498 100644 --- a/ports/stm/peripherals/stm32f4/stm32f407xx/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f407xx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F407XX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F407XX_PERIPH_H +#pragma once // I2C #define I2C_BANK_ARRAY_LEN 3 @@ -56,6 +55,3 @@ extern CAN_TypeDef *mcu_can_banks[2]; extern const mcu_periph_obj_t mcu_can_tx_list[6]; extern const mcu_periph_obj_t mcu_can_rx_list[6]; - - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F407XX_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f407xx/pins.h b/ports/stm/peripherals/stm32f4/stm32f407xx/pins.h index 56915accd388e..76316b77a4aa6 100644 --- a/ports/stm/peripherals/stm32f4/stm32f407xx/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f407xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F407XX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F407XX_PINS_H +#pragma once extern const mcu_pin_obj_t pin_PA00; extern const mcu_pin_obj_t pin_PA01; @@ -147,5 +146,3 @@ extern const mcu_pin_obj_t pin_PI08; extern const mcu_pin_obj_t pin_PI09; extern const mcu_pin_obj_t pin_PI10; extern const mcu_pin_obj_t pin_PI11; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F407XX_PINS_H diff --git a/ports/stm/peripherals/stm32f4/stm32f411xe/clocks.h b/ports/stm/peripherals/stm32f4/stm32f411xe/clocks.h index d9c88a4b465fc..931a9e5a72a91 100644 --- a/ports/stm/peripherals/stm32f4/stm32f411xe/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f411xe/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F411 diff --git a/ports/stm/peripherals/stm32f4/stm32f411xe/periph.h b/ports/stm/peripherals/stm32f4/stm32f411xe/periph.h index 81e833fc07a23..7bc08c1d16bb4 100644 --- a/ports/stm/peripherals/stm32f4/stm32f411xe/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f411xe/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F411XE_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F411XE_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[3]; @@ -33,5 +32,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[7]; #define TIM_PIN_ARRAY_LEN 44 extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F411XE_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f411xe/pins.h b/ports/stm/peripherals/stm32f4/stm32f411xe/pins.h index 74cb6c93ca0cd..fa26655d64f67 100644 --- a/ports/stm/peripherals/stm32f4/stm32f411xe/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f411xe/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F411XE_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F411XE_PINS_H +#pragma once // Pins in datasheet order: DocID026289 Rev 7 page 38. LQFP100 only // pg 38 @@ -96,6 +95,3 @@ extern const mcu_pin_obj_t pin_PB08; extern const mcu_pin_obj_t pin_PB09; extern const mcu_pin_obj_t pin_PE00; extern const mcu_pin_obj_t pin_PE01; - - -#endif // MICROPY_INCLUDED_STM32F4_PERIPHERALS_STM32F411VE_PINS_H diff --git a/ports/stm/peripherals/stm32f4/stm32f412cx/clocks.h b/ports/stm/peripherals/stm32f4/stm32f412cx/clocks.h index f58986c2ee088..4d97ca27f7c84 100644 --- a/ports/stm/peripherals/stm32f4/stm32f412cx/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f412cx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F412Cx diff --git a/ports/stm/peripherals/stm32f4/stm32f412cx/periph.h b/ports/stm/peripherals/stm32f4/stm32f412cx/periph.h index 8c860ea80950b..3d1d361181b3c 100644 --- a/ports/stm/peripherals/stm32f4/stm32f412cx/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f412cx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412CX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412CX_PERIPH_H +#pragma once // I2C #define I2C_BANK_ARRAY_LEN 3 @@ -41,5 +40,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[UART_RX_ARRAY_LEN]; #define TIM_PIN_ARRAY_LEN 34 extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412CX_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f412cx/pins.h b/ports/stm/peripherals/stm32f4/stm32f412cx/pins.h index ef65b0e1094ce..002f5e6d075ba 100644 --- a/ports/stm/peripherals/stm32f4/stm32f412cx/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f412cx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412CX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412CX_PINS_H +#pragma once // pg 50 extern const mcu_pin_obj_t pin_PC13; @@ -58,5 +57,3 @@ extern const mcu_pin_obj_t pin_PB06; extern const mcu_pin_obj_t pin_PB07; extern const mcu_pin_obj_t pin_PB08; extern const mcu_pin_obj_t pin_PB09; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412CX_PINS_H diff --git a/ports/stm/peripherals/stm32f4/stm32f412zx/clocks.h b/ports/stm/peripherals/stm32f4/stm32f412zx/clocks.h index 8e7497be48852..e4420fbbeb76d 100644 --- a/ports/stm/peripherals/stm32f4/stm32f412zx/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f412zx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F412 diff --git a/ports/stm/peripherals/stm32f4/stm32f412zx/periph.h b/ports/stm/peripherals/stm32f4/stm32f412zx/periph.h index 66209db5fa977..6fc508d5ab3e5 100644 --- a/ports/stm/peripherals/stm32f4/stm32f412zx/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f412zx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412ZX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412ZX_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[3]; @@ -34,5 +33,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[12]; #define TIM_PIN_ARRAY_LEN 60 extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412ZX_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f412zx/pins.h b/ports/stm/peripherals/stm32f4/stm32f412zx/pins.h index 40224c9000a23..700ab8310a8ca 100644 --- a/ports/stm/peripherals/stm32f4/stm32f412zx/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f412zx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412ZX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412ZX_PINS_H +#pragma once // pg 50 extern const mcu_pin_obj_t pin_PE02; @@ -133,5 +132,3 @@ extern const mcu_pin_obj_t pin_PB08; extern const mcu_pin_obj_t pin_PB09; extern const mcu_pin_obj_t pin_PE00; extern const mcu_pin_obj_t pin_PE01; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F412ZX_PINS_H diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h b/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h index 7262da2ad9c56..45253af7cc297 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f4xx_hal.h" // Chip: STM32F446xC/xV diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h b/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h index 81f7a7cad9d6c..0e1d65d7f234c 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F446RE_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F446RE_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[3]; @@ -33,5 +32,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[3]; #define TIM_PIN_ARRAY_LEN 34 extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F446RE_PERIPH_H diff --git a/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h b/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h index 8930f5f832c9f..1bd9543d46914 100644 --- a/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h +++ b/ports/stm/peripherals/stm32f4/stm32f446xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F446RE_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F446RE_PINS_H +#pragma once // Pins in datasheet order: DocID026289 Rev 7 page 38. LQFP64 only @@ -66,5 +65,3 @@ extern const mcu_pin_obj_t pin_PB09; extern const mcu_pin_obj_t pin_PD02; extern const mcu_pin_obj_t pin_PH00; extern const mcu_pin_obj_t pin_PH01; - -#endif // MICROPY_INCLUDED_STM32F4_PERIPHERALS_STM32F446RE_PINS_H diff --git a/ports/stm/peripherals/stm32f7/stm32f746xx/clocks.h b/ports/stm/peripherals/stm32f7/stm32f746xx/clocks.h index c599182128882..42b4b26c001f6 100644 --- a/ports/stm/peripherals/stm32f7/stm32f746xx/clocks.h +++ b/ports/stm/peripherals/stm32f7/stm32f746xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f7xx_hal.h" // Chip: STM32F746 diff --git a/ports/stm/peripherals/stm32f7/stm32f746xx/periph.h b/ports/stm/peripherals/stm32f7/stm32f746xx/periph.h index 4578ee7b555b2..6e5b790543baf 100644 --- a/ports/stm/peripherals/stm32f7/stm32f746xx/periph.h +++ b/ports/stm/peripherals/stm32f7/stm32f746xx/periph.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F746XX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F746XX_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[4]; @@ -34,5 +33,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[15]; extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F746XX_PERIPH_H diff --git a/ports/stm/peripherals/stm32f7/stm32f746xx/pins.h b/ports/stm/peripherals/stm32f7/stm32f746xx/pins.h index 8f02e607950b5..dd39314c3cdff 100644 --- a/ports/stm/peripherals/stm32f7/stm32f746xx/pins.h +++ b/ports/stm/peripherals/stm32f7/stm32f746xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F746XX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F746XX_PINS_H +#pragma once extern const mcu_pin_obj_t pin_PA00; extern const mcu_pin_obj_t pin_PA01; @@ -183,5 +182,3 @@ extern const mcu_pin_obj_t pin_PK12; extern const mcu_pin_obj_t pin_PK13; extern const mcu_pin_obj_t pin_PK14; extern const mcu_pin_obj_t pin_PK15; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F746XX_PINS_H diff --git a/ports/stm/peripherals/stm32f7/stm32f767xx/clocks.h b/ports/stm/peripherals/stm32f7/stm32f767xx/clocks.h index d220ed8208b15..6aa245e016e52 100644 --- a/ports/stm/peripherals/stm32f7/stm32f767xx/clocks.h +++ b/ports/stm/peripherals/stm32f7/stm32f767xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32f7xx_hal.h" // Chip: STM32F767 diff --git a/ports/stm/peripherals/stm32f7/stm32f767xx/periph.h b/ports/stm/peripherals/stm32f7/stm32f767xx/periph.h index 96f3c458e2f27..5ecf88f444ee1 100644 --- a/ports/stm/peripherals/stm32f7/stm32f767xx/periph.h +++ b/ports/stm/peripherals/stm32f7/stm32f767xx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F767XX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F767XX_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[4]; @@ -33,5 +32,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[25]; extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F767XX_PERIPH_H diff --git a/ports/stm/peripherals/stm32f7/stm32f767xx/pins.h b/ports/stm/peripherals/stm32f7/stm32f767xx/pins.h index 68f9e265011de..7c170351a51ea 100644 --- a/ports/stm/peripherals/stm32f7/stm32f767xx/pins.h +++ b/ports/stm/peripherals/stm32f7/stm32f767xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F767XX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F767XX_PINS_H +#pragma once extern const mcu_pin_obj_t pin_PA00; extern const mcu_pin_obj_t pin_PA01; @@ -175,5 +174,3 @@ extern const mcu_pin_obj_t pin_PK04; extern const mcu_pin_obj_t pin_PK05; extern const mcu_pin_obj_t pin_PK06; extern const mcu_pin_obj_t pin_PK07; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32F767XX_PINS_H diff --git a/ports/stm/peripherals/stm32h7/stm32h743xx/clocks.h b/ports/stm/peripherals/stm32h7/stm32h743xx/clocks.h index 97c3c4ef4630f..56bb598ab74a6 100644 --- a/ports/stm/peripherals/stm32h7/stm32h743xx/clocks.h +++ b/ports/stm/peripherals/stm32h7/stm32h743xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32h7xx_hal.h" // Chip: STM32H743 diff --git a/ports/stm/peripherals/stm32h7/stm32h743xx/periph.h b/ports/stm/peripherals/stm32h7/stm32h743xx/periph.h index a913a46b11695..fa4ec7f6e5621 100644 --- a/ports/stm/peripherals/stm32h7/stm32h743xx/periph.h +++ b/ports/stm/peripherals/stm32h7/stm32h743xx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PERIPH_H +#pragma once // I2C extern I2C_TypeDef *mcu_i2c_banks[4]; @@ -31,5 +30,3 @@ extern const mcu_periph_obj_t mcu_uart_rx_list[26]; #define TIM_BANK_ARRAY_LEN 14 #define TIM_PIN_ARRAY_LEN 58 extern TIM_TypeDef *mcu_tim_banks[TIM_BANK_ARRAY_LEN]; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PERIPH_H diff --git a/ports/stm/peripherals/stm32h7/stm32h743xx/pins.h b/ports/stm/peripherals/stm32h7/stm32h743xx/pins.h index ea9d506c0bd98..7c170351a51ea 100644 --- a/ports/stm/peripherals/stm32h7/stm32h743xx/pins.h +++ b/ports/stm/peripherals/stm32h7/stm32h743xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PINS_H +#pragma once extern const mcu_pin_obj_t pin_PA00; extern const mcu_pin_obj_t pin_PA01; @@ -175,5 +174,3 @@ extern const mcu_pin_obj_t pin_PK04; extern const mcu_pin_obj_t pin_PK05; extern const mcu_pin_obj_t pin_PK06; extern const mcu_pin_obj_t pin_PK07; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32H743XX_PINS_H diff --git a/ports/stm/peripherals/stm32l4/stm32l4r5xx/clocks.h b/ports/stm/peripherals/stm32l4/stm32l4r5xx/clocks.h index 57f49c83c438e..06ecde2956e75 100644 --- a/ports/stm/peripherals/stm32l4/stm32l4r5xx/clocks.h +++ b/ports/stm/peripherals/stm32l4/stm32l4r5xx/clocks.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "stm32l4xx_hal.h" // Chip: STM32L4R5 diff --git a/ports/stm/peripherals/stm32l4/stm32l4r5xx/periph.h b/ports/stm/peripherals/stm32l4/stm32l4r5xx/periph.h index 4c00d9009d44b..3e45a17c811c4 100644 --- a/ports/stm/peripherals/stm32l4/stm32l4r5xx/periph.h +++ b/ports/stm/peripherals/stm32l4/stm32l4r5xx/periph.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32L4R5XX_PERIPH_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32L4R5XX_PERIPH_H +#pragma once // I2C #define I2C_BANK_ARRAY_LEN 4 @@ -55,6 +54,3 @@ extern const mcu_tim_pin_obj_t mcu_tim_pin_list[TIM_PIN_ARRAY_LEN]; extern CAN_TypeDef *mcu_can_banks[1]; extern const mcu_periph_obj_t mcu_can_tx_list[4]; extern const mcu_periph_obj_t mcu_can_rx_list[4]; - - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32L4R5XX_PERIPH_H diff --git a/ports/stm/peripherals/stm32l4/stm32l4r5xx/pins.h b/ports/stm/peripherals/stm32l4/stm32l4r5xx/pins.h index 89c510731914f..2e2f106fb84e6 100644 --- a/ports/stm/peripherals/stm32l4/stm32l4r5xx/pins.h +++ b/ports/stm/peripherals/stm32l4/stm32l4r5xx/pins.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_PERIPHERALS_STM32L4R5XX_PINS_H -#define MICROPY_INCLUDED_STM32_PERIPHERALS_STM32L4R5XX_PINS_H +#pragma once extern const mcu_pin_obj_t pin_PA00; extern const mcu_pin_obj_t pin_PA01; @@ -147,5 +146,3 @@ extern const mcu_pin_obj_t pin_PI08; extern const mcu_pin_obj_t pin_PI09; extern const mcu_pin_obj_t pin_PI10; extern const mcu_pin_obj_t pin_PI11; - -#endif // MICROPY_INCLUDED_STM32_PERIPHERALS_STM32L4R5XX_PINS_H diff --git a/ports/stm/peripherals/timers.h b/ports/stm/peripherals/timers.h index 3af6958cb027b..db3f9472e1e9c 100644 --- a/ports/stm/peripherals/timers.h +++ b/ports/stm/peripherals/timers.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include #include "py/mphal.h" #include "peripherals/periph.h" diff --git a/ports/stm/qstrdefsport.h b/ports/stm/qstrdefsport.h index 57b5815583d4e..b8cd1fd9af908 100644 --- a/ports/stm/qstrdefsport.h +++ b/ports/stm/qstrdefsport.h @@ -4,4 +4,6 @@ // // SPDX-License-Identifier: MIT +#pragma once + // qstrs specific to this port diff --git a/ports/stm/supervisor/internal_flash.h b/ports/stm/supervisor/internal_flash.h index e75c9339825ec..68704805f3399 100644 --- a/ports/stm/supervisor/internal_flash.h +++ b/ports/stm/supervisor/internal_flash.h @@ -5,8 +5,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2020 Mark Olsson // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_STM32_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_STM32_INTERNAL_FLASH_H +#pragma once #include #include @@ -94,5 +93,3 @@ #define INTERNAL_FLASH_SYSTICK_MASK (0x1ff) // 512ms #define INTERNAL_FLASH_IDLE_TICK(tick) (((tick) & INTERNAL_FLASH_SYSTICK_MASK) == 2) - -#endif // MICROPY_INCLUDED_STM32_INTERNAL_FLASH_H diff --git a/py/circuitpy_mpconfig.h b/py/circuitpy_mpconfig.h index 9f2e3eaa7ee34..648853d2f45f3 100644 --- a/py/circuitpy_mpconfig.h +++ b/py/circuitpy_mpconfig.h @@ -8,8 +8,7 @@ // sure that the same feature set and settings are used, such as in atmel-samd // and nordic. -#ifndef __INCLUDED_MPCONFIG_CIRCUITPY_H -#define __INCLUDED_MPCONFIG_CIRCUITPY_H +#pragma once #include #include @@ -593,5 +592,3 @@ void background_callback_run_all(void); // Enable compiler functionality. #define MICROPY_ENABLE_COMPILER (1) #define MICROPY_PY_BUILTINS_COMPILE (1) - -#endif // __INCLUDED_MPCONFIG_CIRCUITPY_H diff --git a/py/proto.h b/py/proto.h index 0c20d8645ac61..bd40576708a0a 100644 --- a/py/proto.h +++ b/py/proto.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_PY_PROTO_H -#define MICROPY_INCLUDED_PY_PROTO_H +#pragma once // CIRCUITPY-CHANGE // @@ -26,5 +25,3 @@ static inline void *mp_proto_get(uint16_t name, mp_const_obj_type_t obj) { const void *mp_proto_get(uint16_t name, mp_const_obj_t obj); const void *mp_proto_get_or_throw(uint16_t name, mp_const_obj_t obj); #endif - -#endif diff --git a/py/ringbuf.h b/py/ringbuf.h index 25345da99d788..cef6a1b1fcd31 100644 --- a/py/ringbuf.h +++ b/py/ringbuf.h @@ -5,8 +5,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2020 Dan Halbert for Adafruit Industries LLC // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_PY_RINGBUF_H -#define MICROPY_INCLUDED_PY_RINGBUF_H +#pragma once #include "py/gc.h" @@ -48,5 +47,3 @@ int ringbuf_put16(ringbuf_t *r, uint16_t v); int ringbuf_get_bytes(ringbuf_t *r, uint8_t *data, size_t data_len); int ringbuf_put_bytes(ringbuf_t *r, const uint8_t *data, size_t data_len); - -#endif // MICROPY_INCLUDED_PY_RINGBUF_H diff --git a/shared-bindings/__future__/__init__.h b/shared-bindings/__future__/__init__.h index 47f1eb21dc7c6..9289c128578e4 100644 --- a/shared-bindings/__future__/__init__.h +++ b/shared-bindings/__future__/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_SHARED_BINDINGS___FUTURE_____INIT___H #define MICROPY_INCLUDED_SHARED_BINDINGS___FUTURE_____INIT___H diff --git a/shared-bindings/_bleio/Adapter.h b/shared-bindings/_bleio/Adapter.h index 6a2647f5d0b10..c6b7aeefc9609 100644 --- a/shared-bindings/_bleio/Adapter.h +++ b/shared-bindings/_bleio/Adapter.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ADAPTER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ADAPTER_H +#pragma once #include @@ -58,5 +57,3 @@ extern mp_obj_t common_hal_bleio_adapter_connect(bleio_adapter_obj_t *self, blei extern void common_hal_bleio_adapter_erase_bonding(bleio_adapter_obj_t *self); extern bool common_hal_bleio_adapter_is_bonded_to_central(bleio_adapter_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ADAPTER_H diff --git a/shared-bindings/_bleio/Address.h b/shared-bindings/_bleio/Address.h index d3df03ef6148e..c869ccf55cb94 100644 --- a/shared-bindings/_bleio/Address.h +++ b/shared-bindings/_bleio/Address.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ADDRESS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ADDRESS_H +#pragma once #include "py/objtype.h" #include "shared-module/_bleio/Address.h" @@ -24,5 +23,3 @@ extern const mp_obj_type_t bleio_address_type; extern void common_hal_bleio_address_construct(bleio_address_obj_t *self, uint8_t *bytes, uint8_t address_type); extern mp_obj_t common_hal_bleio_address_get_address_bytes(bleio_address_obj_t *self); extern uint8_t common_hal_bleio_address_get_type(bleio_address_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ADDRESS_H diff --git a/shared-bindings/_bleio/Attribute.h b/shared-bindings/_bleio/Attribute.h index bbaab213f79ba..51278dc0157f2 100644 --- a/shared-bindings/_bleio/Attribute.h +++ b/shared-bindings/_bleio/Attribute.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ATTRIBUTE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ATTRIBUTE_H +#pragma once #include "py/obj.h" @@ -15,5 +14,3 @@ extern const mp_obj_type_t bleio_attribute_type; extern void common_hal_bleio_attribute_security_mode_check_valid(bleio_attribute_security_mode_t security_mode); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_ATTRIBUTE_H diff --git a/shared-bindings/_bleio/Characteristic.h b/shared-bindings/_bleio/Characteristic.h index 3144562222798..2d343b8b07f9e 100644 --- a/shared-bindings/_bleio/Characteristic.h +++ b/shared-bindings/_bleio/Characteristic.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CHARACTERISTIC_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CHARACTERISTIC_H +#pragma once #include "py/objtuple.h" #include "shared-bindings/_bleio/Attribute.h" @@ -27,5 +26,3 @@ extern void common_hal_bleio_characteristic_add_descriptor(bleio_characteristic_ extern void common_hal_bleio_characteristic_construct(bleio_characteristic_obj_t *self, bleio_service_obj_t *service, uint16_t handle, bleio_uuid_obj_t *uuid, bleio_characteristic_properties_t props, bleio_attribute_security_mode_t read_perm, bleio_attribute_security_mode_t write_perm, mp_int_t max_length, bool fixed_length, mp_buffer_info_t *initial_value_bufinfo, const char *user_description); extern void common_hal_bleio_characteristic_set_cccd(bleio_characteristic_obj_t *self, bool notify, bool indicate); extern void common_hal_bleio_characteristic_set_value(bleio_characteristic_obj_t *self, mp_buffer_info_t *bufinfo); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CHARACTERISTIC_H diff --git a/shared-bindings/_bleio/CharacteristicBuffer.h b/shared-bindings/_bleio/CharacteristicBuffer.h index da0bf7bb70fd3..156ebc98bc76c 100644 --- a/shared-bindings/_bleio/CharacteristicBuffer.h +++ b/shared-bindings/_bleio/CharacteristicBuffer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CHARACTERISTICBUFFER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CHARACTERISTICBUFFER_H +#pragma once #include @@ -29,5 +28,3 @@ void common_hal_bleio_characteristic_buffer_clear_rx_buffer(bleio_characteristic bool common_hal_bleio_characteristic_buffer_deinited(bleio_characteristic_buffer_obj_t *self); void common_hal_bleio_characteristic_buffer_deinit(bleio_characteristic_buffer_obj_t *self); bool common_hal_bleio_characteristic_buffer_connected(bleio_characteristic_buffer_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CHARACTERISTICBUFFER_H diff --git a/shared-bindings/_bleio/Connection.h b/shared-bindings/_bleio/Connection.h index c3cb2259d3119..4be4992fb2f99 100644 --- a/shared-bindings/_bleio/Connection.h +++ b/shared-bindings/_bleio/Connection.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CONNECTION_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CONNECTION_H +#pragma once #include "py/objtuple.h" #include "common-hal/_bleio/Connection.h" @@ -25,5 +24,3 @@ mp_float_t common_hal_bleio_connection_get_connection_interval(bleio_connection_ void common_hal_bleio_connection_set_connection_interval(bleio_connection_internal_t *self, mp_float_t new_interval); void bleio_connection_ensure_connected(bleio_connection_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_CONNECTION_H diff --git a/shared-bindings/_bleio/Descriptor.h b/shared-bindings/_bleio/Descriptor.h index cf5c4bebd781a..e4629d84ef415 100644 --- a/shared-bindings/_bleio/Descriptor.h +++ b/shared-bindings/_bleio/Descriptor.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_DESCRIPTOR_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_DESCRIPTOR_H +#pragma once #include "shared-module/_bleio/Attribute.h" #include "common-hal/_bleio/Characteristic.h" @@ -20,5 +19,3 @@ extern bleio_uuid_obj_t *common_hal_bleio_descriptor_get_uuid(bleio_descriptor_o extern bleio_characteristic_obj_t *common_hal_bleio_descriptor_get_characteristic(bleio_descriptor_obj_t *self); extern size_t common_hal_bleio_descriptor_get_value(bleio_descriptor_obj_t *self, uint8_t *buf, size_t len); extern void common_hal_bleio_descriptor_set_value(bleio_descriptor_obj_t *self, mp_buffer_info_t *bufinfo); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_DESCRIPTOR_H diff --git a/shared-bindings/_bleio/PacketBuffer.h b/shared-bindings/_bleio/PacketBuffer.h index bffc9b53e76db..25d7127a67ec5 100644 --- a/shared-bindings/_bleio/PacketBuffer.h +++ b/shared-bindings/_bleio/PacketBuffer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_PACKETBUFFER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_PACKETBUFFER_H +#pragma once #include "common-hal/_bleio/PacketBuffer.h" @@ -27,5 +26,3 @@ mp_int_t common_hal_bleio_packet_buffer_get_outgoing_packet_length(bleio_packet_ void common_hal_bleio_packet_buffer_flush(bleio_packet_buffer_obj_t *self); bool common_hal_bleio_packet_buffer_deinited(bleio_packet_buffer_obj_t *self); void common_hal_bleio_packet_buffer_deinit(bleio_packet_buffer_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_PACKETBUFFER_H diff --git a/shared-bindings/_bleio/ScanEntry.h b/shared-bindings/_bleio/ScanEntry.h index fce4020c81fb0..bc5dc20be4553 100644 --- a/shared-bindings/_bleio/ScanEntry.h +++ b/shared-bindings/_bleio/ScanEntry.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SCANENTRY_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SCANENTRY_H +#pragma once #include "py/obj.h" #include "shared-module/_bleio/ScanEntry.h" @@ -20,5 +19,3 @@ mp_int_t common_hal_bleio_scanentry_get_rssi(bleio_scanentry_obj_t *self); bool common_hal_bleio_scanentry_get_connectable(bleio_scanentry_obj_t *self); bool common_hal_bleio_scanentry_get_scan_response(bleio_scanentry_obj_t *self); bool common_hal_bleio_scanentry_matches(bleio_scanentry_obj_t *self, const uint8_t *prefixes, size_t prefixes_len, bool match_all); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SCANENTRY_H diff --git a/shared-bindings/_bleio/ScanResults.h b/shared-bindings/_bleio/ScanResults.h index fcf4e9d05870f..a34fccf6fa2ac 100644 --- a/shared-bindings/_bleio/ScanResults.h +++ b/shared-bindings/_bleio/ScanResults.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SCANRESULTS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SCANRESULTS_H +#pragma once #include "py/obj.h" #include "shared-module/_bleio/ScanResults.h" @@ -15,5 +14,3 @@ extern const mp_obj_type_t bleio_scanresults_type; mp_obj_t common_hal_bleio_scanresults_next(bleio_scanresults_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SCANRESULTS_H diff --git a/shared-bindings/_bleio/Service.h b/shared-bindings/_bleio/Service.h index 9291618649fd2..eaa2a546219df 100644 --- a/shared-bindings/_bleio/Service.h +++ b/shared-bindings/_bleio/Service.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SERVICE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SERVICE_H +#pragma once #include "common-hal/_bleio/Characteristic.h" #include "common-hal/_bleio/Connection.h" @@ -26,5 +25,3 @@ extern mp_obj_tuple_t *common_hal_bleio_service_get_characteristics(bleio_servic extern bool common_hal_bleio_service_get_is_remote(bleio_service_obj_t *self); extern bool common_hal_bleio_service_get_is_secondary(bleio_service_obj_t *self); extern void common_hal_bleio_service_add_characteristic(bleio_service_obj_t *self, bleio_characteristic_obj_t *characteristic, mp_buffer_info_t *initial_value_bufinfo, const char *user_description); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_SERVICE_H diff --git a/shared-bindings/_bleio/UUID.h b/shared-bindings/_bleio/UUID.h index 84cb759c3bf57..b8d1c2fcecd69 100644 --- a/shared-bindings/_bleio/UUID.h +++ b/shared-bindings/_bleio/UUID.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_UUID_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_UUID_H +#pragma once #include "common-hal/_bleio/UUID.h" @@ -20,5 +19,3 @@ extern void common_hal_bleio_uuid_get_uuid128(bleio_uuid_obj_t *self, uint8_t uu extern uint32_t common_hal_bleio_uuid_get_size(bleio_uuid_obj_t *self); void common_hal_bleio_uuid_pack_into(bleio_uuid_obj_t *self, uint8_t *buf); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO_UUID_H diff --git a/shared-bindings/_bleio/__init__.h b/shared-bindings/_bleio/__init__.h index d55b85e5440ee..0feb538d81d82 100644 --- a/shared-bindings/_bleio/__init__.h +++ b/shared-bindings/_bleio/__init__.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO___INIT___H +#pragma once #include "py/obj.h" #include "py/objlist.h" @@ -58,5 +57,3 @@ size_t common_hal_bleio_gattc_read(uint16_t handle, uint16_t conn_handle, uint8_ void common_hal_bleio_gattc_write(uint16_t handle, uint16_t conn_handle, mp_buffer_info_t *bufinfo, bool write_no_response); void common_hal_bleio_gc_collect(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BLEIO___INIT___H diff --git a/shared-bindings/_eve/__init__.h b/shared-bindings/_eve/__init__.h index 6c635b4239628..ea743cbf07fef 100644 --- a/shared-bindings/_eve/__init__.h +++ b/shared-bindings/_eve/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H +#pragma once #include "shared-module/_eve/__init__.h" @@ -62,5 +61,3 @@ void common_hal__eve_VertexTranslateX(common_hal__eve_t *eve, mp_float_t x); void common_hal__eve_VertexTranslateY(common_hal__eve_t *eve, mp_float_t y); void common_hal__eve_VertexFormat(common_hal__eve_t *eve, uint32_t frac); void common_hal__eve_Vertex2ii(common_hal__eve_t *eve, uint32_t x, uint32_t y, uint32_t handle, uint32_t cell); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS__EVE___INIT___H diff --git a/shared-bindings/_pew/PewPew.h b/shared-bindings/_pew/PewPew.h index f8b7ef81e49c9..287b0438b3c6e 100644 --- a/shared-bindings/_pew/PewPew.h +++ b/shared-bindings/_pew/PewPew.h @@ -5,9 +5,6 @@ // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PEW_PEWPEW_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PEW_PEWPEW_H +#pragma once extern const mp_obj_type_t pewpew_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PEW_PEWPEW_H diff --git a/shared-bindings/_pixelmap/__init__.h b/shared-bindings/_pixelmap/__init__.h index 20d47e25e0ee8..a98da1ed66c83 100644 --- a/shared-bindings/_pixelmap/__init__.h +++ b/shared-bindings/_pixelmap/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef CP_SHARED_BINDINGS_PIXELBUF_INIT_H #define CP_SHARED_BINDINGS_PIXELBUF_INIT_H diff --git a/shared-bindings/_stage/Layer.h b/shared-bindings/_stage/Layer.h index 6b33fe095c92c..b284f27fb3905 100644 --- a/shared-bindings/_stage/Layer.h +++ b/shared-bindings/_stage/Layer.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED__STAGE_LAYER_H -#define MICROPY_INCLUDED__STAGE_LAYER_H +#pragma once #include "shared-module/_stage/Layer.h" extern const mp_obj_type_t mp_type_layer; - -#endif // MICROPY_INCLUDED__STAGE_LAYER diff --git a/shared-bindings/_stage/Text.h b/shared-bindings/_stage/Text.h index 14e2ee2b25c23..cc06a324706bf 100644 --- a/shared-bindings/_stage/Text.h +++ b/shared-bindings/_stage/Text.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED__STAGE_TEXT_H -#define MICROPY_INCLUDED__STAGE_TEXT_H +#pragma once #include "shared-module/_stage/Text.h" extern const mp_obj_type_t mp_type_text; - -#endif // MICROPY_INCLUDED__STAGE_TEXT diff --git a/shared-bindings/_stage/__init__.h b/shared-bindings/_stage/__init__.h index 60e2f0e0039c0..68b7d0504fe89 100644 --- a/shared-bindings/_stage/__init__.h +++ b/shared-bindings/_stage/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED__STAGE_H -#define MICROPY_INCLUDED__STAGE_H +#pragma once #include "shared-module/_stage/__init__.h" - -#endif // MICROPY_INCLUDED__STAGE diff --git a/shared-bindings/adafruit_bus_device/__init__.h b/shared-bindings/adafruit_bus_device/__init__.h index ac61851bdb7b6..8c0321cd11439 100644 --- a/shared-bindings/adafruit_bus_device/__init__.h +++ b/shared-bindings/adafruit_bus_device/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE___INIT___H +#pragma once // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE___INIT___H diff --git a/shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h b/shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h index 25468e7a3c974..361d65b1fa1a0 100644 --- a/shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h +++ b/shared-bindings/adafruit_bus_device/i2c_device/I2CDevice.h @@ -11,8 +11,7 @@ // This file includes externs for all functions a port should implement to // support the machine module. -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE_I2CDEVICE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE_I2CDEVICE_H +#pragma once #include "py/obj.h" @@ -27,5 +26,3 @@ extern void common_hal_adafruit_bus_device_i2cdevice_construct(adafruit_bus_devi extern void common_hal_adafruit_bus_device_i2cdevice_lock(adafruit_bus_device_i2cdevice_obj_t *self); extern void common_hal_adafruit_bus_device_i2cdevice_unlock(adafruit_bus_device_i2cdevice_obj_t *self); extern void common_hal_adafruit_bus_device_i2cdevice_probe_for_device(adafruit_bus_device_i2cdevice_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE_I2CDEVICE_H diff --git a/shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h b/shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h index b0c65ecdc32ee..c5f1253416448 100644 --- a/shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h +++ b/shared-bindings/adafruit_bus_device/spi_device/SPIDevice.h @@ -11,8 +11,7 @@ // This file includes externs for all functions a port should implement to // support the machine module. -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE_SPIDEVICE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE_SPIDEVICE_H +#pragma once #include "py/obj.h" @@ -26,5 +25,3 @@ extern void common_hal_adafruit_bus_device_spidevice_construct(adafruit_bus_devi bool cs_active_value, uint32_t baudrate, uint8_t polarity, uint8_t phase, uint8_t extra_clocks); extern mp_obj_t common_hal_adafruit_bus_device_spidevice_enter(adafruit_bus_device_spidevice_obj_t *self); extern void common_hal_adafruit_bus_device_spidevice_exit(adafruit_bus_device_spidevice_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSDEVICE_SPIDEVICE_H diff --git a/shared-bindings/adafruit_pixelbuf/PixelBuf.h b/shared-bindings/adafruit_pixelbuf/PixelBuf.h index cedf74cdea553..e81a7501e47cc 100644 --- a/shared-bindings/adafruit_pixelbuf/PixelBuf.h +++ b/shared-bindings/adafruit_pixelbuf/PixelBuf.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H -#define CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H +#pragma once #include "py/objtuple.h" #include "shared-module/adafruit_pixelbuf/PixelBuf.h" @@ -38,5 +37,3 @@ void common_hal_adafruit_pixelbuf_pixelbuf_set_pixel(mp_obj_t self, size_t index void common_hal_adafruit_pixelbuf_pixelbuf_set_pixels(mp_obj_t self_in, size_t start, mp_int_t step, size_t slice_len, mp_obj_t *values, mp_obj_tuple_t *flatten_to); void common_hal_adafruit_pixelbuf_pixelbuf_parse_color(mp_obj_t self, mp_obj_t color, uint8_t *r, uint8_t *g, uint8_t *b, uint8_t *w); void common_hal_adafruit_pixelbuf_pixelbuf_set_pixel_color(mp_obj_t self, size_t index, uint8_t r, uint8_t g, uint8_t b, uint8_t w); - -#endif // CP_SHARED_BINDINGS_PIXELBUF_PIXELBUF_H diff --git a/shared-bindings/adafruit_pixelbuf/__init__.h b/shared-bindings/adafruit_pixelbuf/__init__.h index 20d47e25e0ee8..a98da1ed66c83 100644 --- a/shared-bindings/adafruit_pixelbuf/__init__.h +++ b/shared-bindings/adafruit_pixelbuf/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef CP_SHARED_BINDINGS_PIXELBUF_INIT_H #define CP_SHARED_BINDINGS_PIXELBUF_INIT_H diff --git a/shared-bindings/aesio/__init__.h b/shared-bindings/aesio/__init__.h index 9e722f112a376..6e88dd5dbfd1b 100644 --- a/shared-bindings/aesio/__init__.h +++ b/shared-bindings/aesio/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AESIO_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AESIO_H +#pragma once #include "shared-module/aesio/__init__.h" @@ -29,5 +28,3 @@ void common_hal_aesio_aes_encrypt(aesio_aes_obj_t *self, void common_hal_aesio_aes_decrypt(aesio_aes_obj_t *self, uint8_t *buffer, size_t len); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AESIO_H diff --git a/shared-bindings/alarm/SleepMemory.h b/shared-bindings/alarm/SleepMemory.h index 32eb51c61ef60..1c72c9f44b257 100644 --- a/shared-bindings/alarm/SleepMemory.h +++ b/shared-bindings/alarm/SleepMemory.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_SLEEPMEMORY_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_SLEEPMEMORY_H +#pragma once #include "common-hal/alarm/SleepMemory.h" @@ -16,5 +15,3 @@ uint32_t common_hal_alarm_sleep_memory_get_length(alarm_sleep_memory_obj_t *self bool common_hal_alarm_sleep_memory_set_bytes(alarm_sleep_memory_obj_t *self, uint32_t start_index, const uint8_t *values, uint32_t len); void common_hal_alarm_sleep_memory_get_bytes(alarm_sleep_memory_obj_t *self, uint32_t start_index, uint8_t *values, uint32_t len); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_SLEEPMEMORY_H diff --git a/shared-bindings/alarm/__init__.h b/shared-bindings/alarm/__init__.h index 096897ab89319..af92b381137c8 100644 --- a/shared-bindings/alarm/__init__.h +++ b/shared-bindings/alarm/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ALARM___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ALARM___INIT___H +#pragma once #include "py/obj.h" @@ -44,5 +43,3 @@ void shared_alarm_save_wake_alarm(mp_obj_t alarm); extern bool common_hal_alarm_woken_from_sleep(void); extern void common_hal_alarm_gc_collect(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ALARM___INIT___H diff --git a/shared-bindings/alarm/pin/PinAlarm.h b/shared-bindings/alarm/pin/PinAlarm.h index 528ea891263e7..024199eb9965e 100644 --- a/shared-bindings/alarm/pin/PinAlarm.h +++ b/shared-bindings/alarm/pin/PinAlarm.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_PIN_PINALARM_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_PIN_PINALARM_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -19,5 +18,3 @@ extern const mcu_pin_obj_t *common_hal_alarm_pin_pinalarm_get_pin(alarm_pin_pina extern bool common_hal_alarm_pin_pinalarm_get_value(alarm_pin_pinalarm_obj_t *self); extern bool common_hal_alarm_pin_pinalarm_get_edge(alarm_pin_pinalarm_obj_t *self); extern bool common_hal_alarm_pin_pinalarm_get_pull(alarm_pin_pinalarm_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_PIN_PINALARM_H diff --git a/shared-bindings/alarm/time/TimeAlarm.h b/shared-bindings/alarm/time/TimeAlarm.h index d8cf3ff133f2c..f5c3d6923f02f 100644 --- a/shared-bindings/alarm/time/TimeAlarm.h +++ b/shared-bindings/alarm/time/TimeAlarm.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_TIME_TIMEALARM_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_TIME_TIMEALARM_H +#pragma once #include "py/obj.h" @@ -15,5 +14,3 @@ extern const mp_obj_type_t alarm_time_timealarm_type; extern void common_hal_alarm_time_timealarm_construct(alarm_time_timealarm_obj_t *self, mp_float_t monotonic_time); extern mp_float_t common_hal_alarm_time_timealarm_get_monotonic_time(alarm_time_timealarm_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_TIME_TIMEALARM_H diff --git a/shared-bindings/alarm/touch/TouchAlarm.h b/shared-bindings/alarm/touch/TouchAlarm.h index e6ca2fda6754e..0de58bfe35fbe 100644 --- a/shared-bindings/alarm/touch/TouchAlarm.h +++ b/shared-bindings/alarm/touch/TouchAlarm.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_TOUCH_TOUCHALARM_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_TOUCH_TOUCHALARM_H +#pragma once #include "py/obj.h" #include "py/runtime.h" @@ -16,5 +15,3 @@ extern const mp_obj_type_t alarm_touch_touchalarm_type; extern void common_hal_alarm_touch_touchalarm_construct(alarm_touch_touchalarm_obj_t *self, const mcu_pin_obj_t *pin); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ALARM_TOUCH_TOUCHALARM_H diff --git a/shared-bindings/analogbufio/BufferedIn.h b/shared-bindings/analogbufio/BufferedIn.h index 014192ee69212..ba8f5576813ab 100644 --- a/shared-bindings/analogbufio/BufferedIn.h +++ b/shared-bindings/analogbufio/BufferedIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO_BUFFEREDIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO_BUFFEREDIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/analogbufio/BufferedIn.h" @@ -16,5 +15,3 @@ void common_hal_analogbufio_bufferedin_construct(analogbufio_bufferedin_obj_t *s void common_hal_analogbufio_bufferedin_deinit(analogbufio_bufferedin_obj_t *self); bool common_hal_analogbufio_bufferedin_deinited(analogbufio_bufferedin_obj_t *self); uint32_t common_hal_analogbufio_bufferedin_readinto(analogbufio_bufferedin_obj_t *self, uint8_t *buffer, uint32_t len, uint8_t bytes_per_sample); - -#endif // __MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO_BUFFEREDIN_H__ diff --git a/shared-bindings/analogbufio/__init__.h b/shared-bindings/analogbufio/__init__.h index 122035f4f6ab1..752f8d0795713 100644 --- a/shared-bindings/analogbufio/__init__.h +++ b/shared-bindings/analogbufio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGBUFIO___INIT___H diff --git a/shared-bindings/analogio/AnalogIn.h b/shared-bindings/analogio/AnalogIn.h index 60b1f2d322a68..303ef030bf7f2 100644 --- a/shared-bindings/analogio/AnalogIn.h +++ b/shared-bindings/analogio/AnalogIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO_ANALOGIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO_ANALOGIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/analogio/AnalogIn.h" @@ -18,5 +17,3 @@ void common_hal_analogio_analogin_deinit(analogio_analogin_obj_t *self); bool common_hal_analogio_analogin_deinited(analogio_analogin_obj_t *self); uint16_t common_hal_analogio_analogin_get_value(analogio_analogin_obj_t *self); float common_hal_analogio_analogin_get_reference_voltage(analogio_analogin_obj_t *self); - -#endif // __MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO_ANALOGIN_H__ diff --git a/shared-bindings/analogio/AnalogOut.h b/shared-bindings/analogio/AnalogOut.h index 4ce5ddf554c5e..7992c91d17b31 100644 --- a/shared-bindings/analogio/AnalogOut.h +++ b/shared-bindings/analogio/AnalogOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO_ANALOGOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO_ANALOGOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/analogio/AnalogOut.h" @@ -16,5 +15,3 @@ void common_hal_analogio_analogout_construct(analogio_analogout_obj_t *self, con void common_hal_analogio_analogout_deinit(analogio_analogout_obj_t *self); bool common_hal_analogio_analogout_deinited(analogio_analogout_obj_t *self); void common_hal_analogio_analogout_set_value(analogio_analogout_obj_t *self, uint16_t value); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO_ANALOGOUT_H diff --git a/shared-bindings/analogio/__init__.h b/shared-bindings/analogio/__init__.h index 05ae726a88457..48f52ceb0f3d5 100644 --- a/shared-bindings/analogio/__init__.h +++ b/shared-bindings/analogio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ANALOGIO___INIT___H diff --git a/shared-bindings/audiobusio/I2SOut.h b/shared-bindings/audiobusio/I2SOut.h index d76bf34f4bb5a..a53997ef91b68 100644 --- a/shared-bindings/audiobusio/I2SOut.h +++ b/shared-bindings/audiobusio/I2SOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO_I2SOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO_I2SOUT_H +#pragma once #include "common-hal/audiobusio/I2SOut.h" #include "common-hal/microcontroller/Pin.h" @@ -29,5 +28,3 @@ void common_hal_audiobusio_i2sout_resume(audiobusio_i2sout_obj_t *self); bool common_hal_audiobusio_i2sout_get_paused(audiobusio_i2sout_obj_t *self); #endif // CIRCUITPY_AUDIOBUSIO_I2SOUT - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO_I2SOUT_H diff --git a/shared-bindings/audiobusio/PDMIn.h b/shared-bindings/audiobusio/PDMIn.h index 6052608c2905b..0539db9ff4734 100644 --- a/shared-bindings/audiobusio/PDMIn.h +++ b/shared-bindings/audiobusio/PDMIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO_AUDIOOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO_AUDIOOUT_H +#pragma once #include "common-hal/audiobusio/PDMIn.h" #include "common-hal/microcontroller/Pin.h" @@ -25,5 +24,3 @@ uint8_t common_hal_audiobusio_pdmin_get_bit_depth(audiobusio_pdmin_obj_t *self); uint32_t common_hal_audiobusio_pdmin_get_sample_rate(audiobusio_pdmin_obj_t *self); // TODO(tannewt): Add record to file #endif - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO_AUDIOOUT_H diff --git a/shared-bindings/audiobusio/__init__.h b/shared-bindings/audiobusio/__init__.h index 7bd805b65f55d..889bd8bcd3e3e 100644 --- a/shared-bindings/audiobusio/__init__.h +++ b/shared-bindings/audiobusio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOBUSIO___INIT___H diff --git a/shared-bindings/audiocore/RawSample.h b/shared-bindings/audiocore/RawSample.h index 301f7f4691d9a..ad138c1d362cd 100644 --- a/shared-bindings/audiocore/RawSample.h +++ b/shared-bindings/audiocore/RawSample.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_RAWSAMPLE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_RAWSAMPLE_H +#pragma once #include "shared-module/audiocore/RawSample.h" @@ -21,5 +20,3 @@ uint32_t common_hal_audioio_rawsample_get_sample_rate(audioio_rawsample_obj_t *s uint8_t common_hal_audioio_rawsample_get_bits_per_sample(audioio_rawsample_obj_t *self); uint8_t common_hal_audioio_rawsample_get_channel_count(audioio_rawsample_obj_t *self); void common_hal_audioio_rawsample_set_sample_rate(audioio_rawsample_obj_t *self, uint32_t sample_rate); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_RAWSAMPLE_H diff --git a/shared-bindings/audiocore/WaveFile.h b/shared-bindings/audiocore/WaveFile.h index 3910f0a0cbdd0..7c847bbced7fb 100644 --- a/shared-bindings/audiocore/WaveFile.h +++ b/shared-bindings/audiocore/WaveFile.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_WAVEFILE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_WAVEFILE_H +#pragma once #include "py/obj.h" #include "extmod/vfs_fat.h" @@ -23,5 +22,3 @@ uint32_t common_hal_audioio_wavefile_get_sample_rate(audioio_wavefile_obj_t *sel void common_hal_audioio_wavefile_set_sample_rate(audioio_wavefile_obj_t *self, uint32_t sample_rate); uint8_t common_hal_audioio_wavefile_get_bits_per_sample(audioio_wavefile_obj_t *self); uint8_t common_hal_audioio_wavefile_get_channel_count(audioio_wavefile_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_WAVEFILE_H diff --git a/shared-bindings/audiocore/__init__.h b/shared-bindings/audiocore/__init__.h index 7160d629b0e41..889bd8bcd3e3e 100644 --- a/shared-bindings/audiocore/__init__.h +++ b/shared-bindings/audiocore/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOCORE___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOCORE___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOCORE___INIT___H diff --git a/shared-bindings/audioio/AudioOut.h b/shared-bindings/audioio/AudioOut.h index bca55dd0502fa..0c766233236e1 100644 --- a/shared-bindings/audioio/AudioOut.h +++ b/shared-bindings/audioio/AudioOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_AUDIOOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_AUDIOOUT_H +#pragma once #include "common-hal/audioio/AudioOut.h" #include "common-hal/microcontroller/Pin.h" @@ -25,5 +24,3 @@ bool common_hal_audioio_audioout_get_playing(audioio_audioout_obj_t *self); void common_hal_audioio_audioout_pause(audioio_audioout_obj_t *self); void common_hal_audioio_audioout_resume(audioio_audioout_obj_t *self); bool common_hal_audioio_audioout_get_paused(audioio_audioout_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_AUDIOOUT_H diff --git a/shared-bindings/audioio/__init__.h b/shared-bindings/audioio/__init__.h index ab70b2fdc67d4..889bd8bcd3e3e 100644 --- a/shared-bindings/audioio/__init__.h +++ b/shared-bindings/audioio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO___INIT___H diff --git a/shared-bindings/audiomixer/Mixer.h b/shared-bindings/audiomixer/Mixer.h index 220ccdc29c9a6..29577b0a61b86 100644 --- a/shared-bindings/audiomixer/Mixer.h +++ b/shared-bindings/audiomixer/Mixer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMIXER_MIXER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMIXER_MIXER_H +#pragma once #include "shared-module/audiomixer/Mixer.h" @@ -27,5 +26,3 @@ bool common_hal_audiomixer_mixer_get_playing(audiomixer_mixer_obj_t *self); uint32_t common_hal_audiomixer_mixer_get_sample_rate(audiomixer_mixer_obj_t *self); uint8_t common_hal_audiomixer_mixer_get_channel_count(audiomixer_mixer_obj_t *self); uint8_t common_hal_audiomixer_mixer_get_bits_per_sample(audiomixer_mixer_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMIXER_MIXER_H diff --git a/shared-bindings/audiomixer/MixerVoice.h b/shared-bindings/audiomixer/MixerVoice.h index 7143884caaeeb..1f5311edf41e2 100644 --- a/shared-bindings/audiomixer/MixerVoice.h +++ b/shared-bindings/audiomixer/MixerVoice.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 DeanM for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef SHARED_BINDINGS_AUDIOMIXER_MIXERVOICE_H_ -#define SHARED_BINDINGS_AUDIOMIXER_MIXERVOICE_H_ +#pragma once #include "shared-module/audiomixer/MixerVoice.h" #include "shared-module/audiomixer/Mixer.h" @@ -20,5 +19,3 @@ mp_float_t common_hal_audiomixer_mixervoice_get_level(audiomixer_mixervoice_obj_ void common_hal_audiomixer_mixervoice_set_level(audiomixer_mixervoice_obj_t *self, mp_float_t gain); bool common_hal_audiomixer_mixervoice_get_playing(audiomixer_mixervoice_obj_t *self); - -#endif /* SHARED_BINDINGS_AUDIOMIXER_MIXERVOICE_H_ */ diff --git a/shared-bindings/audiomixer/__init__.h b/shared-bindings/audiomixer/__init__.h index acd3715017029..3da23ce635829 100644 --- a/shared-bindings/audiomixer/__init__.h +++ b/shared-bindings/audiomixer/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMIXER___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMIXER___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMIXER___INIT___H diff --git a/shared-bindings/audiomp3/MP3Decoder.h b/shared-bindings/audiomp3/MP3Decoder.h index 68166b54ae9ed..8095c22b06480 100644 --- a/shared-bindings/audiomp3/MP3Decoder.h +++ b/shared-bindings/audiomp3/MP3Decoder.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_MP3FILE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_MP3FILE_H +#pragma once #include "py/obj.h" #include "extmod/vfs_fat.h" @@ -27,5 +26,3 @@ uint8_t common_hal_audiomp3_mp3file_get_bits_per_sample(audiomp3_mp3file_obj_t * uint8_t common_hal_audiomp3_mp3file_get_channel_count(audiomp3_mp3file_obj_t *self); float common_hal_audiomp3_mp3file_get_rms_level(audiomp3_mp3file_obj_t *self); uint32_t common_hal_audiomp3_mp3file_get_samples_decoded(audiomp3_mp3file_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOIO_MP3FILE_H diff --git a/shared-bindings/audiomp3/__init__.h b/shared-bindings/audiomp3/__init__.h index c0cac5028b4d5..41b0dc84106e4 100644 --- a/shared-bindings/audiomp3/__init__.h +++ b/shared-bindings/audiomp3/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMP3___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMP3___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOMP3___INIT___H diff --git a/shared-bindings/audiopwmio/PWMAudioOut.h b/shared-bindings/audiopwmio/PWMAudioOut.h index 4ed2f05d13546..23724a7882744 100644 --- a/shared-bindings/audiopwmio/PWMAudioOut.h +++ b/shared-bindings/audiopwmio/PWMAudioOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOPWMIO_AUDIOOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOPWMIO_AUDIOOUT_H +#pragma once #include "common-hal/audiopwmio/PWMAudioOut.h" #include "common-hal/microcontroller/Pin.h" @@ -25,5 +24,3 @@ bool common_hal_audiopwmio_pwmaudioout_get_playing(audiopwmio_pwmaudioout_obj_t void common_hal_audiopwmio_pwmaudioout_pause(audiopwmio_pwmaudioout_obj_t *self); void common_hal_audiopwmio_pwmaudioout_resume(audiopwmio_pwmaudioout_obj_t *self); bool common_hal_audiopwmio_pwmaudioout_get_paused(audiopwmio_pwmaudioout_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOPWMIO_AUDIOOUT_H diff --git a/shared-bindings/audiopwmio/__init__.h b/shared-bindings/audiopwmio/__init__.h index 73caa67437f87..889bd8bcd3e3e 100644 --- a/shared-bindings/audiopwmio/__init__.h +++ b/shared-bindings/audiopwmio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOPWMIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOPWMIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_AUDIOPWMIO___INIT___H diff --git a/shared-bindings/bitbangio/I2C.h b/shared-bindings/bitbangio/I2C.h index ba8d3747d9a11..022be3692a6cf 100644 --- a/shared-bindings/bitbangio/I2C.h +++ b/shared-bindings/bitbangio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO_I2C_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO_I2C_H +#pragma once #include "py/obj.h" @@ -41,5 +40,3 @@ extern uint8_t shared_module_bitbangio_i2c_write(bitbangio_i2c_obj_t *self, extern uint8_t shared_module_bitbangio_i2c_read(bitbangio_i2c_obj_t *self, uint16_t address, uint8_t *data, size_t len); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO_I2C_H diff --git a/shared-bindings/bitbangio/SPI.h b/shared-bindings/bitbangio/SPI.h index 3385303d5b860..dbe821683b0a2 100644 --- a/shared-bindings/bitbangio/SPI.h +++ b/shared-bindings/bitbangio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO_SPI_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO_SPI_H +#pragma once #include "py/obj.h" @@ -38,5 +37,3 @@ extern bool shared_module_bitbangio_spi_read(bitbangio_spi_obj_t *self, uint8_t // Transfer out len bytes while reading len bytes extern bool shared_module_bitbangio_spi_transfer(bitbangio_spi_obj_t *self, const uint8_t *dout, uint8_t *din, size_t len); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO_SPI_H diff --git a/shared-bindings/bitbangio/__init__.h b/shared-bindings/bitbangio/__init__.h index e902cd3d559b3..48f52ceb0f3d5 100644 --- a/shared-bindings/bitbangio/__init__.h +++ b/shared-bindings/bitbangio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BITBANGIO___INIT___H diff --git a/shared-bindings/bitmaptools/__init__.h b/shared-bindings/bitmaptools/__init__.h index 133ba97458d7e..2d9b22e216e5f 100644 --- a/shared-bindings/bitmaptools/__init__.h +++ b/shared-bindings/bitmaptools/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BITMAPTOOLS__INIT__H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BITMAPTOOLS__INIT__H +#pragma once #include "shared-module/displayio/Bitmap.h" #include "shared-bindings/displayio/ColorConverter.h" @@ -86,4 +85,3 @@ typedef struct { {MP_QSTR_y2, if_required2 | MP_ARG_OBJ, {.u_obj = MP_ROM_NONE}} bitmaptools_rect_t bitmaptools_validate_coord_range_pair(const mp_arg_val_t in[4], int width, int height); -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BITMAPTOOLS__INIT__H diff --git a/shared-bindings/board/__init__.h b/shared-bindings/board/__init__.h index be75444114322..004ece1eaf343 100644 --- a/shared-bindings/board/__init__.h +++ b/shared-bindings/board/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BOARD___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BOARD___INIT___H +#pragma once #include "py/obj.h" #include "py/objstr.h" @@ -42,5 +41,3 @@ MP_DECLARE_CONST_FUN_OBJ_0(board_uart_obj); #define CIRCUITPYTHON_BOARD_DICT_STANDARD_ITEMS \ { MP_ROM_QSTR(MP_QSTR___name__), MP_ROM_QSTR(MP_QSTR_board) }, \ { MP_ROM_QSTR(MP_QSTR_board_id), MP_ROM_PTR(&board_module_id_obj) }, - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BOARD___INIT___H diff --git a/shared-bindings/busio/SPI.h b/shared-bindings/busio/SPI.h index 0d6210ab79a73..69e582411a169 100644 --- a/shared-bindings/busio/SPI.h +++ b/shared-bindings/busio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SPI_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SPI_H +#pragma once #include "py/obj.h" @@ -51,5 +50,3 @@ uint8_t common_hal_busio_spi_get_polarity(busio_spi_obj_t *self); extern void common_hal_busio_spi_never_reset(busio_spi_obj_t *self); extern busio_spi_obj_t *validate_obj_is_spi_bus(mp_obj_t obj_in, qstr arg_name); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SPI_H diff --git a/shared-bindings/busio/UART.h b/shared-bindings/busio/UART.h index c14511cac33dc..c8e6755c129fc 100644 --- a/shared-bindings/busio/UART.h +++ b/shared-bindings/busio/UART.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_UART_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_UART_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/busio/UART.h" @@ -49,5 +48,3 @@ extern void common_hal_busio_uart_clear_rx_buffer(busio_uart_obj_t *self); extern bool common_hal_busio_uart_ready_to_tx(busio_uart_obj_t *self); extern void common_hal_busio_uart_never_reset(busio_uart_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_UART_H diff --git a/shared-bindings/busio/__init__.h b/shared-bindings/busio/__init__.h index 64db62571ecd9..48f52ceb0f3d5 100644 --- a/shared-bindings/busio/__init__.h +++ b/shared-bindings/busio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO___INIT___H diff --git a/shared-bindings/camera/Camera.h b/shared-bindings/camera/Camera.h index 95372804f4e04..df4512910e378 100644 --- a/shared-bindings/camera/Camera.h +++ b/shared-bindings/camera/Camera.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_CAMERA_CAMERA_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_CAMERA_CAMERA_H +#pragma once #include "common-hal/camera/Camera.h" #include "shared-bindings/camera/ImageFormat.h" @@ -16,5 +15,3 @@ void common_hal_camera_construct(camera_obj_t *self); void common_hal_camera_deinit(camera_obj_t *self); bool common_hal_camera_deinited(camera_obj_t *self); size_t common_hal_camera_take_picture(camera_obj_t *self, uint8_t *buffer, size_t len, uint16_t width, uint16_t height, camera_imageformat_t format); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_CAMERA_CAMERA_H diff --git a/shared-bindings/camera/ImageFormat.h b/shared-bindings/camera/ImageFormat.h index b733449e93b68..ce257caa82026 100644 --- a/shared-bindings/camera/ImageFormat.h +++ b/shared-bindings/camera/ImageFormat.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_CAMERA_IMAGEFORMAT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_CAMERA_IMAGEFORMAT_H +#pragma once #include "py/obj.h" @@ -25,5 +24,3 @@ typedef struct { } camera_imageformat_obj_t; extern const camera_imageformat_obj_t camera_imageformat_jpg_obj; extern const camera_imageformat_obj_t camera_imageformat_rgb565_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_CAMERA_IMAGEFORMAT_H diff --git a/shared-bindings/countio/Counter.h b/shared-bindings/countio/Counter.h index d9b3c9f0e0430..7f275dcb36982 100644 --- a/shared-bindings/countio/Counter.h +++ b/shared-bindings/countio/Counter.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO_COUNTER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO_COUNTER_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/countio/Counter.h" @@ -21,5 +20,3 @@ extern bool common_hal_countio_counter_deinited(countio_counter_obj_t *self); extern mp_int_t common_hal_countio_counter_get_count(countio_counter_obj_t *self); extern void common_hal_countio_counter_set_count(countio_counter_obj_t *self, mp_int_t new_count); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO_COUNTER_H diff --git a/shared-bindings/countio/Edge.h b/shared-bindings/countio/Edge.h index 7a34bea6a193c..48e31d0f9a63a 100644 --- a/shared-bindings/countio/Edge.h +++ b/shared-bindings/countio/Edge.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO_EDGE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO_EDGE_H +#pragma once #include "py/enum.h" #include "py/obj.h" @@ -20,5 +19,3 @@ extern const mp_obj_type_t countio_edge_type; extern const cp_enum_obj_t edge_FALL_obj; countio_edge_t validate_edge(mp_obj_t obj, qstr arg_name); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO_EDGE_H diff --git a/shared-bindings/countio/__init__.h b/shared-bindings/countio/__init__.h index b8d553d62fec6..8918616129c7d 100644 --- a/shared-bindings/countio/__init__.h +++ b/shared-bindings/countio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_COUNTIO___INIT___H diff --git a/shared-bindings/digitalio/DigitalInOut.h b/shared-bindings/digitalio/DigitalInOut.h index d1d8efbfa6d89..f030e27a60b98 100644 --- a/shared-bindings/digitalio/DigitalInOut.h +++ b/shared-bindings/digitalio/DigitalInOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIGITALINOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIGITALINOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/digitalio/DigitalInOut.h" @@ -55,5 +54,3 @@ digitalio_digitalinout_obj_t *assert_digitalinout(mp_obj_t obj); volatile uint32_t *common_hal_digitalio_digitalinout_get_reg(digitalio_digitalinout_obj_t *self, digitalinout_reg_op_t op, uint32_t *mask); bool common_hal_digitalio_has_reg_op(digitalinout_reg_op_t op); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIGITALINOUT_H diff --git a/shared-bindings/digitalio/Direction.h b/shared-bindings/digitalio/Direction.h index 8f2c884942d8b..676ad3dc9b830 100644 --- a/shared-bindings/digitalio/Direction.h +++ b/shared-bindings/digitalio/Direction.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIRECTION_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIRECTION_H +#pragma once #include "py/obj.h" @@ -21,5 +20,3 @@ extern const mp_obj_type_t digitalio_direction_type; extern const digitalio_direction_obj_t digitalio_direction_input_obj; extern const digitalio_direction_obj_t digitalio_direction_output_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DIRECTION_H diff --git a/shared-bindings/digitalio/DriveMode.h b/shared-bindings/digitalio/DriveMode.h index 7ff8f9f673eee..515b8e4239cbe 100644 --- a/shared-bindings/digitalio/DriveMode.h +++ b/shared-bindings/digitalio/DriveMode.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DRIVEMODE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DRIVEMODE_H +#pragma once #include "py/obj.h" @@ -22,5 +21,3 @@ extern const mp_obj_type_t digitalio_drive_mode_type; extern const digitalio_drive_mode_obj_t digitalio_drive_mode_push_pull_obj; extern const digitalio_drive_mode_obj_t digitalio_drive_mode_open_drain_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_DRIVEMODE_H diff --git a/shared-bindings/digitalio/Pull.h b/shared-bindings/digitalio/Pull.h index f027a82e425df..abbc07b89e9e4 100644 --- a/shared-bindings/digitalio/Pull.h +++ b/shared-bindings/digitalio/Pull.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_PULL_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_PULL_H +#pragma once #include "py/obj.h" @@ -24,5 +23,3 @@ extern const digitalio_pull_obj_t digitalio_pull_up_obj; extern const digitalio_pull_obj_t digitalio_pull_down_obj; digitalio_pull_t validate_pull(mp_rom_obj_t obj, qstr arg_name); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO_PULL_H diff --git a/shared-bindings/digitalio/__init__.h b/shared-bindings/digitalio/__init__.h index 186c5bcefa7cd..48f52ceb0f3d5 100644 --- a/shared-bindings/digitalio/__init__.h +++ b/shared-bindings/digitalio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DIGITALIO___INIT___H diff --git a/shared-bindings/displayio/Bitmap.h b/shared-bindings/displayio/Bitmap.h index 4d0789b24e390..8a6a2b2ee3165 100644 --- a/shared-bindings/displayio/Bitmap.h +++ b/shared-bindings/displayio/Bitmap.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_BITMAP_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_BITMAP_H +#pragma once #include "shared-module/displayio/Bitmap.h" @@ -27,5 +26,3 @@ void common_hal_displayio_bitmap_fill(displayio_bitmap_t *bitmap, uint32_t value int common_hal_displayio_bitmap_get_buffer(displayio_bitmap_t *self, mp_buffer_info_t *bufinfo, mp_uint_t flags); void common_hal_displayio_bitmap_deinit(displayio_bitmap_t *self); bool common_hal_displayio_bitmap_deinited(displayio_bitmap_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_BITMAP_H diff --git a/shared-bindings/displayio/ColorConverter.h b/shared-bindings/displayio/ColorConverter.h index 0bd38403d9dd2..d5a6816f25eed 100644 --- a/shared-bindings/displayio/ColorConverter.h +++ b/shared-bindings/displayio/ColorConverter.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_COLORCONVERTER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_COLORCONVERTER_H +#pragma once #include "shared-bindings/displayio/__init__.h" #include "shared-module/displayio/ColorConverter.h" @@ -23,5 +22,3 @@ bool common_hal_displayio_colorconverter_get_dither(displayio_colorconverter_t * void common_hal_displayio_colorconverter_make_transparent(displayio_colorconverter_t *self, uint32_t transparent_color); void common_hal_displayio_colorconverter_make_opaque(displayio_colorconverter_t *self, uint32_t transparent_color); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_COLORCONVERTER_H diff --git a/shared-bindings/displayio/Group.h b/shared-bindings/displayio/Group.h index 43b4dd60a17cb..2eb252159614e 100644 --- a/shared-bindings/displayio/Group.h +++ b/shared-bindings/displayio/Group.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_GROUP_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_GROUP_H +#pragma once #include "shared-module/displayio/Group.h" @@ -29,5 +28,3 @@ mp_obj_t common_hal_displayio_group_pop(displayio_group_t *self, size_t index); mp_int_t common_hal_displayio_group_index(displayio_group_t *self, mp_obj_t layer); mp_obj_t common_hal_displayio_group_get(displayio_group_t *self, size_t index); void common_hal_displayio_group_set(displayio_group_t *self, size_t index, mp_obj_t layer); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_GROUP_H diff --git a/shared-bindings/displayio/OnDiskBitmap.h b/shared-bindings/displayio/OnDiskBitmap.h index 80edea7b65a9d..229b428df85c0 100644 --- a/shared-bindings/displayio/OnDiskBitmap.h +++ b/shared-bindings/displayio/OnDiskBitmap.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_ONDISKBITMAP_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_ONDISKBITMAP_H +#pragma once #include "shared-module/displayio/OnDiskBitmap.h" #include "extmod/vfs_fat.h" @@ -20,4 +19,3 @@ uint32_t common_hal_displayio_ondiskbitmap_get_pixel(displayio_ondiskbitmap_t *b uint16_t common_hal_displayio_ondiskbitmap_get_height(displayio_ondiskbitmap_t *self); mp_obj_t common_hal_displayio_ondiskbitmap_get_pixel_shader(displayio_ondiskbitmap_t *self); uint16_t common_hal_displayio_ondiskbitmap_get_width(displayio_ondiskbitmap_t *self); -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_ONDISKBITMAP_H diff --git a/shared-bindings/displayio/Palette.h b/shared-bindings/displayio/Palette.h index 89340a990b965..5e75712108f0b 100644 --- a/shared-bindings/displayio/Palette.h +++ b/shared-bindings/displayio/Palette.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_PALETTE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_PALETTE_H +#pragma once #include "shared-module/displayio/Palette.h" @@ -22,5 +21,3 @@ bool common_hal_displayio_palette_get_dither(displayio_palette_t *self); void common_hal_displayio_palette_make_opaque(displayio_palette_t *self, uint32_t palette_index); void common_hal_displayio_palette_make_transparent(displayio_palette_t *self, uint32_t palette_index); bool common_hal_displayio_palette_is_transparent(displayio_palette_t *self, uint32_t palette_index); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_PALETTE_H diff --git a/shared-bindings/displayio/TileGrid.h b/shared-bindings/displayio/TileGrid.h index 9c3d8966de406..19af39fadeb37 100644 --- a/shared-bindings/displayio/TileGrid.h +++ b/shared-bindings/displayio/TileGrid.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_TILEGRID_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_TILEGRID_H +#pragma once #include "shared-module/displayio/TileGrid.h" @@ -50,5 +49,3 @@ void common_hal_displayio_tilegrid_set_tile(displayio_tilegrid_t *self, uint16_t // Private API for scrolling the TileGrid. void common_hal_displayio_tilegrid_set_top_left(displayio_tilegrid_t *self, uint16_t x, uint16_t y); void common_hal_displayio_tilegrid_set_all_tiles(displayio_tilegrid_t *self, uint8_t tile_index); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_TILEGRID_H diff --git a/shared-bindings/dualbank/__init__.h b/shared-bindings/dualbank/__init__.h index f40529f6cb414..fc06221ca529f 100644 --- a/shared-bindings/dualbank/__init__.h +++ b/shared-bindings/dualbank/__init__.h @@ -4,12 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DUALBANK___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DUALBANK___INIT___H +#pragma once #include "py/runtime.h" extern void common_hal_dualbank_switch(void); extern void common_hal_dualbank_flash(const void *buf, const size_t len, const size_t offset); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DUALBANK___INIT___H diff --git a/shared-bindings/fontio/BuiltinFont.h b/shared-bindings/fontio/BuiltinFont.h index 233b426cccd2e..f113629cd345a 100644 --- a/shared-bindings/fontio/BuiltinFont.h +++ b/shared-bindings/fontio/BuiltinFont.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO_BUILTINFONT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO_BUILTINFONT_H +#pragma once #include "shared-module/fontio/BuiltinFont.h" @@ -14,5 +13,3 @@ extern const mp_obj_type_t fontio_builtinfont_type; mp_obj_t common_hal_fontio_builtinfont_get_bitmap(const fontio_builtinfont_t *self); mp_obj_t common_hal_fontio_builtinfont_get_bounding_box(const fontio_builtinfont_t *self); mp_obj_t common_hal_fontio_builtinfont_get_glyph(const fontio_builtinfont_t *self, mp_uint_t codepoint); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO_BUILTINFONT_H diff --git a/shared-bindings/fontio/Glyph.h b/shared-bindings/fontio/Glyph.h index 395705629c906..d7270db52d40b 100644 --- a/shared-bindings/fontio/Glyph.h +++ b/shared-bindings/fontio/Glyph.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO_GLYPH_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO_GLYPH_H +#pragma once #include "py/objnamedtuple.h" extern const mp_obj_namedtuple_type_t fontio_glyph_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO_GLYPH_H diff --git a/shared-bindings/fontio/__init__.h b/shared-bindings/fontio/__init__.h index 2e8a436b505d9..76b9fa8e6a5d2 100644 --- a/shared-bindings/fontio/__init__.h +++ b/shared-bindings/fontio/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO___INIT___H #define MICROPY_INCLUDED_SHARED_BINDINGS_FONTIO___INIT___H diff --git a/shared-bindings/framebufferio/FramebufferDisplay.h b/shared-bindings/framebufferio/FramebufferDisplay.h index ce0b5bd3755d1..1a3bfa9a02650 100644 --- a/shared-bindings/framebufferio/FramebufferDisplay.h +++ b/shared-bindings/framebufferio/FramebufferDisplay.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_FRAMEBUFFERDISPLAY_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_FRAMEBUFFERDISPLAY_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -40,5 +39,3 @@ mp_obj_t common_hal_framebufferio_framebufferdisplay_framebuffer(framebufferio_f mp_obj_t common_hal_framebufferio_framebufferdisplay_get_root_group(framebufferio_framebufferdisplay_obj_t *self); mp_obj_t common_hal_framebufferio_framebufferdisplay_set_root_group(framebufferio_framebufferdisplay_obj_t *self, displayio_group_t *root_group); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_FRAMEBUFFERDISPLAY_H diff --git a/shared-bindings/framebufferio/__init__.h b/shared-bindings/framebufferio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-bindings/framebufferio/__init__.h +++ b/shared-bindings/framebufferio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-bindings/frequencyio/FrequencyIn.h b/shared-bindings/frequencyio/FrequencyIn.h index 656f6859d2472..dbc68cac91b69 100644 --- a/shared-bindings/frequencyio/FrequencyIn.h +++ b/shared-bindings/frequencyio/FrequencyIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_FREQUENCYIO_FREQUENCYIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_FREQUENCYIO_FREQUENCYIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/frequencyio/FrequencyIn.h" @@ -22,5 +21,3 @@ extern void common_hal_frequencyio_frequencyin_clear(frequencyio_frequencyin_obj extern uint32_t common_hal_frequencyio_frequencyin_get_item(frequencyio_frequencyin_obj_t *self); extern uint16_t common_hal_frequencyio_frequencyin_get_capture_period(frequencyio_frequencyin_obj_t *self); extern void common_hal_frequencyio_frequencyin_set_capture_period(frequencyio_frequencyin_obj_t *self, uint16_t capture_period); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_FREQUENCYIO_FREQUENCYIN_H diff --git a/shared-bindings/frequencyio/__init__.h b/shared-bindings/frequencyio/__init__.h index 02b30030c798e..3da23ce635829 100644 --- a/shared-bindings/frequencyio/__init__.h +++ b/shared-bindings/frequencyio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_FREQUENCYIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_FREQUENCYIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_FREQUENCYIO___INIT___H diff --git a/shared-bindings/gifio/OnDiskGif.h b/shared-bindings/gifio/OnDiskGif.h index 5a2dc876f5cb1..96e4cf0834121 100644 --- a/shared-bindings/gifio/OnDiskGif.h +++ b/shared-bindings/gifio/OnDiskGif.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_ONDISKGIF_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_ONDISKGIF_H +#pragma once #include "shared-module/gifio/OnDiskGif.h" #include "extmod/vfs_fat.h" @@ -28,4 +27,3 @@ int32_t common_hal_gifio_ondiskgif_get_min_delay(gifio_ondiskgif_t *self); int32_t common_hal_gifio_ondiskgif_get_max_delay(gifio_ondiskgif_t *self); void common_hal_gifio_ondiskgif_deinit(gifio_ondiskgif_t *self); bool common_hal_gifio_ondiskgif_deinited(gifio_ondiskgif_t *self); -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_ONDISKGIF_H diff --git a/shared-bindings/gifio/__init__.h b/shared-bindings/gifio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-bindings/gifio/__init__.h +++ b/shared-bindings/gifio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-bindings/hashlib/Hash.h b/shared-bindings/hashlib/Hash.h index ceac92158797c..f946a52ed19e7 100644 --- a/shared-bindings/hashlib/Hash.h +++ b/shared-bindings/hashlib/Hash.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_HASHLIB_HASH_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_HASHLIB_HASH_H +#pragma once #include "py/obj.h" @@ -23,5 +22,3 @@ mp_obj_t hashlib_hash_update(mp_obj_t self_in, mp_obj_t buf_in); void common_hal_hashlib_hash_update(hashlib_hash_obj_t *self, const uint8_t *data, size_t datalen); void common_hal_hashlib_hash_digest(hashlib_hash_obj_t *self, uint8_t *data, size_t datalen); size_t common_hal_hashlib_hash_get_digest_size(hashlib_hash_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_HASHLIB_HASH_H diff --git a/shared-bindings/hashlib/__init__.h b/shared-bindings/hashlib/__init__.h index 811e370f01059..39804d3ed9845 100644 --- a/shared-bindings/hashlib/__init__.h +++ b/shared-bindings/hashlib/__init__.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_HASHLIB___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_HASHLIB___INIT___H +#pragma once #include #include "shared-bindings/hashlib/Hash.h" bool common_hal_hashlib_new(hashlib_hash_obj_t *self, const char *algorithm); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_HASHLIB___INIT___H diff --git a/shared-bindings/i2ctarget/I2CTarget.h b/shared-bindings/i2ctarget/I2CTarget.h index 1782d0695fb47..6cfa19d3608b5 100644 --- a/shared-bindings/i2ctarget/I2CTarget.h +++ b/shared-bindings/i2ctarget/I2CTarget.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_I2C_TARGET_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_I2C_TARGET_H +#pragma once #include "py/obj.h" @@ -36,5 +35,3 @@ extern int common_hal_i2ctarget_i2c_target_read_byte(i2ctarget_i2c_target_obj_t extern int common_hal_i2ctarget_i2c_target_write_byte(i2ctarget_i2c_target_obj_t *self, uint8_t data); extern void common_hal_i2ctarget_i2c_target_ack(i2ctarget_i2c_target_obj_t *self, bool ack); extern void common_hal_i2ctarget_i2c_target_close(i2ctarget_i2c_target_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_I2C_TARGET_H diff --git a/shared-bindings/ipaddress/IPv4Address.h b/shared-bindings/ipaddress/IPv4Address.h index 81e928e6cb6f6..4b3d6eb0d2bd7 100644 --- a/shared-bindings/ipaddress/IPv4Address.h +++ b/shared-bindings/ipaddress/IPv4Address.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_IPADDRESS_IPV4ADDRESS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_IPADDRESS_IPV4ADDRESS_H +#pragma once #include "shared-module/ipaddress/IPv4Address.h" @@ -14,5 +13,3 @@ extern const mp_obj_type_t ipaddress_ipv4address_type; mp_obj_t common_hal_ipaddress_new_ipv4address(uint32_t value); void common_hal_ipaddress_ipv4address_construct(ipaddress_ipv4address_obj_t *self, uint8_t *buf, size_t len); mp_obj_t common_hal_ipaddress_ipv4address_get_packed(ipaddress_ipv4address_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_IPADDRESS_IPV4ADDRESS_H diff --git a/shared-bindings/ipaddress/__init__.h b/shared-bindings/ipaddress/__init__.h index 27efa4da65c8c..d9202b478d1fe 100644 --- a/shared-bindings/ipaddress/__init__.h +++ b/shared-bindings/ipaddress/__init__.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_IPADDRESS___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_IPADDRESS___INIT___H +#pragma once #include "shared-module/ipaddress/__init__.h" bool ipaddress_parse_ipv4address(const char *ip_str, size_t len, uint32_t *ip_out); mp_obj_t common_hal_ipaddress_new_ipv4address(uint32_t value); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_IPADDRESS___INIT___H diff --git a/shared-bindings/jpegio/JpegDecoder.h b/shared-bindings/jpegio/JpegDecoder.h index b520470cd534f..560586a871efc 100644 --- a/shared-bindings/jpegio/JpegDecoder.h +++ b/shared-bindings/jpegio/JpegDecoder.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "py/obj.h" #include "py/stream.h" #include "shared-module/displayio/Bitmap.h" diff --git a/shared-bindings/jpegio/__init__.h b/shared-bindings/jpegio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-bindings/jpegio/__init__.h +++ b/shared-bindings/jpegio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-bindings/keypad/Event.h b/shared-bindings/keypad/Event.h index 9f88b7e9aed17..13eefdcdc25ed 100644 --- a/shared-bindings/keypad/Event.h +++ b/shared-bindings/keypad/Event.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_EVENT__H -#define MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_EVENT__H +#pragma once #include "py/obj.h" #include "shared-module/keypad/Event.h" @@ -17,5 +16,3 @@ mp_int_t common_hal_keypad_event_get_key_number(keypad_event_obj_t *self); bool common_hal_keypad_event_get_pressed(keypad_event_obj_t *self); bool common_hal_keypad_event_get_released(keypad_event_obj_t *self); mp_obj_t common_hal_keypad_event_get_timestamp(keypad_event_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_EVENT__H diff --git a/shared-bindings/keypad/EventQueue.h b/shared-bindings/keypad/EventQueue.h index 9ab64a2aa4eca..893165e3220f1 100644 --- a/shared-bindings/keypad/EventQueue.h +++ b/shared-bindings/keypad/EventQueue.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_EVENTQUEUE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_EVENTQUEUE_H +#pragma once #include "shared-module/keypad/Event.h" #include "shared-module/keypad/EventQueue.h" @@ -23,5 +22,3 @@ bool common_hal_keypad_eventqueue_get_overflowed(keypad_eventqueue_obj_t *self); void common_hal_keypad_eventqueue_set_overflowed(keypad_eventqueue_obj_t *self, bool overflowed); void common_hal_keypad_eventqueue_set_event_handler(keypad_eventqueue_obj_t *self, void (*event_handler)(keypad_eventqueue_obj_t *)); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_EVENTQUEUE_H diff --git a/shared-bindings/keypad/KeyMatrix.h b/shared-bindings/keypad/KeyMatrix.h index 8d555cabb8afc..dfbef53be89b0 100644 --- a/shared-bindings/keypad/KeyMatrix.h +++ b/shared-bindings/keypad/KeyMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_KEYMATRIX_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_KEYMATRIX_H +#pragma once #include "py/objlist.h" #include "shared-module/keypad/KeyMatrix.h" @@ -21,5 +20,3 @@ mp_uint_t common_hal_keypad_keymatrix_row_column_to_key_number(keypad_keymatrix_ size_t common_hal_keypad_keymatrix_get_column_count(keypad_keymatrix_obj_t *self); size_t common_hal_keypad_keymatrix_get_row_count(keypad_keymatrix_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_KEYMATRIX_H diff --git a/shared-bindings/keypad/Keys.h b/shared-bindings/keypad/Keys.h index 4ee4c10782723..b14ee0b6d1b7a 100644 --- a/shared-bindings/keypad/Keys.h +++ b/shared-bindings/keypad/Keys.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_KEYS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_KEYS_H +#pragma once #include "py/objlist.h" #include "shared-module/keypad/Keys.h" @@ -15,5 +14,3 @@ extern const mp_obj_type_t keypad_keys_type; void common_hal_keypad_keys_construct(keypad_keys_obj_t *self, mp_uint_t num_pins, const mcu_pin_obj_t *pins[], bool value_when_pressed, bool pull, mp_float_t interval, size_t max_events, uint8_t debounce_threshold); void common_hal_keypad_keys_deinit(keypad_keys_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_KEYS_H diff --git a/shared-bindings/keypad/ShiftRegisterKeys.h b/shared-bindings/keypad/ShiftRegisterKeys.h index 7c92f98a4fa48..b164672638b7d 100644 --- a/shared-bindings/keypad/ShiftRegisterKeys.h +++ b/shared-bindings/keypad/ShiftRegisterKeys.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_SHIFTREGISTERKEYS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_SHIFTREGISTERKEYS_H +#pragma once #include "py/objlist.h" #include "shared-module/keypad/ShiftRegisterKeys.h" @@ -15,5 +14,3 @@ extern const mp_obj_type_t keypad_shiftregisterkeys_type; void common_hal_keypad_shiftregisterkeys_construct(keypad_shiftregisterkeys_obj_t *self, const mcu_pin_obj_t *clock_pin, mp_uint_t num_data_pins, const mcu_pin_obj_t *data_pins[], const mcu_pin_obj_t *latch_pin, bool value_to_latch, size_t num_key_count, size_t key_counts[], bool value_when_pressed, mp_float_t interval, size_t max_events, uint8_t debounce_threshold); void common_hal_keypad_shiftregisterkeys_deinit(keypad_shiftregisterkeys_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_SHIFTREGISTERKEYS_H diff --git a/shared-bindings/keypad/__init__.h b/shared-bindings/keypad/__init__.h index 05d058353a5db..7f8079ecdc921 100644 --- a/shared-bindings/keypad/__init__.h +++ b/shared-bindings/keypad/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_BINDINGS_KEYPAD_H -#define SHARED_BINDINGS_KEYPAD_H +#pragma once #include "py/obj.h" #include "py/objproperty.h" @@ -20,5 +19,3 @@ MP_DECLARE_CONST_FUN_OBJ_1(keypad_generic_reset_obj); extern const mp_obj_property_t keypad_generic_events_obj; extern const mp_obj_property_t keypad_generic_key_count_obj; - -#endif // SHARED_BINDINGS_KEYPAD_H diff --git a/shared-bindings/keypad_demux/DemuxKeyMatrix.h b/shared-bindings/keypad_demux/DemuxKeyMatrix.h index 607365bd223e6..fc7a11a0d37f3 100644 --- a/shared-bindings/keypad_demux/DemuxKeyMatrix.h +++ b/shared-bindings/keypad_demux/DemuxKeyMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_DEMUX_DEMUXKEYMATRIX_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_DEMUX_DEMUXKEYMATRIX_H +#pragma once #include "py/objlist.h" #include "shared-module/keypad_demux/DemuxKeyMatrix.h" @@ -21,5 +20,3 @@ mp_uint_t common_hal_keypad_demux_demuxkeymatrix_row_column_to_key_number(keypad size_t common_hal_keypad_demux_demuxkeymatrix_get_column_count(keypad_demux_demuxkeymatrix_obj_t *self); size_t common_hal_keypad_demux_demuxkeymatrix_get_row_count(keypad_demux_demuxkeymatrix_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_KEYPAD_DEMUX_DEMUXKEYMATRIX_H diff --git a/shared-bindings/memorymap/AddressRange.h b/shared-bindings/memorymap/AddressRange.h index cd04f7f685518..32bd0562a88d5 100644 --- a/shared-bindings/memorymap/AddressRange.h +++ b/shared-bindings/memorymap/AddressRange.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMAP_ADDRESSRANGE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMAP_ADDRESSRANGE_H +#pragma once #include "common-hal/memorymap/AddressRange.h" @@ -22,5 +21,3 @@ void common_hal_memorymap_addressrange_set_bytes(const memorymap_addressrange_ob // also leverage the compiler to validate uses are expected. void common_hal_memorymap_addressrange_get_bytes(const memorymap_addressrange_obj_t *self, size_t start_index, size_t len, uint8_t *values); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMAP_ADDRESSRANGE_H diff --git a/shared-bindings/memorymap/__init__.h b/shared-bindings/memorymap/__init__.h index ced885a4f6697..5762fd34fcaff 100644 --- a/shared-bindings/memorymap/__init__.h +++ b/shared-bindings/memorymap/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef SHARED_BINDINGS_MEMORYMAP_H #define SHARED_BINDINGS_MEMORYMAP_H diff --git a/shared-bindings/memorymonitor/AllocationAlarm.h b/shared-bindings/memorymonitor/AllocationAlarm.h index 9dbfe8c2a2711..7b5904d1315c7 100644 --- a/shared-bindings/memorymonitor/AllocationAlarm.h +++ b/shared-bindings/memorymonitor/AllocationAlarm.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR_ALLOCATIONALARM_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR_ALLOCATIONALARM_H +#pragma once #include "shared-module/memorymonitor/AllocationAlarm.h" @@ -15,5 +14,3 @@ void common_hal_memorymonitor_allocationalarm_construct(memorymonitor_allocation void common_hal_memorymonitor_allocationalarm_pause(memorymonitor_allocationalarm_obj_t *self); void common_hal_memorymonitor_allocationalarm_resume(memorymonitor_allocationalarm_obj_t *self); void common_hal_memorymonitor_allocationalarm_set_ignore(memorymonitor_allocationalarm_obj_t *self, mp_int_t count); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR_ALLOCATIONALARM_H diff --git a/shared-bindings/memorymonitor/AllocationSize.h b/shared-bindings/memorymonitor/AllocationSize.h index 9790ae79f046c..4ec2f5ebe7059 100644 --- a/shared-bindings/memorymonitor/AllocationSize.h +++ b/shared-bindings/memorymonitor/AllocationSize.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR_ALLOCATIONSIZE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR_ALLOCATIONSIZE_H +#pragma once #include "shared-module/memorymonitor/AllocationSize.h" @@ -18,5 +17,3 @@ extern void common_hal_memorymonitor_allocationsize_clear(memorymonitor_allocati extern size_t common_hal_memorymonitor_allocationsize_get_bytes_per_block(memorymonitor_allocationsize_obj_t *self); extern uint16_t common_hal_memorymonitor_allocationsize_get_len(memorymonitor_allocationsize_obj_t *self); extern uint16_t common_hal_memorymonitor_allocationsize_get_item(memorymonitor_allocationsize_obj_t *self, int16_t index); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR_ALLOCATIONSIZE_H diff --git a/shared-bindings/memorymonitor/__init__.h b/shared-bindings/memorymonitor/__init__.h index 3c9bdd9b4133c..28480bea7b52b 100644 --- a/shared-bindings/memorymonitor/__init__.h +++ b/shared-bindings/memorymonitor/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR___INIT___H +#pragma once #include "py/obj.h" @@ -25,5 +24,3 @@ void memorymonitor_exception_print(const mp_print_t *print, mp_obj_t o_in, mp_pr extern const mp_obj_type_t mp_type_memorymonitor_AllocationError; NORETURN void mp_raise_memorymonitor_AllocationError(mp_rom_error_text_t msg, ...); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MEMORYMONITOR___INIT___H diff --git a/shared-bindings/microcontroller/Pin.h b/shared-bindings/microcontroller/Pin.h index 7064d81980d35..1245b5f23e4a7 100644 --- a/shared-bindings/microcontroller/Pin.h +++ b/shared-bindings/microcontroller/Pin.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "py/obj.h" @@ -39,5 +38,3 @@ void common_hal_mcu_pin_reset_number(uint8_t pin_no); void shared_bindings_microcontroller_pin_print(const mp_print_t *print, mp_obj_t self_in, mp_print_kind_t kind); #define COMMON_HAL_MCU_NO_PIN ((uint8_t)0xff) - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PIN_H diff --git a/shared-bindings/microcontroller/Processor.h b/shared-bindings/microcontroller/Processor.h index 608e6b8f54b95..843bf56200560 100644 --- a/shared-bindings/microcontroller/Processor.h +++ b/shared-bindings/microcontroller/Processor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PROCESSOR_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PROCESSOR_H +#pragma once #include "py/obj.h" @@ -20,5 +19,3 @@ float common_hal_mcu_processor_get_temperature(void); void common_hal_mcu_processor_get_uid(uint8_t raw_id[]); float common_hal_mcu_processor_get_voltage(void); void common_hal_mcu_processor_set_frequency(mcu_processor_obj_t *self, uint32_t frequency); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_PROCESSOR_H diff --git a/shared-bindings/microcontroller/ResetReason.h b/shared-bindings/microcontroller/ResetReason.h index 6c8b2448fe375..61ff80639a624 100644 --- a/shared-bindings/microcontroller/ResetReason.h +++ b/shared-bindings/microcontroller/ResetReason.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MCU_RESET_REASON__H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MCU_RESET_REASON__H +#pragma once #include "py/obj.h" #include "py/enum.h" @@ -22,5 +21,3 @@ typedef enum { } mcu_reset_reason_t; extern const mp_obj_type_t mcu_reset_reason_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MCU_RESET_REASON__H diff --git a/shared-bindings/microcontroller/RunMode.h b/shared-bindings/microcontroller/RunMode.h index 0eb81e1eb4e38..2f918fb39faff 100644 --- a/shared-bindings/microcontroller/RunMode.h +++ b/shared-bindings/microcontroller/RunMode.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_RUNMODE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_RUNMODE_H +#pragma once #include "py/obj.h" @@ -26,5 +25,3 @@ extern const mcu_runmode_obj_t mcu_runmode_uf2_obj; extern const mcu_runmode_obj_t mcu_runmode_normal_obj; extern const mcu_runmode_obj_t mcu_runmode_safe_mode_obj; extern const mcu_runmode_obj_t mcu_runmode_bootloader_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER_RUNMODE_H diff --git a/shared-bindings/microcontroller/__init__.h b/shared-bindings/microcontroller/__init__.h index 3a74b67b38bdf..a94cca7b69726 100644 --- a/shared-bindings/microcontroller/__init__.h +++ b/shared-bindings/microcontroller/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER___INIT___H +#pragma once #include "py/obj.h" #include "py/mpconfig.h" @@ -44,5 +43,3 @@ extern const nvm_bytearray_obj_t common_hal_mcu_nvm_obj; #include "common-hal/watchdog/WatchDogTimer.h" extern watchdog_watchdogtimer_obj_t common_hal_mcu_watchdogtimer_obj; #endif - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MICROCONTROLLER___INIT___H diff --git a/shared-bindings/msgpack/ExtType.h b/shared-bindings/msgpack/ExtType.h index 116028b88ee95..97709d46ec6d0 100644 --- a/shared-bindings/msgpack/ExtType.h +++ b/shared-bindings/msgpack/ExtType.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MSGPACK_EXTTYPE___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MSGPACK_EXTTYPE___INIT___H +#pragma once #include "py/obj.h" @@ -16,5 +15,3 @@ typedef struct { } mod_msgpack_extype_obj_t; extern const mp_obj_type_t mod_msgpack_exttype_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MSGPACK_EXTTYPE___INIT___H diff --git a/shared-bindings/msgpack/__init__.h b/shared-bindings/msgpack/__init__.h index 78785d7df519d..67e79823d7c0b 100644 --- a/shared-bindings/msgpack/__init__.h +++ b/shared-bindings/msgpack/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_MSGPACK___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_MSGPACK___INIT___H +#pragma once #include "py/obj.h" // nothing for now - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_MSGPACK___INIT___H diff --git a/shared-bindings/neopixel_write/__init__.h b/shared-bindings/neopixel_write/__init__.h index 20fdc6eb175ee..61e0e82fa3049 100644 --- a/shared-bindings/neopixel_write/__init__.h +++ b/shared-bindings/neopixel_write/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_NEOPIXEL_WRITE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_NEOPIXEL_WRITE_H +#pragma once #include #include @@ -13,5 +12,3 @@ #include "common-hal/digitalio/DigitalInOut.h" extern void common_hal_neopixel_write(const digitalio_digitalinout_obj_t *gpio, uint8_t *pixels, uint32_t numBytes); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_NEOPIXEL_WRITE_H diff --git a/shared-bindings/nvm/ByteArray.h b/shared-bindings/nvm/ByteArray.h index 7855cc8a6d9dc..dd2633522b260 100644 --- a/shared-bindings/nvm/ByteArray.h +++ b/shared-bindings/nvm/ByteArray.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_NVM_BYTEARRAY_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_NVM_BYTEARRAY_H +#pragma once #include "common-hal/nvm/ByteArray.h" @@ -19,5 +18,3 @@ bool common_hal_nvm_bytearray_set_bytes(const nvm_bytearray_obj_t *self, // also leverage the compiler to validate uses are expected. void common_hal_nvm_bytearray_get_bytes(const nvm_bytearray_obj_t *self, uint32_t start_index, uint32_t len, uint8_t *values); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_NVM_BYTEARRAY_H diff --git a/shared-bindings/nvm/__init__.h b/shared-bindings/nvm/__init__.h index 9c037b4816cab..96c6efa67463b 100644 --- a/shared-bindings/nvm/__init__.h +++ b/shared-bindings/nvm/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef SHARED_BINDINGS_NVM_H #define SHARED_BINDINGS_NVM_H diff --git a/shared-bindings/onewireio/OneWire.h b/shared-bindings/onewireio/OneWire.h index 39ccf25e18284..4d3c22dea507f 100644 --- a/shared-bindings/onewireio/OneWire.h +++ b/shared-bindings/onewireio/OneWire.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ONEWIREIO_ONEWIRE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ONEWIREIO_ONEWIRE_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "shared-module/onewireio/OneWire.h" @@ -19,5 +18,3 @@ extern bool common_hal_onewireio_onewire_deinited(onewireio_onewire_obj_t *self) extern bool common_hal_onewireio_onewire_reset(onewireio_onewire_obj_t *self); extern bool common_hal_onewireio_onewire_read_bit(onewireio_onewire_obj_t *self); extern void common_hal_onewireio_onewire_write_bit(onewireio_onewire_obj_t *self, bool bit); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ONEWIREIO_ONEWIRE_H diff --git a/shared-bindings/onewireio/__init__.h b/shared-bindings/onewireio/__init__.h index 370e1d641aef6..48f52ceb0f3d5 100644 --- a/shared-bindings/onewireio/__init__.h +++ b/shared-bindings/onewireio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ONEWIREIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ONEWIREIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ONEWIREIO___INIT___H diff --git a/shared-bindings/os/__init__.h b/shared-bindings/os/__init__.h index 228af63199dd7..f273708cf4ed9 100644 --- a/shared-bindings/os/__init__.h +++ b/shared-bindings/os/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_OS___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_OS___INIT___H +#pragma once #include #include @@ -31,5 +30,3 @@ void common_hal_os_utime(const char *path, mp_obj_t times); // Returns true if data was correctly sourced from a true random number generator. bool common_hal_os_urandom(uint8_t *buffer, mp_uint_t length); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_OS___INIT___H diff --git a/shared-bindings/ps2io/Ps2.h b/shared-bindings/ps2io/Ps2.h index 9cddf86443d0e..32580804343af 100644 --- a/shared-bindings/ps2io/Ps2.h +++ b/shared-bindings/ps2io/Ps2.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PS2IO_PS2_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PS2IO_PS2_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/ps2io/Ps2.h" @@ -21,5 +20,3 @@ extern uint16_t common_hal_ps2io_ps2_get_len(ps2io_ps2_obj_t *self); extern int16_t common_hal_ps2io_ps2_popleft(ps2io_ps2_obj_t *self); extern int16_t common_hal_ps2io_ps2_sendcmd(ps2io_ps2_obj_t *self, uint8_t b); extern uint16_t common_hal_ps2io_ps2_clear_errors(ps2io_ps2_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PS2IO_PS2_H diff --git a/shared-bindings/ps2io/__init__.h b/shared-bindings/ps2io/__init__.h index 822e8617cf654..25aceee328c15 100644 --- a/shared-bindings/ps2io/__init__.h +++ b/shared-bindings/ps2io/__init__.h @@ -5,11 +5,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PS2IO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PS2IO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PS2IO___INIT___H diff --git a/shared-bindings/pulseio/PulseIn.h b/shared-bindings/pulseio/PulseIn.h index 1667f0ccba4fa..2ea8a082d369b 100644 --- a/shared-bindings/pulseio/PulseIn.h +++ b/shared-bindings/pulseio/PulseIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO_PULSEIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO_PULSEIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/pulseio/PulseIn.h" @@ -24,5 +23,3 @@ extern uint16_t common_hal_pulseio_pulsein_get_maxlen(pulseio_pulsein_obj_t *sel extern bool common_hal_pulseio_pulsein_get_paused(pulseio_pulsein_obj_t *self); extern uint16_t common_hal_pulseio_pulsein_get_len(pulseio_pulsein_obj_t *self); extern uint16_t common_hal_pulseio_pulsein_get_item(pulseio_pulsein_obj_t *self, int16_t index); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO_PULSEIN_H diff --git a/shared-bindings/pulseio/PulseOut.h b/shared-bindings/pulseio/PulseOut.h index 1a13e3adc708d..ad332c68ab14e 100644 --- a/shared-bindings/pulseio/PulseOut.h +++ b/shared-bindings/pulseio/PulseOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO_PULSEOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO_PULSEOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/pulseio/PulseOut.h" @@ -22,5 +21,3 @@ extern void common_hal_pulseio_pulseout_deinit(pulseio_pulseout_obj_t *self); extern bool common_hal_pulseio_pulseout_deinited(pulseio_pulseout_obj_t *self); extern void common_hal_pulseio_pulseout_send(pulseio_pulseout_obj_t *self, uint16_t *pulses, uint16_t len); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO_PULSEOUT_H diff --git a/shared-bindings/pulseio/__init__.h b/shared-bindings/pulseio/__init__.h index 3dfa6cb2de9fe..48f52ceb0f3d5 100644 --- a/shared-bindings/pulseio/__init__.h +++ b/shared-bindings/pulseio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PULSEIO___INIT___H diff --git a/shared-bindings/pwmio/PWMOut.h b/shared-bindings/pwmio/PWMOut.h index c2de5117f18ba..d8bab9782283f 100644 --- a/shared-bindings/pwmio/PWMOut.h +++ b/shared-bindings/pwmio/PWMOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PWMIO_PWMOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PWMIO_PWMOUT_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/pwmio/PWMOut.h" @@ -41,5 +40,3 @@ extern void common_hal_pwmio_pwmout_never_reset(pwmio_pwmout_obj_t *self); extern void common_hal_pwmio_pwmout_reset_ok(pwmio_pwmout_obj_t *self); extern void common_hal_pwmio_pwmout_raise_error(pwmout_result_t result); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PWMIO_PWMOUT_H diff --git a/shared-bindings/pwmio/__init__.h b/shared-bindings/pwmio/__init__.h index 4da28008fad63..48f52ceb0f3d5 100644 --- a/shared-bindings/pwmio/__init__.h +++ b/shared-bindings/pwmio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_PWMIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_PWMIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_PWMIO___INIT___H diff --git a/shared-bindings/rainbowio/__init__.h b/shared-bindings/rainbowio/__init__.h index 17db6331eb693..d688c13300050 100644 --- a/shared-bindings/rainbowio/__init__.h +++ b/shared-bindings/rainbowio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef CP_SHARED_BINDINGS_RAINBOWIO_INIT_H -#define CP_SHARED_BINDINGS_RAINBOWIO_INIT_H +#pragma once #include #include "py/misc.h" int32_t colorwheel(mp_float_t pos); - -#endif // CP_SHARED_BINDINGS_RAINBOWIO_INIT_H diff --git a/shared-bindings/random/__init__.h b/shared-bindings/random/__init__.h index 6006701ae5cdb..27f255d5d8b52 100644 --- a/shared-bindings/random/__init__.h +++ b/shared-bindings/random/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_RANDOM___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_RANDOM___INIT___H +#pragma once // This depends on shared_module because nearly all functionality is port // agnostic. The random module only depends on the common_hal_os_urandom or @@ -16,5 +15,3 @@ mp_uint_t shared_modules_random_getrandbits(uint8_t n); mp_int_t shared_modules_random_randrange(mp_int_t start, mp_int_t stop, mp_int_t step); mp_float_t shared_modules_random_random(void); mp_float_t shared_modules_random_uniform(mp_float_t a, mp_float_t b); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_RANDOM___INIT___H diff --git a/shared-bindings/rotaryio/IncrementalEncoder.h b/shared-bindings/rotaryio/IncrementalEncoder.h index e517cdaf88898..1c60dd69a1937 100644 --- a/shared-bindings/rotaryio/IncrementalEncoder.h +++ b/shared-bindings/rotaryio/IncrementalEncoder.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ROTARYIO_INCREMENTALENCODER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ROTARYIO_INCREMENTALENCODER_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "common-hal/rotaryio/IncrementalEncoder.h" @@ -22,5 +21,3 @@ extern void common_hal_rotaryio_incrementalencoder_set_position(rotaryio_increme extern mp_int_t common_hal_rotaryio_incrementalencoder_get_divisor(rotaryio_incrementalencoder_obj_t *self); extern void common_hal_rotaryio_incrementalencoder_set_divisor(rotaryio_incrementalencoder_obj_t *self, mp_int_t new_divisor); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ROTARYIO_INCREMENTALENCODER_H diff --git a/shared-bindings/rotaryio/__init__.h b/shared-bindings/rotaryio/__init__.h index 9e1e032b0dab0..f7ea9dc235218 100644 --- a/shared-bindings/rotaryio/__init__.h +++ b/shared-bindings/rotaryio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ROTARYIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ROTARYIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ROTARYIO___INIT___H diff --git a/shared-bindings/rtc/RTC.h b/shared-bindings/rtc/RTC.h index 720eb9eac99f3..4fc67fd919d30 100644 --- a/shared-bindings/rtc/RTC.h +++ b/shared-bindings/rtc/RTC.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_RTC_RTC_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_RTC_RTC_H +#pragma once #include #include @@ -26,5 +25,3 @@ typedef struct _rtc_rtc_obj_t { } rtc_rtc_obj_t; extern const rtc_rtc_obj_t rtc_rtc_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_RTC_RTC_H diff --git a/shared-bindings/rtc/__init__.h b/shared-bindings/rtc/__init__.h index 13dd2dd32e355..71c642ffde59f 100644 --- a/shared-bindings/rtc/__init__.h +++ b/shared-bindings/rtc/__init__.h @@ -4,12 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H +#pragma once #include "py/obj.h" extern void rtc_reset(void); extern mp_obj_t rtc_get_time_source_time(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_RTC___INIT___H diff --git a/shared-bindings/sdcardio/__init__.h b/shared-bindings/sdcardio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-bindings/sdcardio/__init__.h +++ b/shared-bindings/sdcardio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-bindings/sdioio/SDCard.h b/shared-bindings/sdioio/SDCard.h index 1a7506209d8b4..dfeaf8fca8962 100644 --- a/shared-bindings/sdioio/SDCard.h +++ b/shared-bindings/sdioio/SDCard.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SDIO_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SDIO_H +#pragma once #include "py/obj.h" @@ -42,5 +41,3 @@ int common_hal_sdioio_sdcard_writeblocks(sdioio_sdcard_obj_t *self, uint32_t sta // This is used by the supervisor to claim SDIO devices indefinitely. extern void common_hal_sdioio_sdcard_never_reset(sdioio_sdcard_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_BUSIO_SDIO_H diff --git a/shared-bindings/sdioio/__init__.h b/shared-bindings/sdioio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-bindings/sdioio/__init__.h +++ b/shared-bindings/sdioio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-bindings/sharpdisplay/__init__.h b/shared-bindings/sharpdisplay/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-bindings/sharpdisplay/__init__.h +++ b/shared-bindings/sharpdisplay/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-bindings/socketpool/Socket.h b/shared-bindings/socketpool/Socket.h index 25782974f2218..25ba7ecff558a 100644 --- a/shared-bindings/socketpool/Socket.h +++ b/shared-bindings/socketpool/Socket.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKET_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKET_H +#pragma once #include "common-hal/socketpool/Socket.h" @@ -44,5 +43,3 @@ void socketpool_socket_move(socketpool_socket_obj_t *self, socketpool_socket_obj // Resets the socket object state so it appears closed and disconnected. This only works on // uninitialized memory. void socketpool_socket_reset(socketpool_socket_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKET_H diff --git a/shared-bindings/socketpool/SocketPool.h b/shared-bindings/socketpool/SocketPool.h index fedf2c9e8a50c..7088961477f77 100644 --- a/shared-bindings/socketpool/SocketPool.h +++ b/shared-bindings/socketpool/SocketPool.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKETPOOL_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKETPOOL_H +#pragma once #include "common-hal/socketpool/SocketPool.h" @@ -33,5 +32,3 @@ bool socketpool_socket(socketpool_socketpool_obj_t *self, int proto, socketpool_socket_obj_t *sock); NORETURN void common_hal_socketpool_socketpool_raise_gaierror_noname(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL_SOCKETPOOL_H diff --git a/shared-bindings/socketpool/__init__.h b/shared-bindings/socketpool/__init__.h index 4620a736042c2..d659e76adc396 100644 --- a/shared-bindings/socketpool/__init__.h +++ b/shared-bindings/socketpool/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL___INIT___H +#pragma once void socketpool_user_reset(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_SOCKETPOOL___INIT___H diff --git a/shared-bindings/ssl/SSLContext.h b/shared-bindings/ssl/SSLContext.h index b2bc4d24e2c8b..e3654e707c23c 100644 --- a/shared-bindings/ssl/SSLContext.h +++ b/shared-bindings/ssl/SSLContext.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_SSL_SSLCONTEXT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_SSL_SSLCONTEXT_H +#pragma once #if CIRCUITPY_SSL_MBEDTLS #include "shared-module/ssl/SSLContext.h" @@ -30,5 +29,3 @@ void common_hal_ssl_sslcontext_set_default_verify_paths(ssl_sslcontext_obj_t *se bool common_hal_ssl_sslcontext_get_check_hostname(ssl_sslcontext_obj_t *self); void common_hal_ssl_sslcontext_set_check_hostname(ssl_sslcontext_obj_t *self, bool value); void common_hal_ssl_sslcontext_load_cert_chain(ssl_sslcontext_obj_t *self, mp_buffer_info_t *cert_buf, mp_buffer_info_t *key_buf); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_SSL_SSLCONTEXT_H diff --git a/shared-bindings/ssl/__init__.h b/shared-bindings/ssl/__init__.h index 5e185e412f7dd..c011e01537958 100644 --- a/shared-bindings/ssl/__init__.h +++ b/shared-bindings/ssl/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_SSL___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_SSL___INIT___H +#pragma once #if CIRCUITPY_SSL_MBEDTLS #include "shared-module/ssl/SSLContext.h" @@ -14,5 +13,3 @@ #endif void common_hal_ssl_create_default_context(ssl_sslcontext_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_SSL___INIT___H diff --git a/shared-bindings/storage/__init__.h b/shared-bindings/storage/__init__.h index 01b09e25debfe..7ab5fc97bd7e4 100644 --- a/shared-bindings/storage/__init__.h +++ b/shared-bindings/storage/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_STORAGE___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_STORAGE___INIT___H +#pragma once #include #include @@ -21,5 +20,3 @@ void common_hal_storage_erase_filesystem(bool extended); bool common_hal_storage_disable_usb_drive(void); bool common_hal_storage_enable_usb_drive(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_STORAGE___INIT___H diff --git a/shared-bindings/struct/__init__.h b/shared-bindings/struct/__init__.h index bae3338157ccd..05747214d323b 100644 --- a/shared-bindings/struct/__init__.h +++ b/shared-bindings/struct/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_STRUCT___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_STRUCT___INIT___H +#pragma once void shared_modules_struct_pack_into(mp_obj_t fmt_in, byte *p, byte *end_p, size_t n_args, const mp_obj_t *args); mp_uint_t shared_modules_struct_calcsize(mp_obj_t fmt_in); mp_obj_tuple_t *shared_modules_struct_unpack_from(mp_obj_t fmt_in, byte *p, byte *end_p, bool exact_size); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_RANDOM___INIT___H diff --git a/shared-bindings/supervisor/StatusBar.h b/shared-bindings/supervisor/StatusBar.h index b54ad44972adc..5c25bd0fa7965 100644 --- a/shared-bindings/supervisor/StatusBar.h +++ b/shared-bindings/supervisor/StatusBar.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_STATUS_BAR_STATUS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_STATUS_BAR_STATUS_H +#pragma once #include #include "py/obj.h" @@ -18,5 +17,3 @@ void shared_module_supervisor_status_bar_set_console(supervisor_status_bar_obj_t bool shared_module_supervisor_status_bar_get_display(supervisor_status_bar_obj_t *self); void shared_module_supervisor_status_bar_set_display(supervisor_status_bar_obj_t *self, bool enabled); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_SUPERVISOR_STATUS_BAR_H diff --git a/shared-bindings/terminalio/Terminal.h b/shared-bindings/terminalio/Terminal.h index cd5b22025fe2e..893db4d131128 100644 --- a/shared-bindings/terminalio/Terminal.h +++ b/shared-bindings/terminalio/Terminal.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_TERMINALIO_TERMINAL_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_TERMINALIO_TERMINAL_H +#pragma once #include "shared-module/terminalio/Terminal.h" @@ -21,5 +20,3 @@ extern size_t common_hal_terminalio_terminal_write(terminalio_terminal_obj_t *se const uint8_t *data, size_t len, int *errcode); extern bool common_hal_terminalio_terminal_ready_to_tx(terminalio_terminal_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_TERMINALIO_TERMINAL_H diff --git a/shared-bindings/terminalio/__init__.h b/shared-bindings/terminalio/__init__.h index ef81dbd7238ed..e23230b3f7b8d 100644 --- a/shared-bindings/terminalio/__init__.h +++ b/shared-bindings/terminalio/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_TERMINALIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_TERMINALIO___INIT___H +#pragma once // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_TERMINALIO___INIT___H diff --git a/shared-bindings/time/__init__.h b/shared-bindings/time/__init__.h index e8afaaf2f18a4..2d12a86182915 100644 --- a/shared-bindings/time/__init__.h +++ b/shared-bindings/time/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_TIME___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_TIME___INIT___H +#pragma once #include #include @@ -19,5 +18,3 @@ extern void struct_time_to_tm(mp_obj_t t, timeutils_struct_time_t *tm); extern uint64_t common_hal_time_monotonic_ms(void); extern uint64_t common_hal_time_monotonic_ns(void); extern void common_hal_time_delay_ms(uint32_t); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_TIME___INIT___H diff --git a/shared-bindings/touchio/TouchIn.h b/shared-bindings/touchio/TouchIn.h index c8055e9ef5198..0ab510394792f 100644 --- a/shared-bindings/touchio/TouchIn.h +++ b/shared-bindings/touchio/TouchIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO_TOUCHIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO_TOUCHIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" @@ -24,5 +23,3 @@ bool common_hal_touchio_touchin_get_value(touchio_touchin_obj_t *self); uint16_t common_hal_touchio_touchin_get_raw_value(touchio_touchin_obj_t *self); uint16_t common_hal_touchio_touchin_get_threshold(touchio_touchin_obj_t *self); void common_hal_touchio_touchin_set_threshold(touchio_touchin_obj_t *self, uint16_t new_threshold); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO_TOUCHIN_H diff --git a/shared-bindings/touchio/__init__.h b/shared-bindings/touchio/__init__.h index 58f21f0860d3c..48f52ceb0f3d5 100644 --- a/shared-bindings/touchio/__init__.h +++ b/shared-bindings/touchio/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO___INIT___H +#pragma once #include "py/obj.h" // Nothing now. - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_TOUCHIO___INIT___H diff --git a/shared-bindings/uheap/__init__.h b/shared-bindings/uheap/__init__.h index cc57fa0261611..82688221d3aab 100644 --- a/shared-bindings/uheap/__init__.h +++ b/shared-bindings/uheap/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_UHEAP___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_UHEAP___INIT___H +#pragma once #include "py/obj.h" extern uint32_t shared_module_uheap_info(mp_obj_t obj); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_UHEAP___INIT___H diff --git a/shared-bindings/usb/core/Device.h b/shared-bindings/usb/core/Device.h index 3a2b0f55bcb0f..232d16bdabf3c 100644 --- a/shared-bindings/usb/core/Device.h +++ b/shared-bindings/usb/core/Device.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_CORE_DEVICE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_CORE_DEVICE_H +#pragma once #include "py/objarray.h" @@ -30,5 +29,3 @@ mp_int_t common_hal_usb_core_device_ctrl_transfer(usb_core_device_obj_t *self, bool common_hal_usb_core_device_is_kernel_driver_active(usb_core_device_obj_t *self, mp_int_t interface); void common_hal_usb_core_device_detach_kernel_driver(usb_core_device_obj_t *self, mp_int_t interface); void common_hal_usb_core_device_attach_kernel_driver(usb_core_device_obj_t *self, mp_int_t interface); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_CORE_DEVICE_H diff --git a/shared-bindings/usb_cdc/Serial.h b/shared-bindings/usb_cdc/Serial.h index a48601cb42b67..30249cef389c1 100644 --- a/shared-bindings/usb_cdc/Serial.h +++ b/shared-bindings/usb_cdc/Serial.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_CDC_SERIAL_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_CDC_SERIAL_H +#pragma once #include "shared-module/usb_cdc/Serial.h" @@ -29,5 +28,3 @@ extern void common_hal_usb_cdc_serial_set_timeout(usb_cdc_serial_obj_t *self, mp extern mp_float_t common_hal_usb_cdc_serial_get_write_timeout(usb_cdc_serial_obj_t *self); extern void common_hal_usb_cdc_serial_set_write_timeout(usb_cdc_serial_obj_t *self, mp_float_t write_timeout); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_CDC_SERIAL_H diff --git a/shared-bindings/usb_cdc/__init__.h b/shared-bindings/usb_cdc/__init__.h index c28732e23f7e7..34099f7e8fd61 100644 --- a/shared-bindings/usb_cdc/__init__.h +++ b/shared-bindings/usb_cdc/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_CDC___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_CDC___INIT___H +#pragma once #include "shared-module/usb_cdc/__init__.h" @@ -15,5 +14,3 @@ void usb_cdc_set_data(mp_obj_t serial_obj); extern bool common_hal_usb_cdc_disable(void); extern bool common_hal_usb_cdc_enable(bool console, bool data); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_CDC___INIT___H diff --git a/shared-bindings/usb_hid/Device.h b/shared-bindings/usb_hid/Device.h index 6e01890aa0149..5519606ec35c3 100644 --- a/shared-bindings/usb_hid/Device.h +++ b/shared-bindings/usb_hid/Device.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_HID_DEVICE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_HID_DEVICE_H +#pragma once #include "py/objarray.h" @@ -19,5 +18,3 @@ mp_obj_t common_hal_usb_hid_device_get_last_received_report(usb_hid_device_obj_t uint16_t common_hal_usb_hid_device_get_usage_page(usb_hid_device_obj_t *self); uint16_t common_hal_usb_hid_device_get_usage(usb_hid_device_obj_t *self); uint8_t common_hal_usb_hid_device_validate_report_id(usb_hid_device_obj_t *self, mp_int_t report_id); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_HID_DEVICE_H diff --git a/shared-bindings/usb_hid/__init__.h b/shared-bindings/usb_hid/__init__.h index 445d939ec9ac1..78ac728391299 100644 --- a/shared-bindings/usb_hid/__init__.h +++ b/shared-bindings/usb_hid/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_BINDINGS_USB_HID_H -#define SHARED_BINDINGS_USB_HID_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -18,5 +17,3 @@ void usb_hid_set_devices(mp_obj_t devices); bool common_hal_usb_hid_disable(void); bool common_hal_usb_hid_enable(const mp_obj_t devices_seq, uint8_t boot_device); uint8_t common_hal_usb_hid_get_boot_device(void); - -#endif // SHARED_BINDINGS_USB_HID_H diff --git a/shared-bindings/usb_host/Port.h b/shared-bindings/usb_host/Port.h index 682590cbeb0dc..803eae8b59ff1 100644 --- a/shared-bindings/usb_host/Port.h +++ b/shared-bindings/usb_host/Port.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_HOST_PORT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_HOST_PORT_H +#pragma once #include "py/objarray.h" @@ -20,5 +19,3 @@ extern const mp_obj_type_t usb_host_port_type; // method to check the internals of the global object against the given arguments // to determine whether to return the singleton or raise an exception. usb_host_port_obj_t *common_hal_usb_host_port_construct(const mcu_pin_obj_t *dp, const mcu_pin_obj_t *dm); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_HOST_PORT_H diff --git a/shared-bindings/usb_midi/PortIn.h b/shared-bindings/usb_midi/PortIn.h index d5d241e5ab524..3a0b81a7e0b60 100644 --- a/shared-bindings/usb_midi/PortIn.h +++ b/shared-bindings/usb_midi/PortIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI_PORTIN_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI_PORTIN_H +#pragma once #include "shared-module/usb_midi/PortIn.h" @@ -17,5 +16,3 @@ extern size_t common_hal_usb_midi_portin_read(usb_midi_portin_obj_t *self, extern uint32_t common_hal_usb_midi_portin_bytes_available(usb_midi_portin_obj_t *self); extern void common_hal_usb_midi_portin_clear_buffer(usb_midi_portin_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI_PORTIN_H diff --git a/shared-bindings/usb_midi/PortOut.h b/shared-bindings/usb_midi/PortOut.h index d60d09dcbbbbb..de109b881a79e 100644 --- a/shared-bindings/usb_midi/PortOut.h +++ b/shared-bindings/usb_midi/PortOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI_PORTOUT_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI_PORTOUT_H +#pragma once #include "shared-module/usb_midi/PortOut.h" @@ -16,5 +15,3 @@ extern size_t common_hal_usb_midi_portout_write(usb_midi_portout_obj_t *self, const uint8_t *data, size_t len, int *errcode); extern bool common_hal_usb_midi_portout_ready_to_tx(usb_midi_portout_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI_PORTOUT_H diff --git a/shared-bindings/usb_midi/__init__.h b/shared-bindings/usb_midi/__init__.h index 7a9c997a2be22..4bb84f2268eb8 100644 --- a/shared-bindings/usb_midi/__init__.h +++ b/shared-bindings/usb_midi/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI___INIT___H +#pragma once #include "py/obj.h" #include "shared-module/usb_midi/__init__.h" @@ -14,5 +13,3 @@ extern mp_obj_dict_t usb_midi_module_globals; bool common_hal_usb_midi_disable(void); bool common_hal_usb_midi_enable(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USB_MIDI___INIT___H diff --git a/shared-bindings/ustack/__init__.h b/shared-bindings/ustack/__init__.h index 3053b05ac72cb..1d152e2bf7d3e 100644 --- a/shared-bindings/ustack/__init__.h +++ b/shared-bindings/ustack/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_USTACK___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_USTACK___INIT___H +#pragma once #include "py/obj.h" @@ -14,5 +13,3 @@ extern uint32_t shared_module_ustack_max_stack_usage(void); #endif extern uint32_t shared_module_ustack_stack_size(void); extern uint32_t shared_module_ustack_stack_usage(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_USTACK___INIT___H diff --git a/shared-bindings/vectorio/Circle.h b/shared-bindings/vectorio/Circle.h index 33a0cc2e3d1a3..2c72e81881cd0 100644 --- a/shared-bindings/vectorio/Circle.h +++ b/shared-bindings/vectorio/Circle.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_CIRCLE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_CIRCLE_H +#pragma once #include "shared-module/vectorio/__init__.h" #include "shared-module/vectorio/Circle.h" @@ -29,5 +28,3 @@ uint16_t common_hal_vectorio_circle_get_color_index(void *obj); void common_hal_vectorio_circle_set_color_index(void *obj, uint16_t color_index); mp_obj_t common_hal_vectorio_circle_get_draw_protocol(void *circle); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_CIRCLE_H diff --git a/shared-bindings/vectorio/Polygon.h b/shared-bindings/vectorio/Polygon.h index 2843c4ba1ad98..c57261f8e375a 100644 --- a/shared-bindings/vectorio/Polygon.h +++ b/shared-bindings/vectorio/Polygon.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H +#pragma once #include "shared-module/vectorio/Polygon.h" #include "shared-module/displayio/area.h" @@ -30,6 +29,3 @@ uint16_t common_hal_vectorio_polygon_get_color_index(void *obj); void common_hal_vectorio_polygon_set_color_index(void *obj, uint16_t color_index); mp_obj_t common_hal_vectorio_polygon_get_draw_protocol(void *polygon); - - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_POLYGON_H diff --git a/shared-bindings/vectorio/Rectangle.h b/shared-bindings/vectorio/Rectangle.h index 58435f98c4e31..6831fa21029a7 100644 --- a/shared-bindings/vectorio/Rectangle.h +++ b/shared-bindings/vectorio/Rectangle.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_RECTANGLE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_RECTANGLE_H +#pragma once #include "shared-module/vectorio/Rectangle.h" #include "shared-module/displayio/area.h" @@ -30,5 +29,3 @@ void common_hal_vectorio_rectangle_set_color_index(void *obj, uint16_t color_ind int16_t common_hal_vectorio_rectangle_get_height(void *obj); void common_hal_vectorio_rectangle_set_height(void *obj, int16_t height); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_RECTANGLE_H diff --git a/shared-bindings/vectorio/VectorShape.h b/shared-bindings/vectorio/VectorShape.h index 7f86829076a6b..9e06a0c146e8d 100644 --- a/shared-bindings/vectorio/VectorShape.h +++ b/shared-bindings/vectorio/VectorShape.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H +#pragma once #include "py/objproperty.h" #include "py/objtuple.h" @@ -53,5 +52,3 @@ extern const mp_obj_property_getset_t vectorio_vector_shape_hidden_obj; extern const mp_obj_property_getset_t vectorio_vector_shape_location_obj; extern const mp_obj_property_getset_t vectorio_vector_shape_pixel_shader_obj; extern const mp_obj_fun_builtin_fixed_t vectorio_vector_shape_contains_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_VECTORIO_SHAPE_H diff --git a/shared-bindings/vectorio/__init__.h b/shared-bindings/vectorio/__init__.h index bbb01b934b619..c982f63815b4d 100644 --- a/shared-bindings/vectorio/__init__.h +++ b/shared-bindings/vectorio/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_VECTORIO__INIT__H -#define SHARED_MODULE_VECTORIO__INIT__H +#pragma once #include #include @@ -45,5 +44,3 @@ typedef struct _vectorio_draw_protocol_t { // Implementation functions for the draw protocol vectorio_draw_protocol_impl_t *draw_protocol_impl; } vectorio_draw_protocol_t; - -#endif diff --git a/shared-bindings/watchdog/WatchDogMode.h b/shared-bindings/watchdog/WatchDogMode.h index 4bbbe39a78bba..00decbe1360bb 100644 --- a/shared-bindings/watchdog/WatchDogMode.h +++ b/shared-bindings/watchdog/WatchDogMode.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG_WATCHDOGMODE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG_WATCHDOGMODE_H +#pragma once #include "py/enum.h" @@ -16,5 +15,3 @@ typedef enum { } watchdog_watchdogmode_t; extern const mp_obj_type_t watchdog_watchdogmode_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG_WATCHDOGMODE_H diff --git a/shared-bindings/watchdog/WatchDogTimer.h b/shared-bindings/watchdog/WatchDogTimer.h index c336c6866d7a0..44fb32dd52206 100644 --- a/shared-bindings/watchdog/WatchDogTimer.h +++ b/shared-bindings/watchdog/WatchDogTimer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG_WATCHDOGTIMER_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG_WATCHDOGTIMER_H +#pragma once #include "py/obj.h" #include "shared-bindings/watchdog/WatchDogMode.h" @@ -24,5 +23,3 @@ extern void common_hal_watchdog_enable(watchdog_watchdogtimer_obj_t *self); extern void common_hal_watchdog_deinit(watchdog_watchdogtimer_obj_t *self); extern const mp_obj_type_t watchdog_watchdogtimer_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG_WATCHDOGTIMER_H diff --git a/shared-bindings/watchdog/__init__.h b/shared-bindings/watchdog/__init__.h index 8d1c4239b3e9b..a80680d25d298 100644 --- a/shared-bindings/watchdog/__init__.h +++ b/shared-bindings/watchdog/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG___INIT___H +#pragma once #include "py/obj.h" #include "py/objexcept.h" @@ -13,5 +12,3 @@ extern const mp_obj_module_t watchdog_module; extern mp_obj_exception_t mp_watchdog_timeout_exception; extern const mp_obj_type_t mp_type_WatchDogTimeout; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WATCHDOG___INIT___H diff --git a/shared-bindings/wifi/AuthMode.h b/shared-bindings/wifi/AuthMode.h index bc09528700886..ba90648e9312b 100644 --- a/shared-bindings/wifi/AuthMode.h +++ b/shared-bindings/wifi/AuthMode.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_AUTHMODE_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_AUTHMODE_H +#pragma once #include "py/enum.h" @@ -21,5 +20,3 @@ typedef enum { extern const mp_obj_type_t wifi_authmode_type; extern const cp_enum_obj_t authmode_OPEN_obj; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_AUTHMODE_H diff --git a/shared-bindings/wifi/Monitor.h b/shared-bindings/wifi/Monitor.h index 6439ee933f2b2..c6a4ae6ecdf01 100644 --- a/shared-bindings/wifi/Monitor.h +++ b/shared-bindings/wifi/Monitor.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_MONITOR_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_MONITOR_H +#pragma once #include "common-hal/wifi/Monitor.h" @@ -26,5 +25,3 @@ mp_obj_t common_hal_wifi_monitor_get_lost(wifi_monitor_obj_t *self); mp_obj_t common_hal_wifi_monitor_get_queued(wifi_monitor_obj_t *self); mp_obj_t common_hal_wifi_monitor_get_packet(wifi_monitor_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_MONITOR_H diff --git a/shared-bindings/wifi/Network.h b/shared-bindings/wifi/Network.h index fc499c3168ca3..b60fbe5b1253e 100644 --- a/shared-bindings/wifi/Network.h +++ b/shared-bindings/wifi/Network.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_NETWORK_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_NETWORK_H +#pragma once #include @@ -21,5 +20,3 @@ extern mp_obj_t common_hal_wifi_network_get_rssi(wifi_network_obj_t *self); extern mp_obj_t common_hal_wifi_network_get_channel(wifi_network_obj_t *self); extern mp_obj_t common_hal_wifi_network_get_country(wifi_network_obj_t *self); extern mp_obj_t common_hal_wifi_network_get_authmode(wifi_network_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_NETWORK_H diff --git a/shared-bindings/wifi/Packet.h b/shared-bindings/wifi/Packet.h index 1522440ea6993..e0d17b3292d9b 100644 --- a/shared-bindings/wifi/Packet.h +++ b/shared-bindings/wifi/Packet.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_PACKET_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_PACKET_H +#pragma once #include "py/enum.h" @@ -17,5 +16,3 @@ typedef enum { } wifi_packet_t; extern const mp_obj_type_t wifi_packet_type; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_PACKET_H diff --git a/shared-bindings/wifi/Radio.h b/shared-bindings/wifi/Radio.h index 4c46205179c0f..6c39c5b1861a8 100644 --- a/shared-bindings/wifi/Radio.h +++ b/shared-bindings/wifi/Radio.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_RADIO_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_RADIO_H +#pragma once #include @@ -110,5 +109,3 @@ extern void common_hal_wifi_radio_set_ipv4_address(wifi_radio_obj_t *self, mp_ob extern void common_hal_wifi_radio_set_ipv4_address_ap(wifi_radio_obj_t *self, mp_obj_t ipv4, mp_obj_t netmask, mp_obj_t gateway); extern mp_int_t common_hal_wifi_radio_ping(wifi_radio_obj_t *self, mp_obj_t ip_address, mp_float_t timeout); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_RADIO_H diff --git a/shared-bindings/wifi/ScannedNetworks.h b/shared-bindings/wifi/ScannedNetworks.h index 0ecab5a42a72c..8c4135c5bcaf0 100644 --- a/shared-bindings/wifi/ScannedNetworks.h +++ b/shared-bindings/wifi/ScannedNetworks.h @@ -6,8 +6,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_SCANNEDNETWORKS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_SCANNEDNETWORKS_H +#pragma once #include "py/obj.h" #include "common-hal/wifi/ScannedNetworks.h" @@ -15,5 +14,3 @@ extern const mp_obj_type_t wifi_scannednetworks_type; mp_obj_t common_hal_wifi_scannednetworks_next(wifi_scannednetworks_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI_SCANNEDNETWORKS_H diff --git a/shared-bindings/wifi/__init__.h b/shared-bindings/wifi/__init__.h index f4493a2cefd56..a1a606e502c06 100644 --- a/shared-bindings/wifi/__init__.h +++ b/shared-bindings/wifi/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_WIFI___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_WIFI___INIT___H +#pragma once #include "shared-bindings/wifi/Radio.h" @@ -15,5 +14,3 @@ void common_hal_wifi_init(bool user_initiated); void common_hal_wifi_gc_collect(void); void wifi_user_reset(void); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_WIFI___INIT___H diff --git a/shared-bindings/zlib/__init__.h b/shared-bindings/zlib/__init__.h index 9e2146e0e2b90..7fb120427e24a 100644 --- a/shared-bindings/zlib/__init__.h +++ b/shared-bindings/zlib/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_ZLIB___INIT___H -#define MICROPY_INCLUDED_SHARED_BINDINGS_ZLIB___INIT___H +#pragma once mp_obj_t common_hal_zlib_decompress(mp_obj_t data, mp_int_t wbits); - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_ZLIB___INIT___H diff --git a/shared-module/_bleio/Address.h b/shared-module/_bleio/Address.h index b67c1f68f322b..76e7a1177fcb7 100644 --- a/shared-module/_bleio/Address.h +++ b/shared-module/_bleio/Address.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ADDRESS_H -#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ADDRESS_H +#pragma once #include "py/obj.h" @@ -17,5 +16,3 @@ typedef struct { uint8_t type; mp_obj_t bytes; // a bytes() object } bleio_address_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ADDRESS_H diff --git a/shared-module/_bleio/Attribute.h b/shared-module/_bleio/Attribute.h index 1cd7bce5881b7..e527b879318af 100644 --- a/shared-module/_bleio/Attribute.h +++ b/shared-module/_bleio/Attribute.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ATTRIBUTE_H -#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ATTRIBUTE_H +#pragma once // BLE security modes: 0x typedef enum { @@ -17,5 +16,3 @@ typedef enum { SECURITY_MODE_SIGNED_NO_MITM = 0x12, SECURITY_MODE_SIGNED_WITH_MITM = 0x22, } bleio_attribute_security_mode_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_ATTRIBUTE_H diff --git a/shared-module/_bleio/Characteristic.h b/shared-module/_bleio/Characteristic.h index 36d399702dd2f..9bd568564b10f 100644 --- a/shared-module/_bleio/Characteristic.h +++ b/shared-module/_bleio/Characteristic.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_CHARACTERISTIC_H -#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_CHARACTERISTIC_H +#pragma once // These are not the Bluetooth spec values. They are what is used by the Nordic SoftDevice. // The bit values are in different positions. @@ -32,5 +31,3 @@ typedef uint8_t bleio_characteristic_properties_t; #define BT_GATT_CHRC_INDICATE 0x20 #define BT_GATT_CHRC_AUTH 0x40 #define BT_GATT_CHRC_EXT_PROP 0x80 - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_CHARACTERISTIC_H diff --git a/shared-module/_bleio/ScanEntry.h b/shared-module/_bleio/ScanEntry.h index 80039d092bbc2..2a352813a969e 100644 --- a/shared-module/_bleio/ScanEntry.h +++ b/shared-module/_bleio/ScanEntry.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_SCANENTRY_H -#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_SCANENTRY_H +#pragma once #include "py/obj.h" #include "py/objstr.h" @@ -23,5 +22,3 @@ typedef struct { } bleio_scanentry_obj_t; bool bleio_scanentry_data_matches(const uint8_t *data, size_t len, const uint8_t *prefixes, size_t prefix_length, bool any); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_SCANENTRY_H diff --git a/shared-module/_bleio/ScanResults.h b/shared-module/_bleio/ScanResults.h index 51474fa69587a..1f47a5941ca46 100644 --- a/shared-module/_bleio/ScanResults.h +++ b/shared-module/_bleio/ScanResults.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BLEIO_SCANRESULTS_H -#define MICROPY_INCLUDED_SHARED_MODULE_BLEIO_SCANRESULTS_H +#pragma once #include @@ -40,5 +39,3 @@ void shared_module_bleio_scanresults_append(bleio_scanresults_obj_t *self, uint8_t addr_type, const uint8_t *data, uint16_t len); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BLEIO_SCANRESULTS_H diff --git a/shared-module/_eve/__init__.h b/shared-module/_eve/__init__.h index 27269e96c4782..227fe8fc935e9 100644 --- a/shared-module/_eve/__init__.h +++ b/shared-module/_eve/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE__EVE___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE__EVE___INIT___H +#pragma once typedef struct _common_hal__eve_t { mp_obj_t dest[3]; // Own 'write' method, plus argument @@ -13,5 +12,3 @@ typedef struct _common_hal__eve_t { size_t n; // Current size of command buffer uint8_t buf[512]; // Command buffer } common_hal__eve_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE__EVE___INIT___H diff --git a/shared-module/_stage/Layer.h b/shared-module/_stage/Layer.h index bfe2323101287..3776a6622541d 100644 --- a/shared-module/_stage/Layer.h +++ b/shared-module/_stage/Layer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE__STAGE_LAYER_H -#define MICROPY_INCLUDED_SHARED_MODULE__STAGE_LAYER_H +#pragma once #include #include @@ -24,5 +23,3 @@ typedef struct { } layer_obj_t; uint16_t get_layer_pixel(layer_obj_t *layer, int16_t x, int16_t y); - -#endif // MICROPY_INCLUDED_SHARED_MODULE__STAGE_LAYER diff --git a/shared-module/_stage/Text.h b/shared-module/_stage/Text.h index 6db600a1078c6..2173e238ca762 100644 --- a/shared-module/_stage/Text.h +++ b/shared-module/_stage/Text.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE__STAGE_TEXT_H -#define MICROPY_INCLUDED_SHARED_MODULE__STAGE_TEXT_H +#pragma once #include #include @@ -22,5 +21,3 @@ typedef struct { } text_obj_t; uint16_t get_text_pixel(text_obj_t *text, int16_t x, int16_t y); - -#endif // MICROPY_INCLUDED_SHARED_MODULE__STAGE_TEXT diff --git a/shared-module/adafruit_bus_device/i2c_device/I2CDevice.h b/shared-module/adafruit_bus_device/i2c_device/I2CDevice.h index 538a9fe027a2a..c0af39536f2ed 100644 --- a/shared-module/adafruit_bus_device/i2c_device/I2CDevice.h +++ b/shared-module/adafruit_bus_device/i2c_device/I2CDevice.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_SHARED_MODULE_BUSDEVICE_I2CDEVICE_H -#define MICROPY_INCLUDED_ATMEL_SAMD_SHARED_MODULE_BUSDEVICE_I2CDEVICE_H +#pragma once #include "py/obj.h" #include "common-hal/busio/I2C.h" @@ -15,5 +14,3 @@ typedef struct { mp_obj_t *i2c; uint8_t device_address; } adafruit_bus_device_i2cdevice_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_SHARED_MODULE_BUSDEVICE_I2CDEVICE_H diff --git a/shared-module/adafruit_bus_device/spi_device/SPIDevice.h b/shared-module/adafruit_bus_device/spi_device/SPIDevice.h index 8c86cdef84d2c..73c0676d08a88 100644 --- a/shared-module/adafruit_bus_device/spi_device/SPIDevice.h +++ b/shared-module/adafruit_bus_device/spi_device/SPIDevice.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_SHARED_MODULE_BUSDEVICE_SPIDEVICE_H -#define MICROPY_INCLUDED_ATMEL_SAMD_SHARED_MODULE_BUSDEVICE_SPIDEVICE_H +#pragma once #include "py/obj.h" #include "common-hal/busio/SPI.h" @@ -21,5 +20,3 @@ typedef struct { digitalio_digitalinout_obj_t *chip_select; bool cs_active_value; } adafruit_bus_device_spidevice_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_SHARED_MODULE_BUSDEVICE_SPIDEVICE_H diff --git a/shared-module/aesio/__init__.h b/shared-module/aesio/__init__.h index 21445e1b73c07..aaf761087ee47 100644 --- a/shared-module/aesio/__init__.h +++ b/shared-module/aesio/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AESIO__INIT__H -#define MICROPY_INCLUDED_SHARED_MODULE_AESIO__INIT__H +#pragma once #include #include @@ -35,5 +34,3 @@ typedef struct { // Counter for running in CTR mode uint32_t counter; } aesio_aes_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AESIO__INIT__H diff --git a/shared-module/aesio/aes.h b/shared-module/aesio/aes.h index b248ce2eb01b0..d46699098d01a 100644 --- a/shared-module/aesio/aes.h +++ b/shared-module/aesio/aes.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef _AES_H_ -#define _AES_H_ +#pragma once #include @@ -106,6 +105,3 @@ void AES_CBC_decrypt_buffer(struct AES_ctx *ctx, uint8_t *buf, uint32_t length); void AES_CTR_xcrypt_buffer(struct AES_ctx *ctx, uint8_t *buf, uint32_t length); #endif // #if defined(CTR) && (CTR == 1) - - -#endif // _AES_H_ diff --git a/shared-module/atexit/__init__.h b/shared-module/atexit/__init__.h index dffb2293ab6fb..316e41042c82d 100644 --- a/shared-module/atexit/__init__.h +++ b/shared-module/atexit/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_ATEXIT___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_ATEXIT___INIT___H +#pragma once #include "py/obj.h" #include "shared/runtime/pyexec.h" @@ -22,5 +21,3 @@ extern void shared_module_atexit_register(mp_obj_t *func, size_t n_args, const mp_obj_t *pos_args, mp_map_t *kw_args); extern void shared_module_atexit_unregister(const mp_obj_t *func); extern void shared_module_atexit_execute(pyexec_result_t *result); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_ATEXIT___INIT___H diff --git a/shared-module/audiocore/RawSample.h b/shared-module/audiocore/RawSample.h index b3179a47d025a..343cd0bfe8482 100644 --- a/shared-module/audiocore/RawSample.h +++ b/shared-module/audiocore/RawSample.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_RAWSAMPLE_H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_RAWSAMPLE_H +#pragma once #include "py/obj.h" @@ -34,5 +33,3 @@ audioio_get_buffer_result_t audioio_rawsample_get_buffer(audioio_rawsample_obj_t void audioio_rawsample_get_buffer_structure(audioio_rawsample_obj_t *self, bool single_channel_output, bool *single_buffer, bool *samples_signed, uint32_t *max_buffer_length, uint8_t *spacing); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_RAWSAMPLE_H diff --git a/shared-module/audiocore/WaveFile.h b/shared-module/audiocore/WaveFile.h index d1b9acd008b72..a86c1409abc9a 100644 --- a/shared-module/audiocore/WaveFile.h +++ b/shared-module/audiocore/WaveFile.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_WAVEFILE_H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_WAVEFILE_H +#pragma once #include "extmod/vfs_fat.h" #include "py/obj.h" @@ -47,5 +46,3 @@ audioio_get_buffer_result_t audioio_wavefile_get_buffer(audioio_wavefile_obj_t * void audioio_wavefile_get_buffer_structure(audioio_wavefile_obj_t *self, bool single_channel_output, bool *single_buffer, bool *samples_signed, uint32_t *max_buffer_length, uint8_t *spacing); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_WAVEFILE_H diff --git a/shared-module/audiocore/__init__.h b/shared-module/audiocore/__init__.h index 7888a46d5cae9..0e5b38d7b1445 100644 --- a/shared-module/audiocore/__init__.h +++ b/shared-module/audiocore/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOCORE__INIT__H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOCORE__INIT__H +#pragma once #include #include @@ -61,5 +60,3 @@ void audiosample_convert_s8s_s16s(int16_t *buffer_out, const int8_t *buffer_in, void audiosample_convert_u16m_s16s(int16_t *buffer_out, const uint16_t *buffer_in, size_t nframes); void audiosample_convert_u16s_s16s(int16_t *buffer_out, const uint16_t *buffer_in, size_t nframes); void audiosample_convert_s16m_s16s(int16_t *buffer_out, const int16_t *buffer_in, size_t nframes); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOCORE__INIT__H diff --git a/shared-module/audioio/__init__.h b/shared-module/audioio/__init__.h index edc15700a1d1a..ca404d7b930f8 100644 --- a/shared-module/audioio/__init__.h +++ b/shared-module/audioio/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO__INIT__H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO__INIT__H +#pragma once #include "shared-module/audiocore/__init__.h" - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO__INIT__H diff --git a/shared-module/audiomixer/Mixer.h b/shared-module/audiomixer/Mixer.h index ec21546397a5c..771b3969719c9 100644 --- a/shared-module/audiomixer/Mixer.h +++ b/shared-module/audiomixer/Mixer.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOMIXER_MIXER_H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOMIXER_MIXER_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -45,5 +44,3 @@ audioio_get_buffer_result_t audiomixer_mixer_get_buffer(audiomixer_mixer_obj_t * void audiomixer_mixer_get_buffer_structure(audiomixer_mixer_obj_t *self, bool single_channel_output, bool *single_buffer, bool *samples_signed, uint32_t *max_buffer_length, uint8_t *spacing); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOMIXER_MIXER_H diff --git a/shared-module/audiomixer/MixerVoice.h b/shared-module/audiomixer/MixerVoice.h index 2a272755cc744..ad70f64b6e16f 100644 --- a/shared-module/audiomixer/MixerVoice.h +++ b/shared-module/audiomixer/MixerVoice.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 DeanM for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_AUDIOMIXER_MIXERVOICE_H_ -#define SHARED_MODULE_AUDIOMIXER_MIXERVOICE_H_ +#pragma once #include "py/obj.h" @@ -21,6 +20,3 @@ typedef struct { uint32_t buffer_length; uint16_t level; } audiomixer_mixervoice_obj_t; - - -#endif /* SHARED_MODULE_AUDIOMIXER_MIXERVOICE_H_ */ diff --git a/shared-module/audiomixer/__init__.h b/shared-module/audiomixer/__init__.h index 1a9dad492e9f0..ca404d7b930f8 100644 --- a/shared-module/audiomixer/__init__.h +++ b/shared-module/audiomixer/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOMIXER__INIT__H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOMIXER__INIT__H +#pragma once #include "shared-module/audiocore/__init__.h" - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOMIXER__INIT__H diff --git a/shared-module/audiomp3/MP3Decoder.h b/shared-module/audiomp3/MP3Decoder.h index c4fa8ac61de2e..726974c2641e7 100644 --- a/shared-module/audiomp3/MP3Decoder.h +++ b/shared-module/audiomp3/MP3Decoder.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_MP3FILE_H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_MP3FILE_H +#pragma once #include "supervisor/background_callback.h" #include "extmod/vfs_fat.h" @@ -54,5 +53,3 @@ void audiomp3_mp3file_get_buffer_structure(audiomp3_mp3file_obj_t *self, bool si float audiomp3_mp3file_get_rms_level(audiomp3_mp3file_obj_t *self); uint32_t common_hal_audiomp3_mp3file_get_samples_decoded(audiomp3_mp3file_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOIO_MP3FILE_H diff --git a/shared-module/audiopwmio/__init__.h b/shared-module/audiopwmio/__init__.h index 9aa04ce0d2cec..ca404d7b930f8 100644 --- a/shared-module/audiopwmio/__init__.h +++ b/shared-module/audiopwmio/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_AUDIOPWMIO__INIT__H -#define MICROPY_INCLUDED_SHARED_MODULE_AUDIOPWMIO__INIT__H +#pragma once #include "shared-module/audiocore/__init__.h" - -#endif // MICROPY_INCLUDED_SHARED_MODULE_AUDIOPWMIO__INIT__H diff --git a/shared-module/bitbangio/I2C.h b/shared-module/bitbangio/I2C.h index a15d29f41fddd..3908a3dd3740e 100644 --- a/shared-module/bitbangio/I2C.h +++ b/shared-module/bitbangio/I2C.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BITBANGIO_I2C_H -#define MICROPY_INCLUDED_SHARED_MODULE_BITBANGIO_I2C_H +#pragma once #include "common-hal/digitalio/DigitalInOut.h" @@ -19,5 +18,3 @@ typedef struct { uint32_t us_timeout; volatile bool locked; } bitbangio_i2c_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BITBANGIO_I2C_H diff --git a/shared-module/bitbangio/SPI.h b/shared-module/bitbangio/SPI.h index dcb760f222e5e..c19170af7c46f 100644 --- a/shared-module/bitbangio/SPI.h +++ b/shared-module/bitbangio/SPI.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BITBANGIO_SPI_H -#define MICROPY_INCLUDED_SHARED_MODULE_BITBANGIO_SPI_H +#pragma once #include "common-hal/digitalio/DigitalInOut.h" @@ -23,5 +22,3 @@ typedef struct { uint8_t phase : 1; volatile bool locked : 1; } bitbangio_spi_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BITBANGIO_SPI_H diff --git a/shared-module/bitmapfilter/__init__.h b/shared-module/bitmapfilter/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/bitmapfilter/__init__.h +++ b/shared-module/bitmapfilter/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/board/__init__.h b/shared-module/board/__init__.h index c51533e9b3ec0..a179478cd7123 100644 --- a/shared-module/board/__init__.h +++ b/shared-module/board/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_BOARD__INIT__H -#define MICROPY_INCLUDED_SHARED_MODULE_BOARD__INIT__H +#pragma once void reset_board_buses(void); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_BOARD__INIT__H diff --git a/shared-module/displayio/Bitmap.h b/shared-module/displayio/Bitmap.h index 1861ee54e30ab..a4a57587207da 100644 --- a/shared-module/displayio/Bitmap.h +++ b/shared-module/displayio/Bitmap.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_BITMAP_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_BITMAP_H +#pragma once #include #include @@ -32,5 +31,3 @@ void displayio_bitmap_finish_refresh(displayio_bitmap_t *self); displayio_area_t *displayio_bitmap_get_refresh_areas(displayio_bitmap_t *self, displayio_area_t *tail); void displayio_bitmap_set_dirty_area(displayio_bitmap_t *self, const displayio_area_t *area); void displayio_bitmap_write_pixel(displayio_bitmap_t *self, int16_t x, int16_t y, uint32_t value); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_BITMAP_H diff --git a/shared-module/displayio/ColorConverter.h b/shared-module/displayio/ColorConverter.h index e62a86e361c01..60efc132f9ae5 100644 --- a/shared-module/displayio/ColorConverter.h +++ b/shared-module/displayio/ColorConverter.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_COLORCONVERTER_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_COLORCONVERTER_H +#pragma once #include #include @@ -44,5 +43,3 @@ uint8_t displayio_colorconverter_compute_chroma(uint32_t color_rgb888); uint8_t displayio_colorconverter_compute_hue(uint32_t color_rgb888); uint8_t displayio_colorconverter_compute_sevencolor(uint32_t color_rgb888); void displayio_colorconverter_compute_tricolor(const _displayio_colorspace_t *colorspace, uint8_t pixel_hue, uint32_t *color); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_COLORCONVERTER_H diff --git a/shared-module/displayio/Group.h b/shared-module/displayio/Group.h index a7336c4fb1ee4..9ff6c7dca0f56 100644 --- a/shared-module/displayio/Group.h +++ b/shared-module/displayio/Group.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_GROUP_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_GROUP_H +#pragma once #include #include @@ -38,5 +37,3 @@ bool displayio_group_fill_area(displayio_group_t *group, const _displayio_colors void displayio_group_update_transform(displayio_group_t *group, const displayio_buffer_transform_t *parent_transform); void displayio_group_finish_refresh(displayio_group_t *self); displayio_area_t *displayio_group_get_refresh_areas(displayio_group_t *self, displayio_area_t *tail); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_GROUP_H diff --git a/shared-module/displayio/OnDiskBitmap.h b/shared-module/displayio/OnDiskBitmap.h index 68421bb4fce83..6fe5b880cd618 100644 --- a/shared-module/displayio/OnDiskBitmap.h +++ b/shared-module/displayio/OnDiskBitmap.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_ONDISKBITMAP_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_ONDISKBITMAP_H +#pragma once #include #include @@ -32,5 +31,3 @@ typedef struct { bool bitfield_compressed; uint8_t bits_per_pixel; } displayio_ondiskbitmap_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_ONDISKBITMAP_H diff --git a/shared-module/displayio/Palette.h b/shared-module/displayio/Palette.h index be3eaf80e605e..092b934b66a24 100644 --- a/shared-module/displayio/Palette.h +++ b/shared-module/displayio/Palette.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_PALETTE_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_PALETTE_H +#pragma once #include #include @@ -63,5 +62,3 @@ void displayio_palette_get_color(displayio_palette_t *palette, const _displayio_ ; bool displayio_palette_needs_refresh(displayio_palette_t *self); void displayio_palette_finish_refresh(displayio_palette_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_PALLETE_H diff --git a/shared-module/displayio/Shape.h b/shared-module/displayio/Shape.h index 65273e2cb364f..20ee182023fe9 100644 --- a/shared-module/displayio/Shape.h +++ b/shared-module/displayio/Shape.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_SHAPE_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_SHAPE_H +#pragma once #include #include @@ -27,5 +26,3 @@ typedef struct { void displayio_shape_finish_refresh(displayio_shape_t *self); displayio_area_t *displayio_shape_get_refresh_areas(displayio_shape_t *self, displayio_area_t *tail); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_SHAPE_H diff --git a/shared-module/displayio/TileGrid.h b/shared-module/displayio/TileGrid.h index afccc73722cc1..c9c31696bf8f2 100644 --- a/shared-module/displayio/TileGrid.h +++ b/shared-module/displayio/TileGrid.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_TILEGRID_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_TILEGRID_H +#pragma once #include #include @@ -68,5 +67,3 @@ bool displayio_tilegrid_get_previous_area(displayio_tilegrid_t *self, displayio_ void displayio_tilegrid_finish_refresh(displayio_tilegrid_t *self); bool displayio_tilegrid_get_rendered_hidden(displayio_tilegrid_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_TILEGRID_H diff --git a/shared-module/displayio/area.h b/shared-module/displayio/area.h index 29646ddf81550..eed54613a5a46 100644 --- a/shared-module/displayio/area.h +++ b/shared-module/displayio/area.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_AREA_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_AREA_H +#pragma once #include #include @@ -56,5 +55,3 @@ void displayio_area_transform_within(bool mirror_x, bool mirror_y, bool transpos const displayio_area_t *original, const displayio_area_t *whole, displayio_area_t *transformed); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_AREA_H diff --git a/shared-module/displayio/mipi_constants.h b/shared-module/displayio/mipi_constants.h index 30992a807d14e..46832f76e7a4d 100644 --- a/shared-module/displayio/mipi_constants.h +++ b/shared-module/displayio/mipi_constants.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_MIPI_CONSTANTS_H -#define MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_MIPI_CONSTANTS_H +#pragma once // More info here: https://www.tonylabs.com/wp-content/uploads/MIPI_DCS_specification_v1.02.00.pdf enum mipi_command { @@ -13,5 +12,3 @@ enum mipi_command { MIPI_COMMAND_SET_PAGE_ADDRESS = 0x2b, MIPI_COMMAND_WRITE_MEMORY_START = 0x2c, }; - -#endif // MICROPY_INCLUDED_SHARED_BINDINGS_DISPLAYIO_MIPI_CONSTANTS_H diff --git a/shared-module/fontio/BuiltinFont.h b/shared-module/fontio/BuiltinFont.h index 61deb09ffb1d2..2e9ddd52a500b 100644 --- a/shared-module/fontio/BuiltinFont.h +++ b/shared-module/fontio/BuiltinFont.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_FONTIO_BUILTINFONT_H -#define MICROPY_INCLUDED_SHARED_MODULE_FONTIO_BUILTINFONT_H +#pragma once #include #include @@ -23,5 +22,3 @@ typedef struct { } fontio_builtinfont_t; uint8_t fontio_builtinfont_get_glyph_index(const fontio_builtinfont_t *self, mp_uint_t codepoint); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_FONTIO_BUILTINFONT_H diff --git a/shared-module/framebufferio/FramebufferDisplay.h b/shared-module/framebufferio/FramebufferDisplay.h index eb38758814712..871d34abcbe31 100644 --- a/shared-module/framebufferio/FramebufferDisplay.h +++ b/shared-module/framebufferio/FramebufferDisplay.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_FRAMEBUFFERDISPLAY_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_FRAMEBUFFERDISPLAY_H +#pragma once #include "py/obj.h" #include "py/proto.h" @@ -82,5 +81,3 @@ typedef struct _framebuffer_p_t { framebuffer_set_brightness_fun set_brightness; } framebuffer_p_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_FRAMEBUFFERDISPLAY_H diff --git a/shared-module/framebufferio/__init__.h b/shared-module/framebufferio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/framebufferio/__init__.h +++ b/shared-module/framebufferio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/getpass/__init__.h b/shared-module/getpass/__init__.h index 96a1d3b0051c0..0fe91c16f8d07 100644 --- a/shared-module/getpass/__init__.h +++ b/shared-module/getpass/__init__.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_GETPASS___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_GETPASS___INIT___H +#pragma once #include "py/runtime.h" extern mp_obj_t shared_module_getpass_getpass(const char *prompt, mp_print_t *print); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_GETPASS___INIT___H diff --git a/shared-module/gifio/OnDiskGif.h b/shared-module/gifio/OnDiskGif.h index b3bcb390b6846..ee9c40ad33a0e 100644 --- a/shared-module/gifio/OnDiskGif.h +++ b/shared-module/gifio/OnDiskGif.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_ONDISKGIF_H -#define MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_ONDISKGIF_H +#pragma once #include #include @@ -29,5 +28,3 @@ typedef struct { int32_t min_delay; int32_t max_delay; } gifio_ondiskgif_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_DISPLAYIO_ONDISKGIF_H diff --git a/shared-module/gifio/__init__.h b/shared-module/gifio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/gifio/__init__.h +++ b/shared-module/gifio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/ipaddress/IPv4Address.h b/shared-module/ipaddress/IPv4Address.h index a0d3a220ae387..f0f96e6f3486c 100644 --- a/shared-module/ipaddress/IPv4Address.h +++ b/shared-module/ipaddress/IPv4Address.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS_IPV4ADDRESS_H -#define MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS_IPV4ADDRESS_H +#pragma once #include "py/obj.h" @@ -13,5 +12,3 @@ typedef struct { mp_obj_base_t base; mp_obj_t ip_bytes; } ipaddress_ipv4address_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS_IPV4ADDRESS_H diff --git a/shared-module/ipaddress/__init__.h b/shared-module/ipaddress/__init__.h index cd5b996dd0ea2..d82c4600b6a30 100644 --- a/shared-module/ipaddress/__init__.h +++ b/shared-module/ipaddress/__init__.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS___INIT___H +#pragma once #include #include "py/obj.h" mp_obj_t common_hal_ipaddress_new_ipv4(uint32_t value); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_IPADDRESS___INIT___H diff --git a/shared-module/is31fl3741/__init__.h b/shared-module/is31fl3741/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/is31fl3741/__init__.h +++ b/shared-module/is31fl3741/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/jpegio/JpegDecoder.h b/shared-module/jpegio/JpegDecoder.h index 5046929129544..2585b364545a2 100644 --- a/shared-module/jpegio/JpegDecoder.h +++ b/shared-module/jpegio/JpegDecoder.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #include "py/obj.h" #include "lib/tjpgd/src/tjpgd.h" #include "shared-module/displayio/Bitmap.h" diff --git a/shared-module/jpegio/__init__.h b/shared-module/jpegio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/jpegio/__init__.h +++ b/shared-module/jpegio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/keypad/Event.h b/shared-module/keypad/Event.h index b7e004f443d94..62efd7e163711 100644 --- a/shared-module/keypad/Event.h +++ b/shared-module/keypad/Event.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_EVENT_H -#define MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_EVENT_H +#pragma once #include "py/obj.h" @@ -15,6 +14,3 @@ typedef struct { bool pressed; mp_obj_t timestamp; } keypad_event_obj_t; - - -#endif // MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_EVENT_H diff --git a/shared-module/keypad/EventQueue.h b/shared-module/keypad/EventQueue.h index 4477497c6e2ab..c0902082f8707 100644 --- a/shared-module/keypad/EventQueue.h +++ b/shared-module/keypad/EventQueue.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_EVENTQUEUE_H -#define MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_EVENTQUEUE_H +#pragma once #include "py/obj.h" #include "py/ringbuf.h" @@ -20,5 +19,3 @@ struct _keypad_eventqueue_obj_t { }; bool keypad_eventqueue_record(keypad_eventqueue_obj_t *self, mp_uint_t key_number, bool pressed, mp_obj_t timestamp); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_EVENTQUEUE_H diff --git a/shared-module/keypad/KeyMatrix.h b/shared-module/keypad/KeyMatrix.h index cef5a5a9e36cd..f743d637b171a 100644 --- a/shared-module/keypad/KeyMatrix.h +++ b/shared-module/keypad/KeyMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_KEYMATRIX_H -#define MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_KEYMATRIX_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -22,5 +21,3 @@ typedef struct { } keypad_keymatrix_obj_t; void keypad_keymatrix_scan(keypad_keymatrix_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_KEYMATRIX_H diff --git a/shared-module/keypad/Keys.h b/shared-module/keypad/Keys.h index f8f382923040b..81e448f0adf78 100644 --- a/shared-module/keypad/Keys.h +++ b/shared-module/keypad/Keys.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_KEYS_H -#define MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_KEYS_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -21,5 +20,3 @@ typedef struct { } keypad_keys_obj_t; void keypad_keys_scan(keypad_keys_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_KEYS_H diff --git a/shared-module/keypad/ShiftRegisterKeys.h b/shared-module/keypad/ShiftRegisterKeys.h index b8d5c74a328f4..f0d5fa10f9e79 100644 --- a/shared-module/keypad/ShiftRegisterKeys.h +++ b/shared-module/keypad/ShiftRegisterKeys.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_SHIFTREGISTERKEYS_H -#define MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_SHIFTREGISTERKEYS_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -27,5 +26,3 @@ typedef struct { } keypad_shiftregisterkeys_obj_t; void keypad_shiftregisterkeys_scan(keypad_shiftregisterkeys_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_SHIFTREGISTERKEYS_H diff --git a/shared-module/keypad/__init__.h b/shared-module/keypad/__init__.h index 0bc6f16599f88..a7d21753f6625 100644 --- a/shared-module/keypad/__init__.h +++ b/shared-module/keypad/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_KEYPAD_H -#define SHARED_MODULE_KEYPAD_H +#pragma once #include "py/obj.h" #include "supervisor/shared/lock.h" @@ -46,5 +45,3 @@ void keypad_never_reset(keypad_scanner_obj_t *self); size_t common_hal_keypad_generic_get_key_count(void *scanner); void common_hal_keypad_deinit_core(void *scanner); - -#endif // SHARED_MODULE_KEYPAD_H diff --git a/shared-module/keypad_demux/DemuxKeyMatrix.h b/shared-module/keypad_demux/DemuxKeyMatrix.h index 583e05fa8a5e0..45afa93a8442b 100644 --- a/shared-module/keypad_demux/DemuxKeyMatrix.h +++ b/shared-module/keypad_demux/DemuxKeyMatrix.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_DEMUX_DEMUXKEYMATRIX_H -#define MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_DEMUX_DEMUXKEYMATRIX_H +#pragma once #include "py/obj.h" #include "py/objtuple.h" @@ -22,5 +21,3 @@ typedef struct { void keypad_demux_demuxkeymatrix_scan(keypad_demux_demuxkeymatrix_obj_t *self); void demuxkeymatrix_never_reset(keypad_demux_demuxkeymatrix_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_KEYPAD_DEMUX_DEMUXKEYMATRIX_H diff --git a/shared-module/memorymonitor/AllocationAlarm.h b/shared-module/memorymonitor/AllocationAlarm.h index b106e76b09c3a..84730991b7dc0 100644 --- a/shared-module/memorymonitor/AllocationAlarm.h +++ b/shared-module/memorymonitor/AllocationAlarm.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_MEMORYMONITOR_ALLOCATIONALARM_H -#define MICROPY_INCLUDED_SHARED_MODULE_MEMORYMONITOR_ALLOCATIONALARM_H +#pragma once #include #include @@ -27,5 +26,3 @@ typedef struct _memorymonitor_allocationalarm_obj_t { void memorymonitor_allocationalarms_allocation(size_t block_count); void memorymonitor_allocationalarms_reset(void); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_MEMORYMONITOR_ALLOCATIONALARM_H diff --git a/shared-module/memorymonitor/AllocationSize.h b/shared-module/memorymonitor/AllocationSize.h index c4a2255b73233..b5ae6dcee5a30 100644 --- a/shared-module/memorymonitor/AllocationSize.h +++ b/shared-module/memorymonitor/AllocationSize.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_MEMORYMONITOR_ALLOCATIONSIZE_H -#define MICROPY_INCLUDED_SHARED_MODULE_MEMORYMONITOR_ALLOCATIONSIZE_H +#pragma once #include #include @@ -27,5 +26,3 @@ typedef struct _memorymonitor_allocationsize_obj_t { void memorymonitor_allocationsizes_track_allocation(size_t block_count); void memorymonitor_allocationsizes_reset(void); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_MEMORYMONITOR_ALLOCATIONSIZE_H diff --git a/shared-module/memorymonitor/__init__.h b/shared-module/memorymonitor/__init__.h index 38849b857200f..936dfe188d4ed 100644 --- a/shared-module/memorymonitor/__init__.h +++ b/shared-module/memorymonitor/__init__.h @@ -4,12 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_MEMORYMONITOR___INIT___H -#define MICROPY_INCLUDED_MEMORYMONITOR___INIT___H +#pragma once #include void memorymonitor_track_allocation(size_t block_count); void memorymonitor_reset(void); - -#endif // MICROPY_INCLUDED_MEMORYMONITOR___INIT___H diff --git a/shared-module/msgpack/__init__.h b/shared-module/msgpack/__init__.h index ccb5a97b15011..ecdb6b1e066a4 100644 --- a/shared-module/msgpack/__init__.h +++ b/shared-module/msgpack/__init__.h @@ -3,12 +3,9 @@ // SPDX-FileCopyrightText: Copyright (c) 2017 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_MSGPACK___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_MSGPACK___INIT___H +#pragma once #include "py/stream.h" void common_hal_msgpack_pack(mp_obj_t obj, mp_obj_t stream_obj, mp_obj_t default_handler); mp_obj_t common_hal_msgpack_unpack(mp_obj_t stream_obj, mp_obj_t ext_hook, bool use_list); - -#endif diff --git a/shared-module/onewireio/OneWire.h b/shared-module/onewireio/OneWire.h index a86e209d6b19b..334b1a78c40f7 100644 --- a/shared-module/onewireio/OneWire.h +++ b/shared-module/onewireio/OneWire.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_ONEWIREIO_ONEWIRE_H -#define MICROPY_INCLUDED_SHARED_MODULE_ONEWIREIO_ONEWIRE_H +#pragma once #include "common-hal/digitalio/DigitalInOut.h" @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; digitalio_digitalinout_obj_t pin; } onewireio_onewire_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_ONEWIREIO_ONEWIRE_H diff --git a/shared-module/rgbmatrix/__init__.h b/shared-module/rgbmatrix/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/rgbmatrix/__init__.h +++ b/shared-module/rgbmatrix/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/sdcardio/__init__.h b/shared-module/sdcardio/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/sdcardio/__init__.h +++ b/shared-module/sdcardio/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/sharpdisplay/__init__.h b/shared-module/sharpdisplay/__init__.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/sharpdisplay/__init__.h +++ b/shared-module/sharpdisplay/__init__.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/struct/__init__.h b/shared-module/struct/__init__.h index 9d73a73ecfeb5..aa2bda21065b0 100644 --- a/shared-module/struct/__init__.h +++ b/shared-module/struct/__init__.h @@ -3,11 +3,8 @@ // SPDX-FileCopyrightText: Copyright (c) 2017 Scott Shawcroft for Adafruit Industries // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_STRUCT___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_STRUCT___INIT___H +#pragma once char get_fmt_type(const char **fmt); mp_uint_t get_fmt_num(const char **p); mp_uint_t calcsize_items(const char *fmt); - -#endif diff --git a/shared-module/supervisor/Runtime.h b/shared-module/supervisor/Runtime.h index 21802da0c30f6..71d6fb32c327f 100755 --- a/shared-module/supervisor/Runtime.h +++ b/shared-module/supervisor/Runtime.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_SUPERVISOR_RUNTIME_H -#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_SUPERVISOR_RUNTIME_H +#pragma once #include "py/obj.h" @@ -13,5 +12,3 @@ typedef struct { mp_obj_base_t base; // Stores no state currently. } super_runtime_obj_t; - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_SUPERVISOR_RUNTIME_H diff --git a/shared-module/supervisor/StatusBar.h b/shared-module/supervisor/StatusBar.h index f1c00f58fd5ea..6afc94ccba399 100644 --- a/shared-module/supervisor/StatusBar.h +++ b/shared-module/supervisor/StatusBar.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_SUPERVISOR_STATUS_BAR_H -#define MICROPY_INCLUDED_SHARED_MODULE_SUPERVISOR_STATUS_BAR_H +#pragma once #include "py/obj.h" @@ -18,5 +17,3 @@ typedef struct { extern void shared_module_supervisor_status_bar_init(supervisor_status_bar_obj_t *self); extern void shared_module_supervisor_status_bar_updated(supervisor_status_bar_obj_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_SUPERVISOR_STATUS_BAR_H diff --git a/shared-module/synthio/MidiTrack.h b/shared-module/synthio/MidiTrack.h index 1358c8fe03336..816c0be695886 100644 --- a/shared-module/synthio/MidiTrack.h +++ b/shared-module/synthio/MidiTrack.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_SYNTHIO_MIDITRACK_H -#define MICROPY_INCLUDED_SHARED_MODULE_SYNTHIO_MIDITRACK_H +#pragma once #include "py/obj.h" @@ -36,5 +35,3 @@ audioio_get_buffer_result_t synthio_miditrack_get_buffer(synthio_miditrack_obj_t void synthio_miditrack_get_buffer_structure(synthio_miditrack_obj_t *self, bool single_channel_output, bool *single_buffer, bool *samples_signed, uint32_t *max_buffer_length, uint8_t *spacing); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_SYNTHIO_MIDITRACK_H diff --git a/shared-module/terminalio/Terminal.h b/shared-module/terminalio/Terminal.h index df2ee72c99d28..17230a74066c1 100644 --- a/shared-module/terminalio/Terminal.h +++ b/shared-module/terminalio/Terminal.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_TERMINALIO_TERMINAL_H -#define SHARED_MODULE_TERMINALIO_TERMINAL_H +#pragma once #include #include @@ -29,5 +28,3 @@ typedef struct { } terminalio_terminal_obj_t; extern void terminalio_terminal_clear_status_bar(terminalio_terminal_obj_t *self); - -#endif /* SHARED_MODULE_TERMINALIO_TERMINAL_H */ diff --git a/shared-module/terminalio/__init__.h b/shared-module/terminalio/__init__.h index 084e796ba196b..452d4223e55c0 100644 --- a/shared-module/terminalio/__init__.h +++ b/shared-module/terminalio/__init__.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef SHARED_MODULE_TERMINALIO___INIT___H #define SHARED_MODULE_TERMINALIO___INIT___H diff --git a/shared-module/touchio/TouchIn.h b/shared-module/touchio/TouchIn.h index 95b17cecb47ba..a03811a1823d4 100644 --- a/shared-module/touchio/TouchIn.h +++ b/shared-module/touchio/TouchIn.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_TOUCHIO_TOUCHIN_H -#define MICROPY_INCLUDED_SHARED_MODULE_TOUCHIO_TOUCHIN_H +#pragma once #include "common-hal/microcontroller/Pin.h" #include "shared-bindings/digitalio/DigitalInOut.h" @@ -20,5 +19,3 @@ typedef struct { } touchio_touchin_obj_t; void touchin_reset(void); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_TOUCHIO_TOUCHIN_H diff --git a/shared-module/traceback/__init__.h b/shared-module/traceback/__init__.h index 07a758d133962..c87ae3f7b4073 100644 --- a/shared-module/traceback/__init__.h +++ b/shared-module/traceback/__init__.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_TRACEBACK___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_TRACEBACK___INIT___H +#pragma once #include "py/objexcept.h" #include "py/objtraceback.h" extern void shared_module_traceback_print_exception(mp_obj_exception_t *exc, mp_print_t *print, mp_int_t limit); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_TRACEBACK___INIT___H diff --git a/shared-module/usb/core/Device.h b/shared-module/usb/core/Device.h index de7c98fc64637..2b628e05cf641 100644 --- a/shared-module/usb/core/Device.h +++ b/shared-module/usb/core/Device.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_USB_CORE_DEVICE_H -#define MICROPY_INCLUDED_SHARED_MODULE_USB_CORE_DEVICE_H +#pragma once #include "py/obj.h" @@ -17,5 +16,3 @@ typedef struct { uint8_t open_endpoints[8]; uint16_t first_langid; } usb_core_device_obj_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_USB_CORE_DEVICE_H diff --git a/shared-module/usb/utf16le.h b/shared-module/usb/utf16le.h index 82ca242087d50..c1a528ca5e6a3 100644 --- a/shared-module/usb/utf16le.h +++ b/shared-module/usb/utf16le.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_USB_UTF16LE_H -#define MICROPY_INCLUDED_SHARED_MODULE_USB_UTF16LE_H +#pragma once #include "py/obj.h" mp_obj_t utf16le_to_string(const uint16_t *buf, size_t utf16_len); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_USB_UTF16LE_H diff --git a/shared-module/usb_cdc/Serial.h b/shared-module/usb_cdc/Serial.h index aa7ebab05ab79..64cf8391ac48f 100644 --- a/shared-module/usb_cdc/Serial.h +++ b/shared-module/usb_cdc/Serial.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_CDC_SERIAL_H -#define SHARED_MODULE_USB_CDC_SERIAL_H +#pragma once #include "py/obj.h" @@ -15,5 +14,3 @@ typedef struct { mp_float_t write_timeout; // if negative, wait forever. uint8_t idx; // which CDC device? } usb_cdc_serial_obj_t; - -#endif // SHARED_MODULE_USB_CDC_SERIAL_H diff --git a/shared-module/usb_cdc/__init__.h b/shared-module/usb_cdc/__init__.h index 9638e86f8cd1a..33783ae68f57c 100644 --- a/shared-module/usb_cdc/__init__.h +++ b/shared-module/usb_cdc/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_CDC___INIT___H -#define SHARED_MODULE_USB_CDC___INIT___H +#pragma once #include "py/mpconfig.h" #include "py/objtuple.h" @@ -27,5 +26,3 @@ size_t usb_vendor_add_descriptor(uint8_t *descriptor_buf, descriptor_counts_t *d size_t vendor_ms_os_20_descriptor_length(void); uint8_t const *vendor_ms_os_20_descriptor(void); #endif - -#endif /* SHARED_MODULE_USB_CDC___INIT___H */ diff --git a/shared-module/usb_hid/Device.h b/shared-module/usb_hid/Device.h index eec6344dc7b1d..97bf1bd9ca2c9 100644 --- a/shared-module/usb_hid/Device.h +++ b/shared-module/usb_hid/Device.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_HID_DEVICE_H -#define SHARED_MODULE_USB_HID_DEVICE_H +#pragma once #include #include @@ -35,5 +34,3 @@ extern const usb_hid_device_obj_t usb_hid_device_consumer_control_obj; void usb_hid_device_create_report_buffers(usb_hid_device_obj_t *self); extern char *custom_usb_hid_interface_name; - -#endif /* SHARED_MODULE_USB_HID_DEVICE_H */ diff --git a/shared-module/usb_hid/__init__.h b/shared-module/usb_hid/__init__.h index 5119c26d13d5a..cb40006c78c0d 100644 --- a/shared-module/usb_hid/__init__.h +++ b/shared-module/usb_hid/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_HID___INIT___H -#define SHARED_MODULE_USB_HID___INIT___H +#pragma once #include "shared-module/usb_hid/Device.h" #include "supervisor/usb.h" @@ -27,5 +26,3 @@ void usb_hid_build_report_descriptor(void); bool usb_hid_get_device_with_report_id(uint8_t report_id, usb_hid_device_obj_t **device_out, size_t *id_idx_out); void usb_hid_gc_collect(void); - -#endif // SHARED_MODULE_USB_HID___INIT___H diff --git a/shared-module/usb_midi/PortIn.h b/shared-module/usb_midi/PortIn.h index 3caf1625718ca..5080bb73e9240 100644 --- a/shared-module/usb_midi/PortIn.h +++ b/shared-module/usb_midi/PortIn.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_MIDI_PORTIN_H -#define SHARED_MODULE_USB_MIDI_PORTIN_H +#pragma once #include #include @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; } usb_midi_portin_obj_t; - -#endif /* SHARED_MODULE_USB_MIDI_PORTIN_H */ diff --git a/shared-module/usb_midi/PortOut.h b/shared-module/usb_midi/PortOut.h index 196fc9f600a5c..2615c5a9ee57f 100644 --- a/shared-module/usb_midi/PortOut.h +++ b/shared-module/usb_midi/PortOut.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_MIDI_PORTOUT_H -#define SHARED_MODULE_USB_MIDI_PORTOUT_H +#pragma once #include #include @@ -15,5 +14,3 @@ typedef struct { mp_obj_base_t base; } usb_midi_portout_obj_t; - -#endif /* SHARED_MODULE_USB_MIDI_PORTOUT_H */ diff --git a/shared-module/usb_midi/__init__.h b/shared-module/usb_midi/__init__.h index 80402fddf87a2..73ebc317992f1 100644 --- a/shared-module/usb_midi/__init__.h +++ b/shared-module/usb_midi/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef SHARED_MODULE_USB_MIDI___INIT___H -#define SHARED_MODULE_USB_MIDI___INIT___H +#pragma once #include "supervisor/usb.h" @@ -20,5 +19,3 @@ extern char *custom_usb_midi_streaming_interface_name; extern char *custom_usb_midi_audio_control_interface_name; extern char *custom_usb_midi_in_jack_name; extern char *custom_usb_midi_out_jack_name; - -#endif /* SHARED_MODULE_USB_MIDI___INIT___H */ diff --git a/shared-module/usb_video/tusb_config.h b/shared-module/usb_video/tusb_config.h index 72d32ef2b2c5d..c9069db9fd7d5 100644 --- a/shared-module/usb_video/tusb_config.h +++ b/shared-module/usb_video/tusb_config.h @@ -3,3 +3,5 @@ // SPDX-FileCopyrightText: Copyright (c) 2024 Adafruit Industries LLC // // SPDX-License-Identifier: MIT + +#pragma once diff --git a/shared-module/usb_video/uvc_usb_descriptors.h b/shared-module/usb_video/uvc_usb_descriptors.h index 808107a9af0b4..ad9e5470cdc2f 100644 --- a/shared-module/usb_video/uvc_usb_descriptors.h +++ b/shared-module/usb_video/uvc_usb_descriptors.h @@ -5,8 +5,7 @@ // // SPDX-License-Identifier: MIT -#ifndef _USB_DESCRIPTORS_H_ -#define _USB_DESCRIPTORS_H_ +#pragma once #include "class/video/video.h" @@ -243,6 +242,3 @@ TUD_VIDEO_DESC_CS_VS_COLOR_MATCHING(VIDEO_COLOR_PRIMARIES_BT709, VIDEO_COLOR_XFER_CH_BT709, VIDEO_COLOR_COEF_SMPTE170M), \ /* EP */ \ TUD_VIDEO_DESC_EP_BULK(_epin, _epsize, 1) - - -#endif diff --git a/shared-module/vectorio/Circle.h b/shared-module/vectorio/Circle.h index 0536a9ba57b66..48d20b28d5cd5 100644 --- a/shared-module/vectorio/Circle.h +++ b/shared-module/vectorio/Circle.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_CIRCLE_H -#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_CIRCLE_H +#pragma once #include @@ -20,5 +19,3 @@ typedef struct { vectorio_event_t on_dirty; mp_obj_t draw_protocol_instance; } vectorio_circle_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_CIRCLE_H diff --git a/shared-module/vectorio/Polygon.h b/shared-module/vectorio/Polygon.h index c1eb3f3b67d7a..ea11109db7319 100644 --- a/shared-module/vectorio/Polygon.h +++ b/shared-module/vectorio/Polygon.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H -#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H +#pragma once #include @@ -21,5 +20,3 @@ typedef struct { vectorio_event_t on_dirty; mp_obj_t draw_protocol_instance; } vectorio_polygon_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_POLYGON_H diff --git a/shared-module/vectorio/Rectangle.h b/shared-module/vectorio/Rectangle.h index 42983e791cb4a..6733f74d1708f 100644 --- a/shared-module/vectorio/Rectangle.h +++ b/shared-module/vectorio/Rectangle.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H -#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H +#pragma once #include @@ -20,5 +19,3 @@ typedef struct { vectorio_event_t on_dirty; mp_obj_t draw_protocol_instance; } vectorio_rectangle_t; - -#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_RECTANGLE_H diff --git a/shared-module/vectorio/VectorShape.h b/shared-module/vectorio/VectorShape.h index 427768395cc3d..db77fc0acb940 100644 --- a/shared-module/vectorio/VectorShape.h +++ b/shared-module/vectorio/VectorShape.h @@ -5,8 +5,7 @@ // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_SHAPE_H -#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_SHAPE_H +#pragma once #include #include @@ -57,5 +56,3 @@ bool vectorio_vector_shape_fill_area(vectorio_vector_shape_t *self, const _displ // false if the vector shape wasn't rendered in the last frame. bool vectorio_vector_shape_get_previous_area(vectorio_vector_shape_t *self, displayio_area_t *out_area); void vectorio_vector_shape_finish_refresh(vectorio_vector_shape_t *self); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_SHAPE_H diff --git a/shared-module/vectorio/__init__.h b/shared-module/vectorio/__init__.h index 879fb577a878e..3db1071653c07 100644 --- a/shared-module/vectorio/__init__.h +++ b/shared-module/vectorio/__init__.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_INIT_H -#define MICROPY_INCLUDED_SHARED_MODULE_VECTORIO_INIT_H +#pragma once #include "py/obj.h" @@ -15,6 +14,3 @@ typedef struct { mp_obj_t obj; event_function *event; } vectorio_event_t; - - -#endif diff --git a/shared-module/watchdog/__init__.h b/shared-module/watchdog/__init__.h index 112af3b0863f3..12f2d241a167d 100644 --- a/shared-module/watchdog/__init__.h +++ b/shared-module/watchdog/__init__.h @@ -4,9 +4,6 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SHARED_MODULE_WATCHDOG___INIT___H -#define MICROPY_INCLUDED_SHARED_MODULE_WATCHDOG___INIT___H +#pragma once extern void watchdog_reset(void); - -#endif // MICROPY_INCLUDED_SHARED_MODULE_WATCHDOG___INIT___H diff --git a/shared/runtime/buffer_helper.h b/shared/runtime/buffer_helper.h index 86271bd3012b5..6d6f43243db5b 100644 --- a/shared/runtime/buffer_helper.h +++ b/shared/runtime/buffer_helper.h @@ -4,12 +4,9 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_LIB_UTILS_BUFFER_HELPER_H -#define MICROPY_INCLUDED_LIB_UTILS_BUFFER_HELPER_H +#pragma once #include #include void normalize_buffer_bounds(int32_t *start, int32_t end, size_t *length); - -#endif // MICROPY_INCLUDED_LIB_UTILS_BUFFER_HELPER_H diff --git a/shared/runtime/context_manager_helpers.h b/shared/runtime/context_manager_helpers.h index 3dd14e759f317..d8ec102ac5a54 100644 --- a/shared/runtime/context_manager_helpers.h +++ b/shared/runtime/context_manager_helpers.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_LIB_UTILS_CONTEXT_MANAGER_HELPERS_H -#define MICROPY_INCLUDED_LIB_UTILS_CONTEXT_MANAGER_HELPERS_H +#pragma once #include "py/obj.h" MP_DECLARE_CONST_FUN_OBJ_1(default___enter___obj); - -#endif // MICROPY_INCLUDED_LIB_UTILS_CONTEXT_MANAGER_HELPERS_H diff --git a/supervisor/background_callback.h b/supervisor/background_callback.h index dec5f442c1b74..b26a683ad206a 100644 --- a/supervisor/background_callback.h +++ b/supervisor/background_callback.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef CIRCUITPY_INCLUDED_SUPERVISOR_BACKGROUND_CALLBACK_H -#define CIRCUITPY_INCLUDED_SUPERVISOR_BACKGROUND_CALLBACK_H +#pragma once #include @@ -76,5 +75,3 @@ void background_callback_allow(void); * Background callbacks may stop objects from being collected */ void background_callback_gc_collect(void); - -#endif diff --git a/supervisor/board.h b/supervisor/board.h index 89de01d490a4f..0920bf4e5777b 100644 --- a/supervisor/board.h +++ b/supervisor/board.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_BOARD_H -#define MICROPY_INCLUDED_SUPERVISOR_BOARD_H +#pragma once #include @@ -26,5 +25,3 @@ void reset_board(void); // state. It should not prevent the user access method from working (such as // disabling USB, BLE or flash) because CircuitPython may continue to run. void board_deinit(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_BOARD_H diff --git a/supervisor/cpu.h b/supervisor/cpu.h index cd7bf93850558..c9b2b474ff24d 100755 --- a/supervisor/cpu.h +++ b/supervisor/cpu.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_CPU_H -#define MICROPY_INCLUDED_SUPERVISOR_CPU_H +#pragma once // Adds up to 10 pointers from the CPUs registers to regs. This is used to make sure no actively // used heap memory is freed. Its usually implemented in assembly. mp_uint_t cpu_get_regs_and_sp(mp_uint_t *regs); - -#endif // MICROPY_INCLUDED_SUPERVISOR_CPU_H diff --git a/supervisor/fatfs.h b/supervisor/fatfs.h index cd5605d8a423f..e212664210da3 100644 --- a/supervisor/fatfs.h +++ b/supervisor/fatfs.h @@ -4,11 +4,8 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_FATFS_H -#define MICROPY_INCLUDED_SUPERVISOR_FATFS_H +#pragma once #include "lib/oofatfs/ff.h" void override_fattime(DWORD time); - -#endif // MICROPY_INCLUDED_SUPERVISOR_FATFS_H diff --git a/supervisor/flash.h b/supervisor/flash.h index ab527d4d54dc4..ca3e42735ffac 100644 --- a/supervisor/flash.h +++ b/supervisor/flash.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_FLASH_H -#define MICROPY_INCLUDED_SUPERVISOR_FLASH_H +#pragma once #include #include @@ -33,5 +32,3 @@ void supervisor_flash_release_cache(void); void supervisor_flash_set_extended(bool extended); bool supervisor_flash_get_extended(void); void supervisor_flash_update_extended(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_FLASH_H diff --git a/supervisor/linker.h b/supervisor/linker.h index 06633b342de29..5b6895d5b492c 100644 --- a/supervisor/linker.h +++ b/supervisor/linker.h @@ -6,8 +6,7 @@ // These macros are used to place code and data into different linking sections. -#ifndef MICROPY_INCLUDED_SUPERVISOR_LINKER_H -#define MICROPY_INCLUDED_SUPERVISOR_LINKER_H +#pragma once #if defined(IMXRT1XXX) || defined(FOMU) || defined(STM32H7) || defined(RASPBERRYPI) #define PLACE_IN_DTCM_DATA(name) name __attribute__((section(".dtcm_data." #name))) @@ -19,5 +18,3 @@ #define PLACE_IN_DTCM_BSS(name) name #define PLACE_IN_ITCM(name) name #endif - -#endif // MICROPY_INCLUDED_SUPERVISOR_LINKER_H diff --git a/supervisor/shared/bluetooth/bluetooth.h b/supervisor/shared/bluetooth/bluetooth.h index 357dd6869ce24..14e74a07c7360 100644 --- a/supervisor/shared/bluetooth/bluetooth.h +++ b/supervisor/shared/bluetooth/bluetooth.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_H +#pragma once #include @@ -22,5 +21,3 @@ bool supervisor_bluetooth_workflow_is_enabled(void); // Title bar status bool supervisor_bluetooth_status_dirty(void); void supervisor_bluetooth_status(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_H diff --git a/supervisor/shared/bluetooth/file_transfer.h b/supervisor/shared/bluetooth/file_transfer.h index d6b2d2dc84397..12c75e1f548c7 100644 --- a/supervisor/shared/bluetooth/file_transfer.h +++ b/supervisor/shared/bluetooth/file_transfer.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_FILE_TRANSFER_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_FILE_TRANSFER_H +#pragma once #include void supervisor_bluetooth_file_transfer_background(void); void supervisor_start_bluetooth_file_transfer(void); void supervisor_bluetooth_file_transfer_disconnected(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_FILE_TRANSFER_H diff --git a/supervisor/shared/bluetooth/file_transfer_protocol.h b/supervisor/shared/bluetooth/file_transfer_protocol.h index f1b7126f2ac32..2672787d001e1 100644 --- a/supervisor/shared/bluetooth/file_transfer_protocol.h +++ b/supervisor/shared/bluetooth/file_transfer_protocol.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_FILE_TRANSFER_PROTOCOL_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_FILE_TRANSFER_PROTOCOL_H +#pragma once #include @@ -155,6 +154,3 @@ struct move_status { #define STATUS_ERROR_NO_FILE 0x03 #define STATUS_ERROR_PROTOCOL 0x04 #define STATUS_ERROR_READONLY 0x05 - - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_FILE_TRANSFER_PROTOCOL_H diff --git a/supervisor/shared/bluetooth/serial.h b/supervisor/shared/bluetooth/serial.h index ac5c21c92004b..0e6450b678f5b 100644 --- a/supervisor/shared/bluetooth/serial.h +++ b/supervisor/shared/bluetooth/serial.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_SERIAL_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_SERIAL_H +#pragma once #include #include @@ -19,5 +18,3 @@ char ble_serial_read_char(void); void ble_serial_write(const char *text, size_t len); void ble_serial_enable(void); void ble_serial_disable(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_BLUETOOTH_SERIAL_H diff --git a/supervisor/shared/board.h b/supervisor/shared/board.h index 589bd517f9667..14fb5812c3966 100644 --- a/supervisor/shared/board.h +++ b/supervisor/shared/board.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_BOARD_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_BOARD_H +#pragma once #include #include "shared-bindings/microcontroller/Pin.h" void board_reset_user_neopixels(const mcu_pin_obj_t *pin, size_t count); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_BOARD_H diff --git a/supervisor/shared/cpu.h b/supervisor/shared/cpu.h index 3555fe18024bf..830d2a082747e 100644 --- a/supervisor/shared/cpu.h +++ b/supervisor/shared/cpu.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_CPU_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_CPU_H +#pragma once #include #include // True when we're in an interrupt handler. bool cpu_interrupt_active(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_CPU_H diff --git a/supervisor/shared/display.h b/supervisor/shared/display.h index 017a02fefdbbf..f4b09ce30b601 100644 --- a/supervisor/shared/display.h +++ b/supervisor/shared/display.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_DISPLAY_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_DISPLAY_H +#pragma once #include @@ -35,5 +34,3 @@ extern displayio_tilegrid_t supervisor_blinka_sprite; void supervisor_start_terminal(uint16_t width_px, uint16_t height_px); void supervisor_stop_terminal(void); bool supervisor_terminal_started(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_DISPLAY_H diff --git a/supervisor/shared/external_flash/common_commands.h b/supervisor/shared/external_flash/common_commands.h index f95dbee9f46b5..539f679d766e4 100644 --- a/supervisor/shared/external_flash/common_commands.h +++ b/supervisor/shared/external_flash/common_commands.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2013, 2014 Damien P. George // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_COMMON_COMMANDS_H -#define MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_COMMON_COMMANDS_H +#pragma once #define CMD_READ_JEDEC_ID 0x9f #define CMD_READ_DATA 0x03 @@ -24,5 +23,3 @@ #define CMD_ENABLE_RESET 0x66 #define CMD_RESET 0x99 #define CMD_WAKE 0xab - -#endif // MICROPY_INCLUDED_ATMEL_SAMD_EXTERNAL_FLASH_COMMON_COMMANDS_H diff --git a/supervisor/shared/external_flash/device.h b/supervisor/shared/external_flash/device.h index fae0dfbd31d29..869f7b7a24439 100644 --- a/supervisor/shared/external_flash/device.h +++ b/supervisor/shared/external_flash/device.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 Scott Shawcroft for Adafruit Industries LLC // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_DEVICE_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_DEVICE_H +#pragma once #include #include @@ -54,5 +53,3 @@ typedef struct { // Device does not have a reset command bool no_reset_cmd : 1; } external_flash_device; - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_DEVICE_H diff --git a/supervisor/shared/external_flash/external_flash.h b/supervisor/shared/external_flash/external_flash.h index 25ca2f017a22d..4c1409aba8f6c 100644 --- a/supervisor/shared/external_flash/external_flash.h +++ b/supervisor/shared/external_flash/external_flash.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 Scott Shawcroft for Adafruit Industries LLC // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_EXTERNAL_FLASH_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_EXTERNAL_FLASH_H +#pragma once #include #include @@ -31,5 +30,3 @@ void supervisor_external_flash_flush(void); // is init'ed. For example, if GPIO needs to be configured to enable the // flash chip, as is the case on some boards. void external_flash_setup(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_EXTERNAL_FLASH_H diff --git a/supervisor/shared/external_flash/qspi_flash.h b/supervisor/shared/external_flash/qspi_flash.h index 6f77ef047f26d..51f67305a2833 100644 --- a/supervisor/shared/external_flash/qspi_flash.h +++ b/supervisor/shared/external_flash/qspi_flash.h @@ -3,9 +3,6 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 Scott Shawcroft for Adafruit Industries LLC // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_QSPI_FLASH_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_QSPI_FLASH_H +#pragma once void check_quad_enable(const external_flash_device *device); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_EXTERNAL_FLASH_QSPI_FLASH_H diff --git a/supervisor/shared/internal_flash.h b/supervisor/shared/internal_flash.h index 1809bc24f493f..139e86cf49bf5 100644 --- a/supervisor/shared/internal_flash.h +++ b/supervisor/shared/internal_flash.h @@ -3,11 +3,8 @@ // SPDX-FileCopyrightText: Copyright (c) 2020 Scott Shawcroft, for Adafruit Industries LLC // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SHARED_INTERNAL_FLASH_H -#define MICROPY_INCLUDED_SUPERVISOR_SHARED_INTERNAL_FLASH_H +#pragma once #include "supervisor/internal_flash.h" // This is per-port. void port_internal_flash_flush(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SHARED_INTERNAL_FLASH_H diff --git a/supervisor/shared/lock.h b/supervisor/shared/lock.h index e89eb0f22d2f5..fcaf91b63ad33 100644 --- a/supervisor/shared/lock.h +++ b/supervisor/shared/lock.h @@ -4,13 +4,10 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_LOCK_H -#define MICROPY_INCLUDED_SUPERVISOR_LOCK_H +#pragma once typedef volatile bool supervisor_lock_t; void supervisor_acquire_lock(supervisor_lock_t *lock); bool supervisor_try_lock(supervisor_lock_t *lock); void supervisor_release_lock(supervisor_lock_t *lock); - -#endif // MICROPY_INCLUDED_SUPERVISOR_LOCK_H diff --git a/supervisor/shared/reload.h b/supervisor/shared/reload.h index 7800cf6fd4c01..9d65270bd4a28 100644 --- a/supervisor/shared/reload.h +++ b/supervisor/shared/reload.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_AUTORELOAD_H -#define MICROPY_INCLUDED_SUPERVISOR_AUTORELOAD_H +#pragma once #include "py/obj.h" #include "shared-bindings/supervisor/RunReason.h" @@ -53,5 +52,3 @@ bool autoreload_pending(void); void autoreload_suspend(uint32_t suspend_reason_mask); // Allow autoreloads again, for the given reason(s). void autoreload_resume(uint32_t suspend_reason_mask); - -#endif // MICROPY_INCLUDED_SUPERVISOR_AUTORELOAD_H diff --git a/supervisor/shared/rgb_led_colors.h b/supervisor/shared/rgb_led_colors.h index bf2d7697c7d26..8e553d6d23e1e 100644 --- a/supervisor/shared/rgb_led_colors.h +++ b/supervisor/shared/rgb_led_colors.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #define COLOR(r, g, b) (((r) << 16) | ((g) << 8) | (b)) // For brightness == 255 (full). This will be adjusted downward for various different RGB indicators, // which vary in brightness. diff --git a/supervisor/shared/safe_mode.h b/supervisor/shared/safe_mode.h index 63db2a4c0ba64..8f4037cbe20c3 100644 --- a/supervisor/shared/safe_mode.h +++ b/supervisor/shared/safe_mode.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SAFE_MODE_H -#define MICROPY_INCLUDED_SUPERVISOR_SAFE_MODE_H +#pragma once #include "py/mpconfig.h" @@ -42,5 +41,3 @@ void safe_mode_on_next_reset(safe_mode_t reason); void reset_into_safe_mode(safe_mode_t reason) NORETURN; void print_safe_mode_message(safe_mode_t reason); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SAFE_MODE_H diff --git a/supervisor/shared/serial.h b/supervisor/shared/serial.h index 9620b12443a9d..b2af28066c620 100644 --- a/supervisor/shared/serial.h +++ b/supervisor/shared/serial.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SERIAL_H -#define MICROPY_INCLUDED_SUPERVISOR_SERIAL_H +#pragma once #include #include @@ -49,5 +48,3 @@ uint32_t board_serial_bytes_available(void); void board_serial_write_substring(const char *text, uint32_t length); int console_uart_printf(const char *fmt, ...) __attribute__((format(printf, 1, 2))); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SERIAL_H diff --git a/supervisor/shared/status_leds.h b/supervisor/shared/status_leds.h index 26d3f264fe207..1fd752d31fda6 100644 --- a/supervisor/shared/status_leds.h +++ b/supervisor/shared/status_leds.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_STATUS_LEDS_H -#define MICROPY_INCLUDED_SUPERVISOR_STATUS_LEDS_H +#pragma once #include #include @@ -39,5 +38,3 @@ void init_rxtx_leds(void); void deinit_rxtx_leds(void); void toggle_rx_led(void); void toggle_tx_led(void); - -#endif // MICROPY_INCLUDED_SUPERVISOR_STATUS_LEDS_H diff --git a/supervisor/shared/tick.h b/supervisor/shared/tick.h index 9840d6ffdd214..fc18e8f762f55 100644 --- a/supervisor/shared/tick.h +++ b/supervisor/shared/tick.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef __INCLUDED_SUPERVISOR_TICK_H -#define __INCLUDED_SUPERVISOR_TICK_H +#pragma once #include #include @@ -44,5 +43,3 @@ extern void supervisor_disable_tick(void); * intended. */ extern bool supervisor_background_ticks_ok(void); - -#endif diff --git a/supervisor/shared/traceback.h b/supervisor/shared/traceback.h index 64994c26a0f66..f67a8cc89aba4 100644 --- a/supervisor/shared/traceback.h +++ b/supervisor/shared/traceback.h @@ -4,6 +4,8 @@ // // SPDX-License-Identifier: MIT +#pragma once + #ifndef MICROPY_INCLUDED_SUPERVISOR_TRACEBACK_H #define MICROPY_INCLUDED_SUPERVISOR_TRACEBACK_H diff --git a/supervisor/shared/usb/usb_vendor_descriptors.h b/supervisor/shared/usb/usb_vendor_descriptors.h index 0849075dae4cf..ad398db99f5c8 100644 --- a/supervisor/shared/usb/usb_vendor_descriptors.h +++ b/supervisor/shared/usb/usb_vendor_descriptors.h @@ -4,8 +4,7 @@ // // SPDX-License-Identifier: MIT -#ifndef USB_DESCRIPTORS_H_ -#define USB_DESCRIPTORS_H_ +#pragma once #include @@ -17,5 +16,3 @@ enum size_t vendor_ms_os_20_descriptor_length(void); uint8_t const *vendor_ms_os_20_descriptor(void); - -#endif /* USB_DESCRIPTORS_H_ */ diff --git a/supervisor/spi_flash_api.h b/supervisor/spi_flash_api.h index deba3794e1f43..eeb2ac68835e2 100644 --- a/supervisor/spi_flash_api.h +++ b/supervisor/spi_flash_api.h @@ -3,8 +3,7 @@ // SPDX-FileCopyrightText: Copyright (c) 2018 Scott Shawcroft for Adafruit Industries LLC // // SPDX-License-Identifier: MIT -#ifndef MICROPY_INCLUDED_SUPERVISOR_SPI_FLASH_H -#define MICROPY_INCLUDED_SUPERVISOR_SPI_FLASH_H +#pragma once #include #include @@ -25,5 +24,3 @@ bool spi_flash_write_data(uint32_t address, uint8_t *data, uint32_t data_length) bool spi_flash_read_data(uint32_t address, uint8_t *data, uint32_t data_length); void spi_flash_init(void); void spi_flash_init_device(const external_flash_device *device); - -#endif // MICROPY_INCLUDED_SUPERVISOR_SPI_FLASH_H pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy