*/
#define DAC_LOG_FORMAT LOG_FMT_TERSE
+/**
+ * DAC Refresh Period = 1024*REFRESH/DACC Clock
+ *
+ * $WIZ$ type = "int"
+ * $WIZ$ supports = "sam3x"
+ * $WIZ$ min = 0
+ * $WIZ$ max = 65536
+ */
+#define CONFIG_DAC_REFRESH 16
+
+/**
+ * DAC Startup Time Selection.
+ * see datasheet table.
+ *
+ * $WIZ$ type = "int"
+ * $WIZ$ supports = "sam3x"
+ * $WIZ$ min = 0
+ * $WIZ$ max = 63
+ */
+#define CONFIG_DAC_STARTUP 0
+
+/**
+ * DAC Trigger Selection.
+ *
+ * $WIZ$ type = "enum"
+ * $WIZ$ value_list = "sam3x_dac_tc"
+ * $WIZ$ supports = "sam3x"
+ */
+#define CONFIG_DAC_TIMER DACC_TRGSEL_TIO_CH0
+
#endif /* CFG_DAC_H */
* $WIZ$ type = "boolean"
*/
#define LWIP_SOCKET 1
+#if LWIP_SOCKET
+ /*
+ * The sockets.c file requires this macro to be defined to really
+ * set errno on errors.
+ */
+ #define ERRNO
+#endif
/**
* Enable BSD-style sockets functions names.
*/
#define CONFIG_KERN_PRI 0
+/**
+ * Priority-inheritance protocol.
+ * $WIZ$ type = "boolean"
+ */
+#define CONFIG_KERN_PRI_INHERIT 0
+
/**
* Dynamic memory allocation for processes.
* $WIZ$ type = "boolean"
p10
Varm-none-eabi-gcc
p11
-ssS'PROJECT_SRC_PATH_FROM_MAKEFILE'
+ssS'PROJECT_HW_PATH_FROM_MAKEFILE'
p12
-Vboards/sam3x-ek/examples/sam3x-ek_tcp_server
+Vboards/sam3x-ek
p13
sS'ENABLED_MODULES'
p14
(lp15
-S'signal'
+S'debug'
p16
-aS'kernel'
+aS'eth'
p17
-aS'monitor'
+aS'formatwr'
p18
-aS'debug'
+aS'heap'
p19
-aS'timer'
+aS'kernel'
p20
-aS'formatwr'
+aS'lwip'
p21
-aS'msg'
+aS'monitor'
p22
-aS'heap'
+aS'msg'
p23
-aS'eth'
+aS'signal'
p24
-aS'lwip'
+aS'timer'
p25
asS'CPU_NAME'
p26
sS'PRESET'
p32
I01
-sS'PROJECT_HW_PATH_FROM_MAKEFILE'
+sS'PROJECT_SRC_PATH_FROM_MAKEFILE'
p33
-Vboards/sam3x-ek
+Vboards/sam3x-ek/examples/sam3x-ek_tcp_server
p34
sS'OUTPUT'
p35
# Files automatically generated by the wizard. DO NOT EDIT, USE sam3x-ek_tcp_server_USER_CSRC INSTEAD!
sam3x-ek_tcp_server_WIZARD_CSRC = \
- bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \
- bertos/mware/event.c \
bertos/cpu/cortex-m3/drv/eth_sam3.c \
bertos/cpu/cortex-m3/drv/timer_cm3.c \
- bertos/struct/heap.c \
- bertos/kern/monitor.c \
+ bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \
bertos/drv/timer.c \
- bertos/kern/signal.c \
+ bertos/kern/monitor.c \
bertos/kern/proc.c \
+ bertos/kern/signal.c \
+ bertos/mware/event.c \
bertos/mware/formatwr.c \
bertos/mware/hex.c \
bertos/net/lwip.c \
+ bertos/struct/heap.c \
+ $(sam3x-ek_tcp_server_HW_PATH)/hw/hw_eth.c \
#
# Files automatically generated by the wizard. DO NOT EDIT, USE sam3x-ek_tcp_server_USER_PCSRC INSTEAD!
--- /dev/null
+/**
+ * \file
+ * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction. Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License. This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
+ * Copyright 2011 Develer S.r.l. (http://www.develer.com/)
+ *
+ * -->
+ *
+ * \brief MAC address definition
+ *
+ * \author Luca Ottaviano <lottaviano@develer.com>
+ */
+
+#include "hw/hw_eth.h"
+
+uint8_t mac_addr[] = { 0x00, 0x12, 0x22, 0x32, 0x44, 0x55 };
--- /dev/null
+/**
+ * \file
+ * <!--
+ * This file is part of BeRTOS.
+ *
+ * Bertos is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+ *
+ * As a special exception, you may use this file as part of a free software
+ * library without restriction. Specifically, if other files instantiate
+ * templates or use macros or inline functions from this file, or you compile
+ * this file and link it with other files to produce an executable, this
+ * file does not by itself cause the resulting executable to be covered by
+ * the GNU General Public License. This exception does not however
+ * invalidate any other reasons why the executable file might be covered by
+ * the GNU General Public License.
+ *
+ * Copyright 2011 Develer S.r.l. (http://www.develer.com/)
+ *
+ * -->
+ *
+ * \brief MAC address definition
+ *
+ * \author Luca Ottaviano <lottaviano@develer.com>
+ */
+#ifndef HW_ETH_H
+#define HW_ETH_H
+
+#include <cfg/compiler.h>
+
+extern uint8_t mac_addr[6];
+
+#endif // HW_ETH_H