switch to kicad

This commit is contained in:
ikari
2010-02-09 23:28:58 +01:00
parent 02e9bfb756
commit fbcefccbb1
53 changed files with 19166 additions and 4 deletions

View File

@@ -36,7 +36,7 @@ CONFIG_MCU_FREQ=12288000
CONFIG_BOOTLOADER=y
CONFIG_BOOT_DEVID=0x4e534453
CONFIG_UART_DEBUG=y
CONFIG_UART_BAUDRATE=38400
CONFIG_UART_BAUDRATE=384000
CONFIG_UART_BUF_SHIFT=7
CONFIG_HARDWARE_NAME=sd2snes
CONFIG_SD_AUTO_RETRIES=10
@@ -44,4 +44,4 @@ CONFIG_SD_AUTO_RETRIES=10
CONFIG_EEPROM_SIZE=512
CONFIG_EEPROM_OFFSET=512
CONFIG_MAX_PARTITIONS=1
CONFIG_DEADLOCK_ME_HARDER=y
#CONFIG_DEADLOCK_ME_HARDER=y

View File

@@ -290,6 +290,7 @@ restart:
set_busy_led(0);
set_avr_ena(1);
snes_reset(0); */
while(1)dprintf("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!");
uint8_t cmd = 0;
while(!sram_reliable());

View File

@@ -163,8 +163,13 @@ static FILE mystdout = FDEV_SETUP_STREAM(ioputc, NULL, _FDEV_SETUP_WRITE);
void uart_init(void) {
/* Seriellen Port konfigurieren */
UBRRH = (int)((double)F_CPU/(16.0*CONFIG_UART_BAUDRATE)-1) >> 8;
UBRRL = (int)((double)F_CPU/(16.0*CONFIG_UART_BAUDRATE)-1) & 0xff;
/* UBRRH = (int)((double)F_CPU/(16.0*CONFIG_UART_BAUDRATE)-1) >> 8;
UBRRL = (int)((double)F_CPU/(16.0*CONFIG_UART_BAUDRATE)-1) & 0xff;*/
UBRRH = (int)((double)F_CPU/(8.0*CONFIG_UART_BAUDRATE)-1) >> 8;
UBRRL = (int)((double)F_CPU/(8.0*CONFIG_UART_BAUDRATE)-1) & 0xff;
UCSRA |= _BV(U2X0);
UCSRB = _BV(RXEN) | _BV(TXEN);
// I really don't like random #ifdefs in the code =(