Loading...
Searching...
No Matches
periph_cpu.h File Reference

CPU specific definitions for internal peripheral handling. More...

Detailed Description

CPU specific definitions for internal peripheral handling.

Author
Hauke Petersen hauke.nosp@m..pet.nosp@m.ersen.nosp@m.@fu-.nosp@m.berli.nosp@m.n.de
Tobias Fredersdorf tobia.nosp@m.s.fr.nosp@m.eders.nosp@m.dorf.nosp@m.@haw-.nosp@m.hamb.nosp@m.urg.d.nosp@m.e

Definition in file periph_cpu.h.

#include "periph_cpu_common.h"
+ Include dependency graph for periph_cpu.h:

Go to the source code of this file.

Data Structures

struct  pwm_chan_conf_t
 PWM channel configuration. More...
 
struct  spi_conf_t
 SPI device configuration. More...
 

Macros

#define CPUID_LEN   (16U)
 Length of the CPU_ID in octets.
 

RTT configuration

#define RTT_MAX_VALUE   (0xffffffff)
 
#define RTT_CLOCK_FREQUENCY   (CHIP_FREQ_XTAL_32K) /* in Hz */
 
#define RTT_MIN_FREQUENCY   (1) /* in Hz */
 
#define RTT_MAX_FREQUENCY   (RTT_CLOCK_FREQUENCY) /* in Hz */
 

ADC configuration, valid for all boards using this CPU

The sam3 has a fixed mapping of ADC pins and a fixed number of ADC channels, so this ADC configuration is valid for all boards using this CPU.

No need for any board specific configuration.

#define ADC_NUMOF   (16U)
 
#define DAC_NUMOF   (2U)
 DAC configuration, valid for all boards using this CPU.
 

Macro Definition Documentation

◆ ADC_NUMOF

#define ADC_NUMOF   (16U)

Definition at line 63 of file periph_cpu.h.

◆ CPUID_LEN

#define CPUID_LEN   (16U)

Length of the CPU_ID in octets.

Definition at line 44 of file periph_cpu.h.

◆ DAC_NUMOF

#define DAC_NUMOF   (2U)

DAC configuration, valid for all boards using this CPU.

The sam3 has a fixed mapping of DAC pins and a fixed number of DAC channels, so this DAC configuration is valid for all boards using this CPU. No need for any board specific configuration.

The sam3's DAC channels are mapped to the following fixed pins:

  • line 0 (ch0): PB15
  • line 1 (ch1): PB16

Definition at line 76 of file periph_cpu.h.

◆ PERIPH_SPI_NEEDS_INIT_CS

#define PERIPH_SPI_NEEDS_INIT_CS

Definition at line 35 of file periph_cpu.h.

◆ PERIPH_SPI_NEEDS_TRANSFER_BYTE

#define PERIPH_SPI_NEEDS_TRANSFER_BYTE

Definition at line 36 of file periph_cpu.h.

◆ PERIPH_SPI_NEEDS_TRANSFER_REG

#define PERIPH_SPI_NEEDS_TRANSFER_REG

Definition at line 37 of file periph_cpu.h.

◆ PERIPH_SPI_NEEDS_TRANSFER_REGS

#define PERIPH_SPI_NEEDS_TRANSFER_REGS

Definition at line 38 of file periph_cpu.h.

◆ RTT_CLOCK_FREQUENCY

#define RTT_CLOCK_FREQUENCY   (CHIP_FREQ_XTAL_32K) /* in Hz */

Definition at line 51 of file periph_cpu.h.

◆ RTT_MAX_FREQUENCY

#define RTT_MAX_FREQUENCY   (RTT_CLOCK_FREQUENCY) /* in Hz */

Definition at line 53 of file periph_cpu.h.

◆ RTT_MAX_VALUE

#define RTT_MAX_VALUE   (0xffffffff)

Definition at line 50 of file periph_cpu.h.

◆ RTT_MIN_FREQUENCY

#define RTT_MIN_FREQUENCY   (1) /* in Hz */

Definition at line 52 of file periph_cpu.h.