Skip to content

Commit

Permalink
hw/mcu/nordic: Add common GPIO HAL for nRF MCUs
Browse files Browse the repository at this point in the history
Common HAL package will be extended in the future
to provide common HAL API for other peripherals.
This also makes GPIO HAL use the API provided by nrfx,
instead of using MCUs registers directly.
  • Loading branch information
m-gorecki committed Jun 17, 2024
1 parent 7803945 commit ccc32ce
Show file tree
Hide file tree
Showing 12 changed files with 133 additions and 2,141 deletions.
3 changes: 1 addition & 2 deletions hw/mcu/nordic/nrf51xxx/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ pkg.keywords:

pkg.deps:
- "@apache-mynewt-core/hw/mcu/nordic"
- "@apache-mynewt-core/hw/cmsis-core"
- "@apache-mynewt-core/hw/hal"
- "@apache-mynewt-core/hw/mcu/nordic/nrf_common"

pkg.ign_files.'!MCU_COMMON_STARTUP || SPLIT_LOADER':
- gcc_startup_cm0.s
Expand Down
351 changes: 0 additions & 351 deletions hw/mcu/nordic/nrf51xxx/src/hal_gpio.c

This file was deleted.

3 changes: 1 addition & 2 deletions hw/mcu/nordic/nrf52xxx/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ pkg.keywords:

pkg.deps:
- "@apache-mynewt-core/hw/mcu/nordic"
- "@apache-mynewt-core/hw/cmsis-core"
- "@apache-mynewt-core/hw/hal"
- "@apache-mynewt-core/hw/mcu/nordic/nrf_common"

pkg.ign_files.'!MCU_COMMON_STARTUP || SPLIT_LOADER':
- gcc_startup_cm4.s
Expand Down
3 changes: 1 addition & 2 deletions hw/mcu/nordic/nrf5340/pkg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ pkg.keywords:

pkg.deps:
- "@apache-mynewt-core/hw/mcu/nordic"
- "@apache-mynewt-core/hw/cmsis-core"
- "@apache-mynewt-core/hw/hal"
- "@apache-mynewt-core/hw/mcu/nordic/nrf_common"
- "@apache-mynewt-core/hw/mcu/nordic/nrf5340/tfm"

pkg.deps.BUS_DRIVER_PRESENT:
Expand Down
Loading

0 comments on commit ccc32ce

Please sign in to comment.