Skip to content

Commit

Permalink
Add Arm Cortex-M0+ interrupt facilities namespace (#38)
Browse files Browse the repository at this point in the history
Resolves #33 (Add Arm Cortex-M0+ interrupt facilities namespace).
  • Loading branch information
apcountryman authored Jan 3, 2024
1 parent d341063 commit 32e32e5
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
1. [Library Version](library_version.md)
1. [Library Configuration](library_configuration.md)
1. [Peripheral Facilities](peripheral.md)
1. [Interrupt Facilities](interrupt.md)
6 changes: 6 additions & 0 deletions docs/interrupt.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Interrupt Facilities
Arm Cortex-M0+ interrupt facilities are defined in the
[`include/picolibrary/arm/cortex/m0plus/interrupt.h`](https://github.com/apcountryman/picolibrary-arm-cortex-m0plus/blob/main/include/picolibrary/arm/cortex/m0plus/interrupt.h)/[`source/picolibrary/arm/cortex/m0plus/interrupt.cc`](https://github.com/apcountryman/picolibrary-arm-cortex-m0plus/blob/main/source/picolibrary/arm/cortex/m0plus/interrupt.cc)
header/source file pair.

## Table of Contents
32 changes: 32 additions & 0 deletions include/picolibrary/arm/cortex/m0plus/interrupt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/**
* picolibrary-arm-cortex-m0plus
*
* Copyright 2023, Andrew Countryman <apcountryman@gmail.com> and the
* picolibrary-arm-cortex-m0plus contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/**
* \file
* \brief picolibrary::Arm::Cortex::M0PLUS::Interrupt interface.
*/

#ifndef PICOLIBRARY_ARM_CORTEX_M0PLUS_INTERRUPT_H
#define PICOLIBRARY_ARM_CORTEX_M0PLUS_INTERRUPT_H

/**
* \brief Arm Cortex-M0+ interrupt facilities.
*/
namespace picolibrary::Arm::Cortex::M0PLUS::Interrupt {
} // namespace picolibrary::Arm::Cortex::M0PLUS::Interrupt

#endif // PICOLIBRARY_ARM_CORTEX_M0PLUS_INTERRUPT_H
1 change: 1 addition & 0 deletions source/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ set(
PICOLIBRARY_ARM_CORTEX_M0PLUS_SOURCE_FILES
"picolibrary/arm/cortex/m0plus.cc"
"picolibrary/arm/cortex/m0plus/configuration.cc"
"picolibrary/arm/cortex/m0plus/interrupt.cc"
"picolibrary/arm/cortex/m0plus/peripheral.cc"
"picolibrary/arm/cortex/m0plus/peripheral/mpu.cc"
"picolibrary/arm/cortex/m0plus/peripheral/nvic.cc"
Expand Down
23 changes: 23 additions & 0 deletions source/picolibrary/arm/cortex/m0plus/interrupt.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
/**
* picolibrary-arm-cortex-m0plus
*
* Copyright 2023, Andrew Countryman <apcountryman@gmail.com> and the
* picolibrary-arm-cortex-m0plus contributors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this
* file except in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

/**
* \file
* \brief picolibrary::Arm::Cortex::M0PLUS::Interrupt implementation.
*/

#include "picolibrary/arm/cortex/m0plus/interrupt.h"

0 comments on commit 32e32e5

Please sign in to comment.