Add basic serial testing demo

This commit is contained in:
Fabio Utzig 2015-05-13 22:19:48 -03:00
parent c37554ca20
commit a0bcfe1518
3 changed files with 6 additions and 1 deletions

View File

@ -125,7 +125,7 @@
* @brief Enables the SERIAL subsystem.
*/
#if !defined(HAL_USE_SERIAL) || defined(__DOXYGEN__)
#define HAL_USE_SERIAL FALSE
#define HAL_USE_SERIAL TRUE
#endif
/**

View File

@ -32,6 +32,10 @@ int main(void) {
halInit();
chSysInit();
sdStart(&SD1, NULL);
chSequentialStreamWrite(&SD1, (const uint8_t *)"***\r\n", 5);
//chSequentialStreamWrite(&SD1, (const uint8_t *)"*", 1);
while (1) {
NRF_GPIO->OUTCLR = (uint32_t) 1 << 18;
chThdSleepMilliseconds(500);

View File

@ -20,5 +20,6 @@
/*
* HAL driver system settings.
*/
#define NRF51_SERIAL_USE_UART0 TRUE
#endif /* _MCUCONF_H_ */