Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gene
xmc4500-relax-linux
Commits
5a359552
Commit
5a359552
authored
Oct 04, 2016
by
Christian Eichler
Browse files
Reenable querying PFLASH
parent
724b9e46
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.c
View file @
5a359552
...
...
@@ -162,13 +162,13 @@ static void command_inf(char *arg) {
CDC_Device_SendString
(
&
VirtualSerial_CDC_Interface
,
"
\r
"
);
// send PFLASH
//
{
//
char buf[128] = {0};
//
uint64_to_string(buf, (FLASH0->FCON & (uint32_t)FLASH_FCON_WSPFLASH_Msk) >> FLASH_FCON_WSPFLASH_Pos);
//
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "o:wspflash ");
//
CDC_Device_SendString(&VirtualSerial_CDC_Interface, buf);
//
CDC_Device_SendString(&VirtualSerial_CDC_Interface, "\r");
//
}
{
char
buf
[
128
]
=
{
0
};
uint64_to_string
(
buf
,
(
FLASH0
->
FCON
&
(
uint32_t
)
FLASH_FCON_WSPFLASH_Msk
)
>>
FLASH_FCON_WSPFLASH_Pos
);
CDC_Device_SendString
(
&
VirtualSerial_CDC_Interface
,
"o:wspflash "
);
CDC_Device_SendString
(
&
VirtualSerial_CDC_Interface
,
buf
);
CDC_Device_SendString
(
&
VirtualSerial_CDC_Interface
,
"
\r
"
);
}
// send DWT status
switch
(
DWT
->
CTRL
&
0xFF000000
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment