Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
b2f4a7e7
Commit
b2f4a7e7
authored
6 years ago
by
Alexandre Abadie
Browse files
Options
Downloads
Patches
Plain Diff
boards/acd52832: also use nrf52 common place
parent
5429c71c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
boards/acd52832/Makefile.features
+6
-1
6 additions, 1 deletion
boards/acd52832/Makefile.features
boards/acd52832/Makefile.include
+1
-1
1 addition, 1 deletion
boards/acd52832/Makefile.include
boards/acd52832/include/periph_conf.h
+4
-35
4 additions, 35 deletions
boards/acd52832/include/periph_conf.h
with
11 additions
and
37 deletions
boards/acd52832/Makefile.features
+
6
−
1
View file @
b2f4a7e7
include
$(RIOTBOARD)/common/nrf52xxxdk/Makefile.features
# Put defined MCU peripherals here (in alphabetical order)
FEATURES_PROVIDED
+=
periph_i2c
FEATURES_PROVIDED
+=
periph_spi
FEATURES_PROVIDED
+=
periph_uart
include
$(RIOTBOARD)/common/nrf52/Makefile.features
This diff is collapsed.
Click to expand it.
boards/acd52832/Makefile.include
+
1
−
1
View file @
b2f4a7e7
...
@@ -4,4 +4,4 @@ export CPU_MODEL = nrf52832xxaa
...
@@ -4,4 +4,4 @@ export CPU_MODEL = nrf52832xxaa
# set default port depending on operating system
# set default port depending on operating system
PORT_LINUX
?=
/dev/ttyUSB0
PORT_LINUX
?=
/dev/ttyUSB0
include
$(RIOTBOARD)/common/nrf52
xxxdk
/Makefile.include
include
$(RIOTBOARD)/common/nrf52/Makefile.include
This diff is collapsed.
Click to expand it.
boards/acd52832/include/periph_conf.h
+
4
−
35
View file @
b2f4a7e7
...
@@ -23,6 +23,9 @@
...
@@ -23,6 +23,9 @@
#define PERIPH_CONF_H
#define PERIPH_CONF_H
#include
"periph_cpu.h"
#include
"periph_cpu.h"
#include
"cfg_clock_32_1.h"
#include
"cfg_rtt_default.h"
#include
"cfg_timer_default.h"
#ifdef __cplusplus
#ifdef __cplusplus
extern
"C"
{
extern
"C"
{
...
@@ -31,44 +34,9 @@ extern "C" {
...
@@ -31,44 +34,9 @@ extern "C" {
/**
/**
* @name Clock configuration
* @name Clock configuration
*
*
* @note The radio will not work with the internal RC oscillator!
*
* @{
* @{
*/
*/
#define CLOCK_CORECLOCK (64000000U)
/* fixed for all nRF52832 */
#define CLOCK_CORECLOCK (64000000U)
/* fixed for all nRF52832 */
#define CLOCK_HFCLK (32U)
/* set to 0: internal RC oscillator
* 32: 32MHz crystal */
#define CLOCK_LFCLK (1)
/* set to 0: internal RC oscillator
* 1: 32.768 kHz crystal
* 2: derived from HFCLK */
/** @} */
/**
* @name Timer configuration
* @{
*/
static
const
timer_conf_t
timer_config
[]
=
{
{
.
dev
=
NRF_TIMER1
,
.
channels
=
3
,
.
bitmode
=
TIMER_BITMODE_BITMODE_32Bit
,
.
irqn
=
TIMER1_IRQn
}
};
#define TIMER_0_ISR isr_timer1
#define TIMER_NUMOF (sizeof(timer_config) / sizeof(timer_config[0]))
/** @} */
/**
* @name Real time counter configuration
* @{
*/
#define RTT_NUMOF (1U)
#define RTT_DEV (1)
/* NRF_RTC1 */
#define RTT_MAX_VALUE (0x00ffffff)
#define RTT_FREQUENCY (1024)
/** @} */
/** @} */
/**
/**
...
@@ -117,3 +85,4 @@ static const i2c_conf_t i2c_config[] = {
...
@@ -117,3 +85,4 @@ static const i2c_conf_t i2c_config[] = {
#endif
#endif
#endif
/* PERIPH_CONF_H */
#endif
/* PERIPH_CONF_H */
/** @} */
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment