Skip to content

Commit c1c4410

Browse files
committed
docs: Improve documentation
The repository do not have a documentation entry point. This add the missing documentation entry point with general guidelines. In addition links the documentation on scripts and pinconfigs with the main page. Signed-off-by: Gerson Fernando Budke <[email protected]>
1 parent d45adfb commit c1c4410

File tree

11 files changed

+181
-7
lines changed

11 files changed

+181
-7
lines changed

README.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Introduction
2+
3+
The **hal_atmel** is a set of register definitions for Atmel SAM/SAM0 SoC's.
4+
The HAL is organized following the directory structure detailed below.
5+
6+
## Directory Structure
7+
8+
The directory is composed by six parts:
9+
```
10+
.
11+
├── asf
12+
├── include
13+
├── pinconfigs
14+
├── README.md
15+
├── scripts
16+
└── zephyr
17+
```
18+
19+
- Atmel Software Framework SoC specific include libraries.
20+
- Includes specific for these platforms
21+
- devicetree bindings
22+
- [Pin definitions](pinconfigs/README.md)
23+
- [Scripts](scripts/README.md) used for code generation
24+
- ZephyrRTOS module directory (`zephyr`).
25+
- This README file.
26+
27+
# How to submit code
28+
29+
Any contribution should follow the `How to submit code` using as premisses the
30+
[Zephyr Contribution Guidelines](https://docs.zephyrproject.org/latest/contribute/index.html).
31+
For more information about External Modules see
32+
[Modules Section](https://docs.zephyrproject.org/latest/develop/modules.html) in special
33+
[Submitting Changes to Modules](https://docs.zephyrproject.org/latest/develop/modules.html#submitting-changes-to-modules)
34+
35+
36+
## Repository specific guidelines
37+
38+
- When submitting an updated firmware library version, it is important to make
39+
sure that the last firmware version will be merged. The library version is
40+
used to be checked at [Atmel packs download site](http://packs.download.atmel.com/).
41+
- When submitting an updated firmware library version the patchset already
42+
applied should be rebased on top of the newer version.
43+
- The patchset must be sent as an individual commit per SoC series to easy rebase.
44+
- This repository is managed mainly on Linux. This means that changes should
45+
be submitted using Linux LF format. Usually running a similar command to
46+
`find * type f -print0 | xargs -0 dos2unix -k` should be enough.
47+
- Make sure directory structure is respected.
48+
- The `asf/[sam|sam0]/include/<soc>/README` file should be updated accordingly.
49+
If for some reason the file not exists it should be created.
50+
- Directory names should be converted to lowercase.
51+
- The recommendation is add **all fixups** in the `hal_atmel` instead on the
52+
ZephyrRTOS project.
53+
54+
The above are general guidelines and exceptions could happen. In this case, the
55+
exception should be addressed at review phase.
56+
57+
## The standard API
58+
59+
The SAM/SAM0 standard API define all information to access Atmel SoC's
60+
peripherals. This library does not have namespaces and prefixes which
61+
easily results in name collision with ZephyrRTOS core and libraries. To avoid
62+
that situation, macros, enum values and function names should follow two
63+
general rules:
64+
65+
- Public API functions must be prefixed with `sam_` or `sam0_`.
66+
- Public defines and enum values must be uppercase and prefixed with `SAM_`
67+
or `SAM0_`.

asf/sam/include/sam3x/README

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
Atmel SAM3X
5+
###########
6+
7+
Origin:
8+
Microchip Packs Repository
9+
http://packs.download.atmel.com/
10+
11+
Atmel SAM4E Series Device Support (1.1.57)
12+
http://packs.download.atmel.com/Atmel.SAM3X_DFP.1.0.50.atpack
13+
14+
Status:
15+
version 1.0.50
16+
17+
Purpose:
18+
Official package for SAM3X.
19+
20+
Description:
21+
Atmel Software Framework (ASF) provides a set of low-level
22+
header files that give access to different hardware
23+
peripherals of Atmel's ICs.
24+
25+
URL:
26+
http://packs.download.atmel.com/
27+
http://packs.download.atmel.com/Atmel.SAM3X_DFP.1.0.50.atpack
28+
29+
commit:
30+
n/a
31+
32+
Maintained-by:
33+
External
34+
35+
License:
36+
SAM Software Package License
37+
38+
License Link:
39+
n/a
40+
41+
Patch Lst:
42+
* Fix TC registers macros

asf/sam/include/sam4e/README

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
Atmel SAM4E
25
###########
36

@@ -38,4 +41,9 @@ License Link:
3841
Patch Lst:
3942
* Add MPU peripheral in device file
4043
* Fix CHIPID_EXID for SAM4E8C and SAM4E16C
41-
44+
* Add SPI_CSR_BITS register macro
45+
* Fix GMAC_UR_RMII register macro
46+
* Fix PIO_PD6A_GRX1 register macro
47+
* Add WDT_CR_KEY_PASSWD register macro
48+
* Fix PMC registers macros
49+
* Fix TC registers macros

asf/sam/include/sam4l/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
Atmel SAM4L
25
###########
36

asf/sam/include/sam4s/README

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
Atmel SAM4S
5+
###########
6+
7+
Origin:
8+
Microchip Packs Repository
9+
http://packs.download.atmel.com/
10+
11+
Atmel SAM4E Series Device Support (1.1.56)
12+
http://packs.download.atmel.com/Atmel.SAM4S_DFP.1.1.56.atpack
13+
14+
Status:
15+
version 1.1.56
16+
17+
Purpose:
18+
Official package for SAM4S.
19+
20+
Description:
21+
Atmel Software Framework (ASF) provides a set of low-level
22+
header files that give access to different hardware
23+
peripherals of Atmel's ICs.
24+
25+
URL:
26+
http://packs.download.atmel.com/
27+
http://packs.download.atmel.com/Atmel.SAM4E_DFP.1.1.56.atpack
28+
29+
commit:
30+
n/a
31+
32+
Maintained-by:
33+
External
34+
35+
License:
36+
SAM Software Package License
37+
38+
License Link:
39+
n/a
40+
41+
Patch Lst:
42+
* Fix TC registers macros

asf/sam/include/same70/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
Atmel SAM E70
25
#############
36

asf/sam/include/same70b/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
Atmel SAM E70B
25
##############
36

asf/sam/include/samv71/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
Atmel SAM V71
25
#############
36

asf/sam/include/samv71b/README

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright (c) 2023 Gerson Fernando Budke
2+
# SPDX-License-Identifier: Apache-2.0
3+
14
Atmel SAM V71B
25
##############
36

pinconfigs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Atmel SAM pin configurations
1+
# Atmel SAM/SAM0 pin configurations
22

33
This directory contains a set of files describing valid pin configurations for
44
multiple Atmel Smart Arm MCUs (SAM) devices. This configuration files maps a

0 commit comments

Comments
 (0)