aboutsummaryrefslogtreecommitdiffstats
path: root/src/sam3x8e
diff options
context:
space:
mode:
Diffstat (limited to 'src/sam3x8e')
-rw-r--r--src/sam3x8e/Kconfig4
-rw-r--r--src/sam3x8e/serial.c3
-rw-r--r--src/sam3x8e/timer.c3
3 files changed, 6 insertions, 4 deletions
diff --git a/src/sam3x8e/Kconfig b/src/sam3x8e/Kconfig
index 2edc8f7c..00e1f06e 100644
--- a/src/sam3x8e/Kconfig
+++ b/src/sam3x8e/Kconfig
@@ -6,10 +6,6 @@ config BOARD_DIRECTORY
string
default "sam3x8e"
-config MCU
- string
- default "sam3x8e"
-
config CLOCK_FREQ
int
default 42000000 # 84000000/2
diff --git a/src/sam3x8e/serial.c b/src/sam3x8e/serial.c
index 42b92efe..d07fc734 100644
--- a/src/sam3x8e/serial.c
+++ b/src/sam3x8e/serial.c
@@ -9,6 +9,7 @@
#include "board/gpio.h" // gpio_peripheral
#include "board/io.h" // readb
#include "board/misc.h" // console_get_input
+#include "command.h" // DECL_CONSTANT
#include "sam3x8e.h" // UART
#include "sched.h" // DECL_INIT
#include "irq.h" // irq_save
@@ -24,6 +25,8 @@ static uint32_t transmit_pos, transmit_max;
* Serial hardware
****************************************************************/
+DECL_CONSTANT(SERIAL_BAUD, CONFIG_SERIAL_BAUD);
+
static void
serial_init(void)
{
diff --git a/src/sam3x8e/timer.c b/src/sam3x8e/timer.c
index ead9c90f..0d3728ed 100644
--- a/src/sam3x8e/timer.c
+++ b/src/sam3x8e/timer.c
@@ -16,6 +16,9 @@
* Low level timer code
****************************************************************/
+DECL_CONSTANT(CLOCK_FREQ, CONFIG_CLOCK_FREQ);
+DECL_CONSTANT(MCU, "sam3x8e");
+
// Return the number of clock ticks for a given number of microseconds
uint32_t
timer_from_us(uint32_t us)