Skip to content
Snippets Groups Projects
Commit 051ce151 authored by Alain Carlucci's avatar Alain Carlucci
Browse files

Added bus fault test

parent ac83daa5
Branches
Tags
No related merge requests found
......@@ -135,7 +135,7 @@ const unsigned char MAX_OPEN_FILES=8;
/// \def WITH_ERRLOG
/// Uncomment for debug information on stdout.
/// By default it is defined (error information is printed)
//#define WITH_ERRLOG
#define WITH_ERRLOG
......
......@@ -172,3 +172,11 @@ BinName: dma-lowlevel-test
Include: %shared %i2c %math %anakin-data
Defines:
Main: dma-lowlevel-test
[test-busfault]
Type: board
BoardId: stm32f429zi_skyward_anakin
BinName: test-busfault
Include: %shared %i2c %math %anakin-data
Defines:
Main: test-busfault
#include <Common.h>
using namespace miosix;
void busfault(void *useless)
{
printf("Hello, i'm a bus fault!\n");
}
int main()
{
Thread::create(busfault, 1024, miosix::MAIN_PRIORITY, NULL);
while(1)
Thread::sleep(10);
return 0;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment