- set baudrate to 9600
git-svn-id: http://moon:8086/svn/projects/HendiControl@53 fda53097-d464-4ada-af97-ba876c37ca34
This commit is contained in:
@@ -5,6 +5,8 @@ VisualStudioVersion = 14.0.23107.0
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "uart_echo", "uart_echo\uart_echo.cproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}"
|
Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "uart_echo", "uart_echo\uart_echo.cproj", "{DCE6C7E3-EE26-4D79-826B-08594B9AD897}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{54F91283-7BC4-4236-8FF9-10F437C3AD48}") = "Bootloader", "Bootloader\Bootloader\Bootloader.cproj", "{C77F8C5D-B585-42EE-BF03-003A6350CD7A}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|AVR = Debug|AVR
|
Debug|AVR = Debug|AVR
|
||||||
@@ -15,6 +17,10 @@ Global
|
|||||||
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.Build.0 = Debug|AVR
|
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Debug|AVR.Build.0 = Debug|AVR
|
||||||
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.ActiveCfg = Release|AVR
|
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.ActiveCfg = Release|AVR
|
||||||
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.Build.0 = Release|AVR
|
{DCE6C7E3-EE26-4D79-826B-08594B9AD897}.Release|AVR.Build.0 = Release|AVR
|
||||||
|
{C77F8C5D-B585-42EE-BF03-003A6350CD7A}.Debug|AVR.ActiveCfg = Debug|AVR
|
||||||
|
{C77F8C5D-B585-42EE-BF03-003A6350CD7A}.Debug|AVR.Build.0 = Debug|AVR
|
||||||
|
{C77F8C5D-B585-42EE-BF03-003A6350CD7A}.Release|AVR.ActiveCfg = Release|AVR
|
||||||
|
{C77F8C5D-B585-42EE-BF03-003A6350CD7A}.Release|AVR.Build.0 = Release|AVR
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
|
|
||||||
#define PRINT(a,...) printf(a, ##__VA_ARGS__)
|
#define PRINT(a,...) printf(a, ##__VA_ARGS__)
|
||||||
#define PRINT_PROMPT putchar(0x0D);putchar(0x0A);putchar(':');
|
#define PRINT_PROMPT putchar(0x0D);putchar(0x0A);putchar(':');
|
||||||
#define USART_BAUDRATE 115200UL
|
#define USART_BAUDRATE 9600UL
|
||||||
#define TIMER_HW_CLOCK (F_CPU/8)
|
#define TIMER_HW_CLOCK (F_CPU/8)
|
||||||
#define TIMER_IRQ_CLOCK 1000UL
|
#define TIMER_IRQ_CLOCK 1000UL
|
||||||
#define TIMER_HW_RELOAD (0xFFFF-(TIMER_HW_CLOCK/TIMER_IRQ_CLOCK))
|
#define TIMER_HW_RELOAD (0xFFFF-(TIMER_HW_CLOCK/TIMER_IRQ_CLOCK))
|
||||||
@@ -96,7 +96,7 @@ int main(void)
|
|||||||
port_init();
|
port_init();
|
||||||
|
|
||||||
stdout = &uart_file;
|
stdout = &uart_file;
|
||||||
printf("\nHendi Control v1.0-beta\n");
|
printf("\nHendi Control v1.0\n");
|
||||||
|
|
||||||
uint8_t dac_cmd[] = {0x00, 0x00, 0x00}; // 6.1 Write Volatile DAC Register (C2:C0 = ‘00x’)
|
uint8_t dac_cmd[] = {0x00, 0x00, 0x00}; // 6.1 Write Volatile DAC Register (C2:C0 = ‘00x’)
|
||||||
size_t res = MCP47x6_write_volatile_mem(0x0000, dac_cmd, sizeof(dac_cmd));
|
size_t res = MCP47x6_write_volatile_mem(0x0000, dac_cmd, sizeof(dac_cmd));
|
||||||
|
|||||||
Reference in New Issue
Block a user