Commit 83f4a7bd authored by Daniel Kampert's avatar Daniel Kampert 👷

Merge branch 'Bootloader' into 'master'

Bootloader

See merge request !6
parents 8aaf02ef 4267b885

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

......@@ -24,4 +24,4 @@ Please check the docs or write an e-mail to [[email protected]
## Maintainer
- [Daniel Kampert]([email protected])
\ No newline at end of file
- [Daniel Kampert](mailto:[email protected])
\ No newline at end of file
/*
* Config_AT90USBKey.h
*
* Copyright (C) Daniel Kampert, 2018
* Website: www.kampis-elektroecke.de
* File info: Project configuration example for the AT90USBKey development board.
GNU GENERAL PUBLIC LICENSE:
This program 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 3 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, see <http://www.gnu.org/licenses/>.
Errors and commissions should be reported to [email protected]
*/
/** @file configs/Config_AT90USBKey.h
* @brief Project configuration example for the AT90USBKey development board.
*
* @author Daniel Kampert
*/
#ifndef CONFIG_H_
#define CONFIG_H_
#include "Common/Common.h"
#define BOARD BOARD_AT90USBKEY /**< Use the AT90USBKey development board. */
/*
Main clock
*/
#define F_CPU 8000000UL /**< MCU clock frequency */
/*
LED
*/
#define LED0_RED PORTD, 4 /**< Red color of LED0. */
#define LED0_GREEN PORTD, 5 /**< Green color of LED0. */
#define LED1_RED PORTD, 7 /**< Red color of LED1. */
#define LED1_GREEN PORTD, 6 /**< Green color of LED1. */
/*
Analog sensors
*/
#define TEMPERATURE_SENSOR_PIN 0 /**< Analog temperature sensor. */
#define VBAT_MONITOR_PIN 3 /**< Analog VBat sensor. */
/*
Reference voltage [mV]
*/
#define REFERENCE_VOLTAGE 3300
/*
External flash memory
*/
#define USE_AT45DB642D
#define DATAFLASH_COUNT 2
#endif /* CONFIG_H_ */
\ No newline at end of file
......@@ -37,4 +37,6 @@
#define BOOTLOADER_INTERFACE C, 0 /**< USART interface used by the bootloader. */
#define BOOTLOADER_BAUD 19200 /**< USART baud rate used by the bootloader. */
#define BOOTLOADER_FILE_FORMAT HEX_FORMAT_INTEL /**< Use the Intel Hex-Format as input file. */
#endif /* CONFIG_BOOTLOADER_H_ */
\ No newline at end of file
......@@ -31,21 +31,26 @@
#ifndef CONFIG_1WIRE_H_
#define CONFIG_1WIRE_H_
#define F_CPU 16000000UL /**< Oscillator frequency. */
/*
Console service configuration
*/
#define CONSOLE_STDIO USARTE, 0 /**< USART interface for the console service. */
#undef CONSOLE_STDIO /**< USART interface for the console service. */
/*
1-Wire configuration
*/
#define ONEWIRE_INTERFACE INTERFACE_USART /**< Use USART as 1-Wire interface. */
#undef ONEWIRE_USE_EXT_PULL /**< Use the DS18B20 in parasite mode. */
#undef ONEWIRE_EXT_PULL /**< Port where switchable external pull-up resistor is connected to. \n
NOTE: You only need this when you define the symbol #ONEWIRE_USE_EXT_PULL. */
#undef ONEWIRE_EXT_PULL_ACTIVE_LOW /**< Define this when the external pull-up is active low. \n
NOTE: You only need this when you define the symbol #ONEWIRE_USE_EXT_PULL. */
#undef ONEWIRE_USE_OVERDRIVE /**< Use the overdrive mode. */
#define ONEWIRE_DQ PORTE, 0 /**< DQ pin for the 1-Wire driver. */
#define F_CPU 2000000UL /**< CPU frequency. */
#if(ONEWIRE_INTERFACE == INTERFACE_GPIO)
#define ONEWIRE_DQ PORTB, 2 /**< DQ pin for the 1-Wire driver. Only needed when you set #INTERFACE_GPIO for the GPIO as 1-Wire interface. */
#endif
#endif /* CONFIG_1WIRE_H_ */
\ No newline at end of file
/*
* Config_LibMega32.h
*
* Copyright (C) Daniel Kampert, 2018
* Website: www.kampis-elektroecke.de
* File info: ATmega32 configuration file for library builder.
GNU GENERAL PUBLIC LICENSE:
This program 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 3 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, see <http://www.gnu.org/licenses/>.
Errors and commissions should be reported to [email protected]
*/
/** @file configs/Config.h
* @brief ATmega32 configuration file for library builder.
*
* @author Daniel Kampert
*/
#ifndef CONFIG_LIBMEGA32_H_
#define CONFIG_LIBMEGA32_H_
#include "Common/Common.h"
#define F_CPU 16000000UL /**< Define this symbol so the compiler
won't exclude the clock selection part. */
#define USART_BUFFER_SIZE 32 /**< Size of USART buffer in bytes. */
#define SPI_BUFFER_SIZE 32 /**< Size of SPI buffer in bytes. */
#define TWI_BUFFER_SIZE 32 /**< Size of TWI buffer in bytes. */
#endif /* CONFIG_LIBMEGA32_H_ */
\ No newline at end of file
/*
* Config_LibXMega256A3BU.h
*
* Copyright (C) Daniel Kampert, 2018
* Website: www.kampis-elektroecke.de
* File info: XMega256A3BU configuration file for library builder.
GNU GENERAL PUBLIC LICENSE:
This program 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 3 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, see <http://www.gnu.org/licenses/>.
Errors and commissions should be reported to [email protected]
*/
/** @file configs/Config.h
* @brief XMega256A3BU configuration file for library builder.
*
* @author Daniel Kampert
*/
#ifndef CONFIG_LIBXMEGA256A3BU_H_
#define CONFIG_LIBXMEGA256A3BU_H_
#include "Common/Common.h"
#define F_CPU 2000000UL /**< Define this symbol so the compiler
won't exclude the clock selection part. */
/*
Console setup
*/
#define CONSOLE_STDIO USARTE, 0 /**< Standard interface for the console. */
#define USART_BUFFER_SIZE 32 /**< Size of USART buffer in bytes. */
#define DMA_BUFFER_SIZE 32 /**< Size of the DMA buffer. */
#define SPI_BUFFER_SIZE 32 /**< Size of SPI buffer in bytes. */
#define TWI_BUFFER_SIZE 32 /**< Size of TWI buffer in bytes. */
#endif /* CONFIG_LIBXMEGA256A3BU_H_ */
\ No newline at end of file
/*
* Config_LibXMega384C3.h
*
* Copyright (C) Daniel Kampert, 2018
* Website: www.kampis-elektroecke.de
* File info: XMega384C3 configuration file for library builder.
GNU GENERAL PUBLIC LICENSE:
This program 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 3 of the License, or
(at your option) any later version.
<